|
|
@@ -151,8 +151,8 @@ public abstract class BusJcebServiceImpl<T extends BusJceb> implements IBusJcebS
|
|
|
*/
|
|
|
protected void pushSubmit(BusJceb jceb) {
|
|
|
List<Long> leaderIds = stationService.getStationLeaderId(jceb.getDeptStationId());
|
|
|
- String title = getJcebTypeEnum().getType() + "检测表需确认" ;
|
|
|
- String content = "有一条" + getJcebTypeEnum() + "检测表需确认,请您及时处理";
|
|
|
+ String title = getJcebType() + "检测表需确认" ;
|
|
|
+ String content = "有一条" + getJcebType() + "检测表需确认,请您及时处理";
|
|
|
for(Long id : leaderIds){
|
|
|
busPushMsgService.create(id, title, content, getPushParam(jceb));
|
|
|
}
|
|
|
@@ -163,8 +163,8 @@ public abstract class BusJcebServiceImpl<T extends BusJceb> implements IBusJcebS
|
|
|
*/
|
|
|
protected void setReject(BusJceb jceb) {
|
|
|
jceb.setSubmitState(JcebStatusEnum.RETURNED.getCode());
|
|
|
- String title = getJcebTypeEnum() + "检测表被退回" ;
|
|
|
- String content = "您提交的" + getJcebTypeEnum() + "检测表被退回,点击查看详情";
|
|
|
+ String title = getJcebType() + "检测表被退回" ;
|
|
|
+ String content = "您提交的" + getJcebType() + "检测表被退回,点击查看详情";
|
|
|
busPushMsgService.create(jceb.getCreateBy(), title, content, getPushParam(jceb));
|
|
|
}
|
|
|
|
|
|
@@ -173,8 +173,8 @@ public abstract class BusJcebServiceImpl<T extends BusJceb> implements IBusJcebS
|
|
|
*/
|
|
|
protected void setConfirm(BusJceb jceb) {
|
|
|
jceb.setSubmitState(JcebStatusEnum.COMPLETED.getCode());
|
|
|
- String title = getJcebTypeEnum() + "检测表已确认" ;
|
|
|
- String content = "您提交的" + getJcebTypeEnum() + "检测表已确认,点击查看详情";
|
|
|
+ String title = getJcebType() + "检测表已确认" ;
|
|
|
+ String content = "您提交的" + getJcebType() + "检测表已确认,点击查看详情";
|
|
|
busPushMsgService.create(jceb.getCreateBy(), title, content, getPushParam(jceb));
|
|
|
}
|
|
|
|
|
|
@@ -186,6 +186,10 @@ public abstract class BusJcebServiceImpl<T extends BusJceb> implements IBusJcebS
|
|
|
return json.toJSONString();
|
|
|
}
|
|
|
|
|
|
+ private String getJcebType(){
|
|
|
+ return getJcebTypeEnum().getType();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取检查表类型名
|
|
|
* @return 类型名
|