Ver Fonte

代码优化

yjwang há 5 dias atrás
pai
commit
a49f96768e

+ 1 - 1
fs-service/src/main/resources/mapper/hisStore/FsStoreProductScrmMapper.xml

@@ -573,7 +573,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="instructionsViewable" resultType="int">
         SELECT
-            count(*)
+            IFNULL(COUNT(*), 0)
         FROM
             fs_store_product_scrm p
                 INNER JOIN fs_store_order_item_scrm ois ON p.product_id = ois.product_id

+ 1 - 1
fs-user-app/src/main/java/com/fs/app/controller/store/ProductScrmController.java

@@ -311,7 +311,7 @@ public class ProductScrmController extends AppBaseController {
      * @return R
      * **/
     @ApiOperation("校验说明书查看权限")
-    @PostMapping("/getCartsMultiStore")
+    @PostMapping("/instructionsViewable")
     public R instructionsViewable(@RequestBody FsStoreCartCountParam param){
        Long userId = Long.parseLong(getUserId());
         if(userId == null){