|
|
@ -175,10 +175,12 @@ public class AccessTicketServiceImpl extends ServiceImpl<AccessTicketMapper, Acc |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// 消息推送
|
|
|
|
// 消息推送
|
|
|
|
|
|
|
|
if(!"流程结束".equals(entity.getTaskName())){ |
|
|
|
String countent = "您有一条检修报单流程待处理!单据名称:".concat(DateUtil.format(entity.getCreateTime(),DateUtil.PATTERN_DATETIME) + "_" + entity.getDeviceName() + "_检修工作票") |
|
|
|
String countent = "您有一条检修报单流程待处理!单据名称:".concat(DateUtil.format(entity.getCreateTime(),DateUtil.PATTERN_DATETIME) + "_" + entity.getDeviceName() + "_检修工作票") |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(processWorkFlowResponse.getTaskName());; |
|
|
|
.concat(processWorkFlowResponse.getTaskName());; |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),countent); |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),countent); |
|
|
|
|
|
|
|
} |
|
|
|
return this.updateById(entity); |
|
|
|
return this.updateById(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -358,12 +360,12 @@ public class AccessTicketServiceImpl extends ServiceImpl<AccessTicketMapper, Acc |
|
|
|
for (Dict dict : dicts){ |
|
|
|
for (Dict dict : dicts){ |
|
|
|
if(StringUtils.isNotEmpty(access.getDangerous())){ |
|
|
|
if(StringUtils.isNotEmpty(access.getDangerous())){ |
|
|
|
if(access.getDangerous().contains(dict.getDictKey())){ |
|
|
|
if(access.getDangerous().contains(dict.getDictKey())){ |
|
|
|
dangerous.append(" ☑").append(dict.getDictValue()); |
|
|
|
dangerous.append(" √").append(dict.getDictValue()); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
dangerous.append(" □").append(dict.getDictValue()); |
|
|
|
dangerous.append(" ").append(dict.getDictValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
dangerous.append(" □").append(dict.getDictValue()); |
|
|
|
dangerous.append(" ").append(dict.getDictValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
params.setDangerous(dangerous.toString()); |
|
|
|
params.setDangerous(dangerous.toString()); |
|
|
|