|
@@ -66,18 +66,19 @@ public class AgentNewServiceImpl extends ServiceImpl<IAgentNewMapper, AgentNew>
|
|
|
|
|
|
LambdaUpdateWrapper<AgentNew> wrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<AgentNew> wrapper = new LambdaUpdateWrapper<>();
|
|
wrapper.eq(AgentNew::getId,agentNewVo.getId());
|
|
wrapper.eq(AgentNew::getId,agentNewVo.getId());
|
|
- if(incrementType == null){
|
|
|
|
- agentNewLog.setType(2);
|
|
|
|
- wrapper.set(AgentNew::getDownUseNum,agentNewVo.getDownUseNum() + count);
|
|
|
|
- }
|
|
|
|
if(incrementType != null && incrementType.getValidTimeType() == 0){
|
|
if(incrementType != null && incrementType.getValidTimeType() == 0){
|
|
agentNewLog.setType(0);
|
|
agentNewLog.setType(0);
|
|
- wrapper.set(AgentNew::getHighUseNum,agentNewVo.getHighUseNum() + count);
|
|
|
|
|
|
+ wrapper.set(AgentNew::getMajorUseNum,agentNewVo.getMajorUseNum() + count);
|
|
}
|
|
}
|
|
|
|
|
|
if(incrementType != null && incrementType.getValidTimeType() == 1){
|
|
if(incrementType != null && incrementType.getValidTimeType() == 1){
|
|
agentNewLog.setType(1);
|
|
agentNewLog.setType(1);
|
|
- wrapper.set(AgentNew::getMajorUseNum,agentNewVo.getMajorUseNum() + count);
|
|
|
|
|
|
+ wrapper.set(AgentNew::getHighUseNum,agentNewVo.getHighUseNum() + count);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(incrementType == null){
|
|
|
|
+ agentNewLog.setType(2);
|
|
|
|
+ wrapper.set(AgentNew::getDownUseNum,agentNewVo.getDownUseNum() + count);
|
|
}
|
|
}
|
|
|
|
|
|
this.update(wrapper);
|
|
this.update(wrapper);
|