Commit d3edc917 authored by zhangyingbin's avatar zhangyingbin

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

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