lyhzzz 1 год назад
Родитель
Сommit
75457fd220

+ 2 - 2
src/main/java/com/fdkankan/agent/service/impl/UserIncrementServiceImpl.java

@@ -188,10 +188,10 @@ public class UserIncrementServiceImpl extends ServiceImpl<IUserIncrementMapper,
 
         LambdaUpdateWrapper<User> wrapper = new LambdaUpdateWrapper<>();
         wrapper.eq(User::getId,user.getId());
-        wrapper.setSql("download_num_total = download_num_total + " + incrementType.getDownloadNum());
+        wrapper.setSql("download_num_total = download_num_total + " + param.getCount() * param.getTotalTime() * incrementType.getDownloadNum());
 
         userService.update(wrapper);
-        agentNewService.subNum(agentNewVo,user.getId(),incrementType,1,param.getTotalTime(),1);
+        agentNewService.subNum(agentNewVo,user.getId(),incrementType,param.getCount(),param.getTotalTime(),1);
         if(userIncrement.getCameraId() != null){
             ScenePayStatusVo scenePayStatusVo = new ScenePayStatusVo(userIncrement.getCameraId());
             Map<String, Object> map = BeanUtil.beanToMap(scenePayStatusVo);