Commit 0bccfdf55844a85ea53346c3b7d6e80dd2a293ae
1 parent
968cd89160
Exists in
master
and in
1 other branch
lis
Showing 1 changed file with 3 additions and 4 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/LisServiceImpl.java
View file @
0bccfdf
... | ... | @@ -33,6 +33,7 @@ |
33 | 33 | import java.util.List; |
34 | 34 | import java.util.concurrent.CountDownLatch; |
35 | 35 | import java.util.concurrent.Future; |
36 | +import java.util.concurrent.TimeUnit; | |
36 | 37 | |
37 | 38 | |
38 | 39 | @Service("lisService") |
... | ... | @@ -46,8 +47,7 @@ |
46 | 47 | private AntenatalExaminationService antExService; |
47 | 48 | @Autowired |
48 | 49 | private PatientsService patientsService; |
49 | - @Autowired | |
50 | - private OrganizationService organizationService; | |
50 | + | |
51 | 51 | @Override |
52 | 52 | public BaseResponse saveLisData(final List<LisReportModel> lisList,ThreadPoolTaskExecutor commonThreadPool) { |
53 | 53 | try { |
54 | 54 | |
... | ... | @@ -65,10 +65,9 @@ |
65 | 65 | end = lisList.size(); |
66 | 66 | } |
67 | 67 | List<LisReportModel> models = lisList.subList(i, end); |
68 | -// new Thread(new LisSaveTask(countDownLatch,masterLisMapper,models)).start(); | |
69 | 68 | commonThreadPool.execute(new LisSaveTask(countDownLatch,masterLisMapper,models)); |
70 | 69 | } |
71 | - countDownLatch.await(); | |
70 | + countDownLatch.await(20, TimeUnit.SECONDS); | |
72 | 71 | } |
73 | 72 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
74 | 73 | } |