|
|
@@ -293,7 +293,7 @@ public class GoodsDonController {
|
|
|
@GetMapping("/get/{id}")
|
|
|
public Result<? extends Object> getDetail(@PathVariable Long id, String customId) {
|
|
|
if (StrUtil.isNotBlank(customId)) {
|
|
|
- Result<YhShopGoodsFrontView> yhShopGoodsDetail = getGoodsDetailByYhsId(id, yhShopFrontService.getYhsIdByCustomId(customId));
|
|
|
+ Result<YhShopGoodsFrontView> yhShopGoodsDetail = getGoodsDetailByYhsId(yhShopFrontService.getYhsIdByCustomId(customId), id);
|
|
|
return yhShopGoodsDetail;
|
|
|
}
|
|
|
Long fUid = StpUserUtil.getUserIdAfterLogin();
|
|
|
@@ -576,7 +576,7 @@ public class GoodsDonController {
|
|
|
@GetMapping("/get/shop/goods/detail/{yhsId}/{goodsId}")
|
|
|
public Result<YhShopGoodsFrontView> getGoodsDetailByYhsId(@PathVariable Long yhsId, @PathVariable Long goodsId) {
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
- String condition = String.format("and yhs_id = %s and goods_id = %s", yhsId, goodsId);
|
|
|
+ String condition = String.format("and yhs_id = %s and ys.goods_id = %s", yhsId, goodsId);
|
|
|
builder.put("condition", condition);
|
|
|
YhShopGoodsFrontView goodsDetailView = beanSearcher.searchFirst(YhShopGoodsFrontView.class, builder.build());
|
|
|
|