Commit 22064a752660b9d656d707cdac66ea8e7a2fefdd
1 parent
7d127ea2a0
Exists in
master
and in
6 other branches
服务同步
Showing 1 changed file with 5 additions and 11 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
22064a7
... | ... | @@ -8,6 +8,7 @@ |
8 | 8 | import com.lyms.platform.biz.service.*; |
9 | 9 | import com.lyms.platform.common.enums.SieveStatusEnums; |
10 | 10 | import com.lyms.platform.common.enums.YnEnums; |
11 | +import com.lyms.platform.common.result.BaseResponse; | |
11 | 12 | import com.lyms.platform.common.utils.CompressEncodeingUtil; |
12 | 13 | import com.lyms.platform.common.utils.DateUtil; |
13 | 14 | import com.lyms.platform.common.utils.ExceptionUtils; |
... | ... | @@ -139,7 +140,7 @@ |
139 | 140 | */ |
140 | 141 | @RequestMapping(value = "/synBuildToPatientService", method = RequestMethod.GET) |
141 | 142 | @ResponseBody |
142 | - public String synBuildToPatientService( | |
143 | + public BaseResponse synBuildToPatientService( | |
143 | 144 | @RequestParam(value = "isSkip") boolean isSkip, |
144 | 145 | @RequestParam(value = "isZjzx") boolean isZjzx |
145 | 146 | ) { |
... | ... | @@ -169,16 +170,9 @@ |
169 | 170 | System.out.println("线程处理数据量:"+i+"--至--"+end); |
170 | 171 | commonThreadPool.submit(new BuildSerToPatientSerWorker(i, end,patientsService,patientServiceService,isSkip,isZjzx,batchSize,patientCount)); |
171 | 172 | } |
172 | - | |
173 | - // for (Future f : listFuture) { | |
174 | - // try { | |
175 | - // f.get(30, TimeUnit.SECONDS); | |
176 | - // } catch (Exception e) { | |
177 | - // ExceptionUtils.catchException(e, "convertToQuanCPatient get result Future error."); | |
178 | - // } | |
179 | - // } | |
180 | - | |
181 | - return "success"; | |
173 | + BaseResponse baseResponse = new BaseResponse(); | |
174 | + baseResponse.setErrormsg("一共需要处理数据量:"+patientCount); | |
175 | + return baseResponse; | |
182 | 176 | } |
183 | 177 | |
184 | 178 |