|
|
@ -45,6 +45,7 @@ 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.EpdcUserPointsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerPointsFormDTO; |
|
|
|
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; |
|
|
@ -390,15 +391,15 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
if (!result.success()) { |
|
|
|
throw new RenException("更新用户积分异常"); |
|
|
|
} |
|
|
|
/*EpdcVolunteerPointsFormDTO volunteerPointsFormDTO = new EpdcVolunteerPointsFormDTO(); |
|
|
|
EpdcVolunteerPointsFormDTO volunteerPointsFormDTO = new EpdcVolunteerPointsFormDTO(); |
|
|
|
volunteerPointsFormDTO.setVolunteerId(volunteerInfoDTOResult.getData().getId()); |
|
|
|
volunteerPointsFormDTO.setPoints(actInfoDTO.getReward()); |
|
|
|
volunteerPointsFormDTO.setOperationType(PointsOperationEnum.OPERATION_TYPE_ADD.getOperationType()); |
|
|
|
//2021-07-14 更新为不增加用户积分 增加志愿者公益积分
|
|
|
|
Result result = userInfoFeignClient.handleVolunteerPoints(volunteerPointsFormDTO); |
|
|
|
if (!result.success()) { |
|
|
|
Result volunteerResult = userInfoFeignClient.handleVolunteerPoints(volunteerPointsFormDTO); |
|
|
|
if (!volunteerResult.success()) { |
|
|
|
throw new RenException("更新志愿者公益积分异常"); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
//发送消息通知
|
|
|
|
this.sendUserInformation(actUserRelationDTO, actInfoDTO, HeartNoticeConstant.NOTICE__BUSINESS_TYPE_POINTS_SIGN_OUT); |
|
|
|
} |
|
|
|