|
@@ -189,10 +189,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);
|