|
|
@ -6,7 +6,7 @@ import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
import com.epmet.commons.tools.constant.MqConstant; |
|
|
import com.epmet.commons.tools.constant.MqConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
import com.epmet.commons.tools.dto.form.mq.MqBaseMsgDTO; |
|
|
import com.epmet.commons.tools.dto.form.mq.MqBaseMsgDTO; |
|
|
import com.epmet.commons.tools.dto.form.mq.eventmsg.ActPointEventMsg; |
|
|
import com.epmet.commons.tools.dto.form.mq.eventmsg.BasePointEventMsg; |
|
|
import com.epmet.commons.tools.enums.EventEnum; |
|
|
import com.epmet.commons.tools.enums.EventEnum; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
@ -798,19 +798,20 @@ public class WorkActServiceImpl implements WorkActService { |
|
|
mqBaseMsgDTO.setEventClass(EventEnum.ACTIVE_SEND_POINT.getEventClass()); |
|
|
mqBaseMsgDTO.setEventClass(EventEnum.ACTIVE_SEND_POINT.getEventClass()); |
|
|
//事件code
|
|
|
//事件code
|
|
|
mqBaseMsgDTO.setEventTag(EventEnum.ACTIVE_SEND_POINT.getEventTag()); |
|
|
mqBaseMsgDTO.setEventTag(EventEnum.ACTIVE_SEND_POINT.getEventTag()); |
|
|
List<ActPointEventMsg> actPointEventMsgList=new ArrayList<>(); |
|
|
List<BasePointEventMsg> basePointEventMsgArrayList=new ArrayList<>(); |
|
|
for(ActUserRelationEntity actUserRelationEntity:actUserRelationEntityList){ |
|
|
for(ActUserRelationEntity actUserRelationEntity:actUserRelationEntityList){ |
|
|
ActPointEventMsg actPointEventMsg=new ActPointEventMsg(); |
|
|
BasePointEventMsg basePointEventMsg=new BasePointEventMsg(); |
|
|
actPointEventMsg.setOpAgencyId(opAgencyId); |
|
|
basePointEventMsg.setOpAgencyId(opAgencyId); |
|
|
actPointEventMsg.setCustomerId(actInfoDTO.getCustomerId()); |
|
|
basePointEventMsg.setCustomerId(actInfoDTO.getCustomerId()); |
|
|
actPointEventMsg.setUserId(actUserRelationEntity.getUserId()); |
|
|
basePointEventMsg.setUserId(actUserRelationEntity.getUserId()); |
|
|
actPointEventMsg.setActionFlag(MqConstant.PLUS); |
|
|
basePointEventMsg.setActionFlag(MqConstant.PLUS); |
|
|
actPointEventMsg.setPoint(actInfoDTO.getReward()); |
|
|
basePointEventMsg.setPoint(actInfoDTO.getReward()); |
|
|
actPointEventMsg.setIsCommon(true); |
|
|
basePointEventMsg.setIsCommon(true); |
|
|
actPointEventMsg.setRemark(remark); |
|
|
basePointEventMsg.setRemark(remark); |
|
|
actPointEventMsgList.add(actPointEventMsg); |
|
|
basePointEventMsg.setSourceId(actInfoDTO.getId()); |
|
|
|
|
|
basePointEventMsgArrayList.add(basePointEventMsg); |
|
|
} |
|
|
} |
|
|
mqBaseMsgDTO.setMsg(JSON.toJSONString(actPointEventMsgList)); |
|
|
mqBaseMsgDTO.setMsg(JSON.toJSONString(basePointEventMsgArrayList)); |
|
|
Result result=SendMqMsgUtils.sendMsg(mqBaseMsgDTO); |
|
|
Result result=SendMqMsgUtils.sendMsg(mqBaseMsgDTO); |
|
|
if(!result.success()){ |
|
|
if(!result.success()){ |
|
|
logger.error("活动积分发放失败"); |
|
|
logger.error("活动积分发放失败"); |
|
|
|