|
|
@@ -81,12 +81,12 @@ public class UserIncrementServiceImpl extends ServiceImpl<IUserIncrementMapper,
|
|
|
throw new BusinessException(ResultCode.INCREMENT_TYPE_EMPTY);
|
|
|
}
|
|
|
if (incrementType.getValidTimeType() == 0) {
|
|
|
- if(agentNewVo.getMajorSubNum() <=0){
|
|
|
+ if(agentNewVo.getMajorSubNum() < param.getCount() * param.getTotalTime()){
|
|
|
throw new BusinessException(ResultCode.INCREMENT_NUM_EMPTY);
|
|
|
}
|
|
|
}
|
|
|
if (incrementType.getValidTimeType() == 1) {
|
|
|
- if(agentNewVo.getHighSubNum() <=0){
|
|
|
+ if(agentNewVo.getHighSubNum() < param.getCount() * param.getTotalTime()){
|
|
|
throw new BusinessException(ResultCode.INCREMENT_NUM_EMPTY);
|
|
|
}
|
|
|
}
|
|
|
@@ -143,12 +143,12 @@ public class UserIncrementServiceImpl extends ServiceImpl<IUserIncrementMapper,
|
|
|
throw new BusinessException(ResultCode.INCREMENT_TYPE_EMPTY);
|
|
|
}
|
|
|
if (incrementType.getValidTimeType() == 0) {
|
|
|
- if(agentNewVo.getMajorSubNum() <=0){
|
|
|
+ if(agentNewVo.getMajorSubNum() < param.getTotalTime()){
|
|
|
throw new BusinessException(ResultCode.INCREMENT_NUM_EMPTY);
|
|
|
}
|
|
|
}
|
|
|
if (incrementType.getValidTimeType() == 1) {
|
|
|
- if(agentNewVo.getHighSubNum() <=0){
|
|
|
+ if(agentNewVo.getHighSubNum() < param.getTotalTime()){
|
|
|
throw new BusinessException(ResultCode.INCREMENT_NUM_EMPTY);
|
|
|
}
|
|
|
}
|