|
|
@@ -291,7 +291,11 @@ public class GoodsDonController {
|
|
|
* 获取商品详情
|
|
|
*/
|
|
|
@GetMapping("/get/{id}")
|
|
|
- public Result<GoodsDonViews> getDetail(@PathVariable Long id) {
|
|
|
+ public Result<? extends Object> getDetail(@PathVariable Long id, String customId) {
|
|
|
+ if (StrUtil.isNotBlank(customId)) {
|
|
|
+ Result<YhShopGoodsFrontView> yhShopGoodsDetail = getGoodsDetailByYhsId(id, yhShopFrontService.getYhsIdByCustomId(customId));
|
|
|
+ return yhShopGoodsDetail;
|
|
|
+ }
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
GoodsDonViews views = beanSearcher.searchFirst(GoodsDonViews.class, MapUtils.builder().field(GoodsDonViews::getId, id).build());
|
|
|
|