Browse Source

爱心互助积分 累计积分加

feature/syp_points
songyunpeng 5 years ago
parent
commit
e70c561b09
  1. 1
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

1
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

@ -956,6 +956,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
//规则操作类型(0-减积分,1-加积分)
if (PointsOperationEnum.OPERATION_TYPE_ADD.getOperationType().equals(formDTO.getOperationType())) {
userEntity.setPoints(userEntity.getPoints() + formDTO.getPoints());
userEntity.setPointsTotle(userEntity.getPointsTotle() + formDTO.getPoints());
} else if (PointsOperationEnum.OPERATION_TYPE_SUBSTRACT.getOperationType().equals(formDTO.getOperationType())) {
userEntity.setPoints(userEntity.getPoints() - formDTO.getPoints());
}

Loading…
Cancel
Save