|
|
|
@@ -55,18 +55,18 @@ public class ApprovalServiceImpl implements ApprovalService { |
|
|
|
//推送消息给申请人 |
|
|
|
NewSysNotificationParamsVo newSysNotificationParamsVo = new NewSysNotificationParamsVo(); |
|
|
|
|
|
|
|
String applyContentTemplate="<b>您</b>发布的{}<b>\"{}\"</b>{}审核已通过"; |
|
|
|
String applyContentTemplate="您发布的{}<b>\"{}\"</b>审核已通过"; |
|
|
|
String appContentFormat = StrUtil.format(applyContentTemplate,ApprovalType.getDescription(info.getType()) |
|
|
|
,getModelNameByType(info.getContent(),info.getType())); |
|
|
|
|
|
|
|
String contentTemplate="<b>{}</b>发布的{}<b>\"{}\"</b>审核已通过"; |
|
|
|
String contentTemplate="{}发布的{}<b>\"{}\"</b>审核已通过"; |
|
|
|
String contentFormat = StrUtil.format(contentTemplate,info.getApplicantName(),ApprovalType.getDescription(info.getType()) |
|
|
|
,getModelNameByType(info.getContent(),info.getType())); |
|
|
|
|
|
|
|
newSysNotificationParamsVo.setType(2); |
|
|
|
newSysNotificationParamsVo.setSender(info.getApplicantId()); |
|
|
|
newSysNotificationParamsVo.setSender(info.getApproverId()); |
|
|
|
newSysNotificationParamsVo.setNotification_url(info.getUrl()); |
|
|
|
newSysNotificationParamsVo.setReceivers(info.getApproverId().toString()); |
|
|
|
newSysNotificationParamsVo.setReceivers(info.getApplicantId().toString()); |
|
|
|
newSysNotificationParamsVo.setContent(appContentFormat); |
|
|
|
infoPublishService.pushSysInfo(newSysNotificationParamsVo); |
|
|
|
|
|
|
|
@@ -77,7 +77,7 @@ public class ApprovalServiceImpl implements ApprovalService { |
|
|
|
approveParamsVo.setContent(contentFormat); |
|
|
|
approveParamsVo.setSender(info.getApproverId()); |
|
|
|
approveParamsVo.setNotification_url(info.getUrl()); |
|
|
|
approveParamsVo.setReceivers(info.getApplicantId().toString()); |
|
|
|
approveParamsVo.setReceivers(info.getApproverId().toString()); |
|
|
|
infoPublishService.pushSysInfo(newSysNotificationParamsVo); |
|
|
|
|
|
|
|
//审批通过,更改状态 |
|
|
|
@@ -94,18 +94,18 @@ public class ApprovalServiceImpl implements ApprovalService { |
|
|
|
//推送消息给申请人 |
|
|
|
NewSysNotificationParamsVo newSysNotificationParamsVo = new NewSysNotificationParamsVo(); |
|
|
|
|
|
|
|
String applyContentTemplate="<b>您</b>发布的{}<b>\"{}\"</b>{}审核未通过"; |
|
|
|
String applyContentTemplate="您发布的{}<b>\"{}\"</b>{}审核未通过"; |
|
|
|
String appContentFormat = StrUtil.format(applyContentTemplate,ApprovalType.getDescription(info.getType()) |
|
|
|
,getModelNameByType(info.getContent(),info.getType())); |
|
|
|
|
|
|
|
String contentTemplate="<b>{}</b>发布的{}<b>\"{}\"</b>审核未通过"; |
|
|
|
String contentTemplate="{}发布的{}<b>\"{}\"</b>审核未通过"; |
|
|
|
String contentFormat = StrUtil.format(contentTemplate,info.getApplicantName(),ApprovalType.getDescription(info.getType()) |
|
|
|
,getModelNameByType(info.getContent(),info.getType())); |
|
|
|
|
|
|
|
newSysNotificationParamsVo.setType(2); |
|
|
|
newSysNotificationParamsVo.setSender(info.getApplicantId()); |
|
|
|
newSysNotificationParamsVo.setSender(info.getApproverId()); |
|
|
|
newSysNotificationParamsVo.setNotification_url(info.getUrl()); |
|
|
|
newSysNotificationParamsVo.setReceivers(info.getApproverId().toString()); |
|
|
|
newSysNotificationParamsVo.setReceivers(info.getApplicantId().toString()); |
|
|
|
newSysNotificationParamsVo.setContent(appContentFormat); |
|
|
|
infoPublishService.pushSysInfo(newSysNotificationParamsVo); |
|
|
|
|
|
|
|
@@ -116,7 +116,7 @@ public class ApprovalServiceImpl implements ApprovalService { |
|
|
|
approveParamsVo.setContent(contentFormat); |
|
|
|
approveParamsVo.setSender(info.getApproverId()); |
|
|
|
approveParamsVo.setNotification_url(info.getUrl()); |
|
|
|
approveParamsVo.setReceivers(info.getApplicantId().toString()); |
|
|
|
approveParamsVo.setReceivers(info.getApproverId().toString()); |
|
|
|
infoPublishService.pushSysInfo(newSysNotificationParamsVo); |
|
|
|
} |
|
|
|
|
|
|
|
|