Commit d3edc917 authored by zhangyingbin's avatar zhangyingbin

修改 获取监察指令书编号的接口

parent 51967afb
...@@ -144,11 +144,15 @@ public class InspectionServiceImpl implements InspectionService { ...@@ -144,11 +144,15 @@ public class InspectionServiceImpl implements InspectionService {
public JSONObject getSafetySupervisionCode(String bizTable,String taskId) { public JSONObject getSafetySupervisionCode(String bizTable,String taskId) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
if (!ValidationUtil.isEmpty(taskId)) { if (!ValidationUtil.isEmpty(taskId)) {
String sql = "select INSTRUCT_CODE from "+ bizTable+" where INSTANCE_ID=?"; try{
String code = bizJdbcTemplate.queryForObject(sql, String.class, taskId); String sql = "select INSTRUCT_CODE from "+ bizTable+" where INSTANCE_ID=?";
if (!ValidationUtil.isEmpty(code)){ String code = bizJdbcTemplate.queryForObject(sql, String.class, taskId);
jsonObject.put("code", code); if (!ValidationUtil.isEmpty(code)){
return jsonObject; jsonObject.put("code", code);
return jsonObject;
}
}catch (Exception e) {
System.out.println("获取监察指令书编号失败");
} }
} }
String safetySupervisionCode = "(%s)市监特令中[%s]第 %s 号"; String safetySupervisionCode = "(%s)市监特令中[%s]第 %s 号";
......
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