Browse Source

选择了自动通知参加人员的才发送消息

master
yinzuomei 3 years ago
parent
commit
6eee1d6e42
  1. 15
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

15
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

@ -186,7 +186,7 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
icPartyActEntity.setIsPublish(origin.getIsPublish()); icPartyActEntity.setIsPublish(origin.getIsPublish());
baseDao.updateById(icPartyActEntity); baseDao.updateById(icPartyActEntity);
//已发布,在编辑的时候,需要发送消息 //已发布,在编辑的时候,需要发送消息
if(NumConstant.ONE_STR.equals(icPartyActEntity.getIsPublish())){ if(NumConstant.ONE_STR.equals(icPartyActEntity.getIsPublish())&&NumConstant.ONE_STR.equals(icPartyActEntity.getIsAutoInform())){
sendMsg=true; sendMsg=true;
} }
}else{ }else{
@ -615,11 +615,13 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
icPartyActEntity.setUpdatedBy(userId); icPartyActEntity.setUpdatedBy(userId);
baseDao.updateById(icPartyActEntity); baseDao.updateById(icPartyActEntity);
//发送消息 //发送消息
PartyMeetingMessageMQMsg msg = new PartyMeetingMessageMQMsg(); if(NumConstant.ONE_STR.equals(icPartyActEntity.getIsAutoInform())){
msg.setCustomerId(icPartyActEntity.getCustomerId()); PartyMeetingMessageMQMsg msg = new PartyMeetingMessageMQMsg();
msg.setIcPartyActId(icPartyActEntity.getId()); msg.setCustomerId(icPartyActEntity.getCustomerId());
msg.setType("publish"); msg.setIcPartyActId(icPartyActEntity.getId());
SendMqMsgUtil.build().openFeignClient(SpringContextUtils.getBean(EpmetMessageOpenFeignClient.class)).sendRocketMqMsg(SystemMessageType.PARTY_MEETING_MESSAGE, msg); msg.setType("publish");
SendMqMsgUtil.build().openFeignClient(SpringContextUtils.getBean(EpmetMessageOpenFeignClient.class)).sendRocketMqMsg(SystemMessageType.PARTY_MEETING_MESSAGE, msg);
}
} }
/** /**
@ -661,6 +663,7 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
@Override @Override
public void noticePartyActAutoPublishTask() { public void noticePartyActAutoPublishTask() {
//todo //todo
return; return;
} }

Loading…
Cancel
Save