Commit a0597560 authored by chenzhao's avatar chenzhao

修改检验检测

parent 29e82a63
...@@ -19,13 +19,14 @@ import java.util.List; ...@@ -19,13 +19,14 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
public enum BizTypeEnum { public enum BizTypeEnum {
SUPERVISE("supervise", "监督检验"), SUPERVISE("supervise", "监督检验","115"),
FIRST_INSPECTION("firstinspect", "定检"), FIRST_INSPECTION("firstinspect", "定检","116"),
DETECTION("detection", "检测"), DETECTION("detection", "检测","117"),
BUSINESS_OPEN("businessOpen", "开通"); BUSINESS_OPEN("businessOpen", "开通","114");
private String code; private String code;
private String name; private String name;
private String num;
public static List<String> getEnumNameList() { public static List<String> getEnumNameList() {
List<String> codeList = new ArrayList<String>(); List<String> codeList = new ArrayList<String>();
...@@ -44,4 +45,13 @@ public enum BizTypeEnum { ...@@ -44,4 +45,13 @@ public enum BizTypeEnum {
} }
return null; return null;
} }
public static String getNumByCode(String code) {
for (BizTypeEnum c : BizTypeEnum.values()) {
if (c.getCode().equals(code)){
return c.getCode();
}
}
return null;
}
} }
...@@ -612,7 +612,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -612,7 +612,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(inspectionApplicationModel)); JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(inspectionApplicationModel));
jsonObject.put("nextTaskId", inspectionApplicationModel.getNextTaskId()); jsonObject.put("nextTaskId", inspectionApplicationModel.getNextTaskId());
jsonObject.put("nextExecuteUser", inspectionApplicationModel.getNextExecuteIds()); jsonObject.put("nextExecuteUser", inspectionApplicationModel.getNextExecuteIds());
jsonObject.put("taskType", BusinessTypeEnum.g); jsonObject.put("taskType", BizTypeEnum.getNumByCode(inspectionApplicationModel.getBizType()));
jsonObject.put("flowStatus",FlowStatusEnum.ROLLBACK.getCode()); jsonObject.put("flowStatus",FlowStatusEnum.ROLLBACK.getCode());
jsonObject.put("flowStatusLabel",FlowStatusEnum.ROLLBACK.getName()); jsonObject.put("flowStatusLabel",FlowStatusEnum.ROLLBACK.getName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment