|
|
@@ -143,8 +143,8 @@ public abstract class BusJcabServiceImpl {
|
|
|
*/
|
|
|
protected void pushSubmit(BusJcab jcab) {
|
|
|
List<Long> leaderIds = stationService.getStationLeaderId(jcab.getDeptStationId());
|
|
|
- String title = getJcebTypeEnum().getType() + "检查表需确认" ;
|
|
|
- String content = "有一条" + getJcebTypeEnum().getType() + "检查表需确认,请您及时处理";
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表需确认" ;
|
|
|
+ String content = "有一条" + getJcebTypeEnum().getDescribe() + "检查表需确认,请您及时处理";
|
|
|
for(Long id : leaderIds){
|
|
|
busPushMsgService.create(id, title, content, getPushParam(jcab));
|
|
|
}
|
|
|
@@ -156,8 +156,8 @@ public abstract class BusJcabServiceImpl {
|
|
|
protected void setReject(BusJcab jcab) {
|
|
|
jcab.setConfirmUser(SecurityUtils.getUsername());
|
|
|
jcab.setSubmitState(JcebStatusEnum.RETURNED.getCode());
|
|
|
- String title = getJcebTypeEnum().getType() + "检查表被退回" ;
|
|
|
- String content = "您提交的" + getJcebTypeEnum().getType() + "检查表被退回,点击查看详情";
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表被退回" ;
|
|
|
+ String content = "您提交的" + getJcebTypeEnum().getDescribe() + "检查表被退回,点击查看详情";
|
|
|
busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab));
|
|
|
}
|
|
|
|
|
|
@@ -167,14 +167,14 @@ public abstract class BusJcabServiceImpl {
|
|
|
protected void setConfirm(BusJcab jcab) {
|
|
|
jcab.setConfirmUser(SecurityUtils.getUsername());
|
|
|
jcab.setSubmitState(JcebStatusEnum.COMPLETED.getCode());
|
|
|
- String title = getJcebTypeEnum().getType() + "检查表已确认" ;
|
|
|
- String content = "您提交的" + getJcebTypeEnum().getType() + "检查表已确认,点击查看详情";
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表已确认" ;
|
|
|
+ String content = "您提交的" + getJcebTypeEnum().getDescribe() + "检查表已确认,点击查看详情";
|
|
|
busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab));
|
|
|
}
|
|
|
|
|
|
protected String getPushParam(BusJcab jcab){
|
|
|
JSONObject json = new JSONObject();
|
|
|
- json.put("type", getJcebTypeEnum().getCode());
|
|
|
+ json.put("type", getJcebTypeEnum().getTypeCode());
|
|
|
json.put("id", jcab.getId());
|
|
|
json.put("submitState", jcab.getSubmitState());
|
|
|
return json.toJSONString();
|