|
|
@ -215,6 +215,8 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart |
|
|
|
if(NumConstant.ZERO==formDTO.getAutoPublicType()){ |
|
|
|
//选择立即发布,状态:已发布
|
|
|
|
icPartyActEntity.setIsPublish(NumConstant.ONE_STR); |
|
|
|
//立即发布的需要发送消息
|
|
|
|
sendMsg=true; |
|
|
|
}else{ |
|
|
|
icPartyActEntity.setIsPublish(NumConstant.ZERO_STR); |
|
|
|
} |
|
|
@ -248,7 +250,8 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart |
|
|
|
} |
|
|
|
|
|
|
|
//已经发布的活动+且活动未开始的,编辑后需要发消息
|
|
|
|
if (sendMsg && icPartyActEntity.getHoldTime().compareTo(new Date()) < 1) { |
|
|
|
boolean flag=icPartyActEntity.getHoldTime().compareTo(new Date()) >0; |
|
|
|
if (sendMsg && flag) { |
|
|
|
PartyMeetingMessageMQMsg msg = new PartyMeetingMessageMQMsg(); |
|
|
|
msg.setCustomerId(formDTO.getCustomerId()); |
|
|
|
msg.setIcPartyActId(icPartyActEntity.getId()); |
|
|
@ -650,7 +653,7 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart |
|
|
|
icPartyActEntity.setUpdatedBy(userId); |
|
|
|
baseDao.updateById(icPartyActEntity); |
|
|
|
//发送消息:自动通知参加人员+活动未开始的
|
|
|
|
if (NumConstant.ONE_STR.equals(icPartyActEntity.getIsAutoInform()) && icPartyActEntity.getHoldTime().compareTo(new Date()) < 1) { |
|
|
|
if (NumConstant.ONE_STR.equals(icPartyActEntity.getIsAutoInform()) && icPartyActEntity.getHoldTime().compareTo(new Date()) >0) { |
|
|
|
PartyMeetingMessageMQMsg msg = new PartyMeetingMessageMQMsg(); |
|
|
|
msg.setCustomerId(icPartyActEntity.getCustomerId()); |
|
|
|
msg.setIcPartyActId(icPartyActEntity.getId()); |
|
|
|