|
@@ -112,7 +112,7 @@ public class IncrementOrderImpl implements OrderStrategy {
|
|
if(userIncrementEntity != null && userIncrementEntity.getUserId()!=null){
|
|
if(userIncrementEntity != null && userIncrementEntity.getUserId()!=null){
|
|
User userEntity = userService.getById(userIncrementEntity.getUserId());
|
|
User userEntity = userService.getById(userIncrementEntity.getUserId());
|
|
if(userEntity != null && incrementType.getDownloadNum() >0){
|
|
if(userEntity != null && incrementType.getDownloadNum() >0){
|
|
- userEntity.setDownloadNumTotal(userEntity.getDownloadNumTotal() + responseIncrementOrder.getMonthQy() * responseIncrementOrder.getCount() * incrementType.getDownloadNum() );
|
|
|
|
|
|
+ userEntity.setDownloadNumTotal(userEntity.getDownloadNumTotal() + (responseIncrementOrder.getMonthQy() == null?1:responseIncrementOrder.getMonthQy()) * responseIncrementOrder.getCount() * incrementType.getDownloadNum() );
|
|
userService.updateById(userEntity);
|
|
userService.updateById(userEntity);
|
|
}
|
|
}
|
|
}
|
|
}
|