lyhzzz 5 mesiacov pred
rodič
commit
bb4cabc6c4

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationCountServiceImpl.java

@@ -49,7 +49,7 @@ public class SceneCooperationCountServiceImpl extends ServiceImpl<ISceneCooperat
                 SceneCooperationCount count = new SceneCooperationCount();
                 count.setSceneType(productCooperation.getSceneType());
                 count.setNum(num);
-                count.setCount( needPay.size() + 1);
+                count.setCount( needPay.size() );
                 this.save(count);
             }else {
                 LambdaUpdateWrapper<SceneCooperationCount> wrapper = new LambdaUpdateWrapper<>();

+ 1 - 0
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

@@ -239,6 +239,7 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
         User user = userService.getByUserName(username);
         LambdaQueryWrapper<SceneCooperation> wrapper = new LambdaQueryWrapper<>();
         wrapper.eq(SceneCooperation::getUserId,user.getId());
+        wrapper.eq(SceneCooperation::getSceneType,"mesh");
         List<SceneCooperation> list = this.list(wrapper);
         List<String> numList = list.parallelStream().map(SceneCooperation::getSceneNum).collect(Collectors.toList());
         if(numList.size() <=0){