|
|
@ -44,7 +44,7 @@ import com.elink.esua.epdc.dto.PointsLogsDTO; |
|
|
|
import com.elink.esua.epdc.dto.UserDTO; |
|
|
|
import com.elink.esua.epdc.dto.VolunteerInfoDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerPointsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUserPointsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO; |
|
|
|
import com.elink.esua.epdc.dto.result.BehaviorResultDto; |
|
|
|
import com.elink.esua.epdc.modules.activity.dao.ActInfoDao; |
|
|
@ -332,8 +332,6 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
if (!volunteerInfoDTOResult.success()) { |
|
|
|
throw new RenException("查询志愿者信息异常"); |
|
|
|
} |
|
|
|
//4、更新epdc_user表积分
|
|
|
|
|
|
|
|
//5、插入epdc_act_user_points_log记录
|
|
|
|
ActUserPointsLogDTO actUserPointsLogDTO = new ActUserPointsLogDTO(); |
|
|
|
actUserPointsLogDTO.setActUserId(actUserRelationDTO.getId()); |
|
|
@ -382,7 +380,17 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
} |
|
|
|
} |
|
|
|
pointsFeignClient.addPointsLog(pointsLogsDTO); |
|
|
|
EpdcVolunteerPointsFormDTO volunteerPointsFormDTO = new EpdcVolunteerPointsFormDTO(); |
|
|
|
//4、更新epdc_user表积分
|
|
|
|
//直接调用fegin,返回剩余积分值
|
|
|
|
EpdcUserPointsFormDTO userPointsFormDTO = new EpdcUserPointsFormDTO(); |
|
|
|
userPointsFormDTO.setUserId(actUserRelationDTO.getUserId()); |
|
|
|
userPointsFormDTO.setPoints(actInfoDTO.getPunishmentPoints()); |
|
|
|
userPointsFormDTO.setOperationType(PointsOperationEnum.OPERATION_TYPE_SUBSTRACT.getOperationType()); |
|
|
|
Result<UserDTO> result = userInfoFeignClient.handleUserPoints(userPointsFormDTO); |
|
|
|
if (!result.success()) { |
|
|
|
throw new RenException("更新用户积分异常"); |
|
|
|
} |
|
|
|
/*EpdcVolunteerPointsFormDTO volunteerPointsFormDTO = new EpdcVolunteerPointsFormDTO(); |
|
|
|
volunteerPointsFormDTO.setVolunteerId(volunteerInfoDTOResult.getData().getId()); |
|
|
|
volunteerPointsFormDTO.setPoints(actInfoDTO.getReward()); |
|
|
|
volunteerPointsFormDTO.setOperationType(PointsOperationEnum.OPERATION_TYPE_ADD.getOperationType()); |
|
|
@ -390,7 +398,7 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
Result result = userInfoFeignClient.handleVolunteerPoints(volunteerPointsFormDTO); |
|
|
|
if (!result.success()) { |
|
|
|
throw new RenException("更新志愿者公益积分异常"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
//发送消息通知
|
|
|
|
this.sendUserInformation(actUserRelationDTO, actInfoDTO, HeartNoticeConstant.NOTICE__BUSINESS_TYPE_POINTS_SIGN_OUT); |
|
|
|
} |
|
|
|