|
|
@ -167,33 +167,34 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService { |
|
|
*/ |
|
|
*/ |
|
|
public void getSendYuGaoMsg(EfcodeCpNotice entity){ |
|
|
public void getSendYuGaoMsg(EfcodeCpNotice entity){ |
|
|
|
|
|
|
|
|
// 发送前校验系统参数开关
|
|
|
|
|
|
if (!isSnsSendEnabled()) { |
|
|
|
|
|
log.info("系统参数[sns.send]未开启,跳过预告消息(站内信/短信)发送,预告ID:{}", entity.getId()); |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
// 发送前校验系统参数开关
|
|
|
|
|
|
// if (!isSnsSendEnabled()) {
|
|
|
generateSystemMessage(entity); |
|
|
// log.info("系统参数[sns.send]未开启,跳过预告消息(站内信/短信)发送,预告ID:{}", entity.getId());
|
|
|
try{ |
|
|
// return;
|
|
|
YuGaoMsgParamBo paramBo = new YuGaoMsgParamBo(); |
|
|
// }
|
|
|
paramBo.setSourceId(entity.getId()); |
|
|
//
|
|
|
paramBo.setEnterpriseId(entity.getEnterpriseId()); |
|
|
// generateSystemMessage(entity);
|
|
|
paramBo.setEnterpriseName(entity.getEnterpriseName()); |
|
|
// try{
|
|
|
paramBo.setCreateByName(LoginHelper.getUsername()); |
|
|
// YuGaoMsgParamBo paramBo = new YuGaoMsgParamBo();
|
|
|
paramBo.setDeptName(entity.getDeptName()); |
|
|
// paramBo.setSourceId(entity.getId());
|
|
|
paramBo.setEnforceDate(entity.getEnforceDate()); |
|
|
// paramBo.setEnterpriseId(entity.getEnterpriseId());
|
|
|
siqService.sendYuGaoMsg(paramBo); |
|
|
// paramBo.setEnterpriseName(entity.getEnterpriseName());
|
|
|
|
|
|
// paramBo.setCreateByName(LoginHelper.getUsername());
|
|
|
}catch (Exception e){ |
|
|
// paramBo.setDeptName(entity.getDeptName());
|
|
|
log.error("发送预告消息异常:{}", e.getMessage()); |
|
|
// paramBo.setEnforceDate(entity.getEnforceDate());
|
|
|
} |
|
|
// siqService.sendYuGaoMsg(paramBo);
|
|
|
|
|
|
//
|
|
|
try { |
|
|
// }catch (Exception e){
|
|
|
// 异步发送预告短信
|
|
|
// log.error("发送预告消息异常:{}", e.getMessage());
|
|
|
sendYuGaoSms(entity); |
|
|
// }
|
|
|
}catch (Exception e){ |
|
|
//
|
|
|
log.error("发送预告短信异常:{}", e.getMessage()); |
|
|
// try {
|
|
|
} |
|
|
// // 异步发送预告短信
|
|
|
|
|
|
// sendYuGaoSms(entity);
|
|
|
|
|
|
// }catch (Exception e){
|
|
|
|
|
|
// log.error("发送预告短信异常:{}", e.getMessage());
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|