فهرست منبع

revert: 179分支撤回

xdd 3 روز پیش
والد
کامیت
4f3c3c3372
1فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 1 5
      fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreProductScrmController.java

+ 1 - 5
fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreProductScrmController.java

@@ -66,7 +66,6 @@ public TableDataInfo list(FsStoreProductListSParam fsStoreProduct)
     @GetMapping("/export")
     public AjaxResult export(FsStoreProductScrm fsStoreProduct)
     {
-        fsStoreProduct.setStoreId(String.valueOf(UserUtil.getLoginUserStoreID()));
         List<FsStoreProductScrm> list = fsStoreProductService.selectFsStoreProductList(fsStoreProduct);
         ExcelUtil<FsStoreProductScrm> util = new ExcelUtil<FsStoreProductScrm>(FsStoreProductScrm.class);
         return util.exportExcel(list, "商品数据");
@@ -95,7 +94,6 @@ public TableDataInfo list(FsStoreProductListSParam fsStoreProduct)
     @PostMapping("/price/{price}")
     public AjaxResult editPrice(@RequestBody FsStoreProductScrm fsStoreProduct, @PathVariable("price")Integer price)
     {
-        fsStoreProduct.setStoreId(String.valueOf(UserUtil.getLoginUserStoreID()));
         return toAjax(fsStoreProductService.updateFsStoreProductPrice(fsStoreProduct,price));
     }
     /**
@@ -106,7 +104,6 @@ public TableDataInfo list(FsStoreProductListSParam fsStoreProduct)
     @PostMapping
     public AjaxResult add(@RequestBody FsStoreProductScrm fsStoreProduct)
     {
-        fsStoreProduct.setStoreId(String.valueOf(UserUtil.getLoginUserStoreID()));
         return toAjax(fsStoreProductService.insertFsStoreProduct(fsStoreProduct));
     }
 
@@ -149,7 +146,7 @@ public TableDataInfo list(FsStoreProductListSParam fsStoreProduct)
     @PostMapping(value = "/genFormatAttr/{productId}")
     public ResponseEntity genFormatAttr(@PathVariable Long productId, @RequestBody String jsonStr){
 
-        return new ResponseEntity<>(fsStoreProductService.getFormatAttr(productId,jsonStr,null), HttpStatus.OK);
+        return new ResponseEntity<>(fsStoreProductService.getFormatAttr(productId,jsonStr), HttpStatus.OK);
     }
     /**
      * 获取商品详细信息
@@ -180,7 +177,6 @@ public TableDataInfo list(FsStoreProductListSParam fsStoreProduct)
     @PostMapping(value = "/addOrEdit")
     public R addOrEdit(@RequestBody FsStoreProductAddEditParam fsStoreProduct)
     {
-        fsStoreProduct.setStoreId(String.valueOf(UserUtil.getLoginUserStoreID()));
 
         return fsStoreProductService.addOrEdit(fsStoreProduct);
     }