|
|
@@ -56,11 +56,11 @@ public abstract class BusJcabServiceImpl {
|
|
|
// 设置查询权限
|
|
|
JcebQueryUtil.setBusJcab(jcab);
|
|
|
// 如果是段领导、中心领导选择了多个车间,就不再使用deptId查询参数
|
|
|
- if(CollectionUtils.isNotEmpty(jcab.getDeptIds())){
|
|
|
+ if (CollectionUtils.isNotEmpty(jcab.getDeptIds())) {
|
|
|
jcab.setDeptId(null);
|
|
|
}
|
|
|
// 如果是段领导、中心领导选择了多个车间,就不再使用deptId查询参数
|
|
|
- if(CollectionUtils.isNotEmpty(jcab.getStationIds())){
|
|
|
+ if (CollectionUtils.isNotEmpty(jcab.getStationIds())) {
|
|
|
jcab.setStationId(null);
|
|
|
}
|
|
|
// 设置查询参数
|
|
|
@@ -143,10 +143,11 @@ public abstract class BusJcabServiceImpl {
|
|
|
*/
|
|
|
protected void pushSubmit(BusJcab jcab) {
|
|
|
List<Long> leaderIds = stationService.getStationLeaderId(jcab.getDeptStationId());
|
|
|
- String title = getJcebTypeEnum().getDescribe() + "检查表需确认" ;
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表需确认";
|
|
|
String content = "有一条" + getJcebTypeEnum().getDescribe() + "检查表需确认,请您及时处理";
|
|
|
- for(Long id : leaderIds){
|
|
|
- busPushMsgService.create(id, title, content, getPushParam(jcab));
|
|
|
+ for (Long id : leaderIds) {
|
|
|
+ busPushMsgService.create(id, title, content, getPushParam(jcab), jcab.getId(),
|
|
|
+ getJcebTypeEnum().getTypeCode());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -156,9 +157,10 @@ public abstract class BusJcabServiceImpl {
|
|
|
protected void setReject(BusJcab jcab) {
|
|
|
jcab.setConfirmUser(SecurityUtils.getUsername());
|
|
|
jcab.setSubmitState(JcebStatusEnum.RETURNED.getCode());
|
|
|
- String title = getJcebTypeEnum().getDescribe() + "检查表被退回" ;
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表被退回";
|
|
|
String content = "您提交的" + getJcebTypeEnum().getDescribe() + "检查表被退回,点击查看详情";
|
|
|
- busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab));
|
|
|
+ busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab), jcab.getId(),
|
|
|
+ getJcebTypeEnum().getTypeCode());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -167,12 +169,13 @@ public abstract class BusJcabServiceImpl {
|
|
|
protected void setConfirm(BusJcab jcab) {
|
|
|
jcab.setConfirmUser(SecurityUtils.getUsername());
|
|
|
jcab.setSubmitState(JcebStatusEnum.COMPLETED.getCode());
|
|
|
- String title = getJcebTypeEnum().getDescribe() + "检查表已确认" ;
|
|
|
+ String title = getJcebTypeEnum().getDescribe() + "检查表已确认";
|
|
|
String content = "您提交的" + getJcebTypeEnum().getDescribe() + "检查表已确认,点击查看详情";
|
|
|
- busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab));
|
|
|
+ busPushMsgService.create(jcab.getCreateBy(), title, content, getPushParam(jcab), jcab.getId(),
|
|
|
+ getJcebTypeEnum().getTypeCode());
|
|
|
}
|
|
|
|
|
|
- protected String getPushParam(BusJcab jcab){
|
|
|
+ protected String getPushParam(BusJcab jcab) {
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("type", getJcebTypeEnum().getTypeCode());
|
|
|
json.put("id", jcab.getId());
|
|
|
@@ -182,6 +185,7 @@ public abstract class BusJcabServiceImpl {
|
|
|
|
|
|
/**
|
|
|
* 获取检查表类型名
|
|
|
+ *
|
|
|
* @return 类型名
|
|
|
*/
|
|
|
abstract JcebTypeEnum getJcebTypeEnum();
|