浏览代码

/goods/my

licailing 5 年之前
父节点
当前提交
7e1745724b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/izouma/dingdong/web/merchant/GoodsController.java

+ 2 - 1
src/main/java/com/izouma/dingdong/web/merchant/GoodsController.java

@@ -71,7 +71,8 @@ public class GoodsController extends BaseController {
     @GetMapping("/my")
     @GetMapping("/my")
     public List<Goods> my() {
     public List<Goods> my() {
         Long merchantId = merchantService.findMerchantId(SecurityUtils.getAuthenticatedUser().getId());
         Long merchantId = merchantService.findMerchantId(SecurityUtils.getAuthenticatedUser().getId());
-        return goodsRepo.findAllByMerchantIdAndIsPassTrue(merchantId);
+        return goodsRepo.findAllByMerchantId(merchantId);
+        //return goodsRepo.findAllByMerchantIdAndIsPassTrue(merchantId);
     }
     }
 
 
     @GetMapping("/take")
     @GetMapping("/take")