Commit c58d43e87f4b144af9cd5db8274c0ceb2815f31d
1 parent
2a6a72fdda
Exists in
master
and in
1 other branch
提交代码
Showing 1 changed file with 4 additions and 11 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/LisCrisisItemController.java
View file @
c58d43e
... | ... | @@ -99,18 +99,11 @@ |
99 | 99 | map.put("patientId",data.getPatientId()); |
100 | 100 | list.add(map); |
101 | 101 | } |
102 | - | |
103 | - CommonResult result = new CommonResult(); | |
104 | - result.setList(list); | |
105 | - result.setPageInfo(query.getPageInfo()); | |
106 | - ResultUtils.buildSuccessResultAndWrite(response, result); | |
107 | - }else { | |
108 | - Map<String,Object> result= new HashMap<>(); | |
109 | - result.put("errorcode", 0); | |
110 | - result.put("errormsg","没有查询到数据"); | |
111 | - writeJson(response, JsonUtil.obj2JsonString(result)); | |
112 | 102 | } |
113 | - | |
103 | + CommonResult result = new CommonResult(); | |
104 | + result.setList(list); | |
105 | + result.setPageInfo(query.getPageInfo()); | |
106 | + ResultUtils.buildSuccessResultAndWrite(response, result); | |
114 | 107 | // LisCrisisItem data = new LisCrisisItem(); |
115 | 108 | // data.setName("黄小希"); |
116 | 109 | // data.setAge(30); |