Commit a310f055601381cfc06d8a9e08920a7127e7352b
1 parent
91c67a50fb
Exists in
master
and in
1 other branch
code update
Showing 2 changed files with 15 additions and 11 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java
View file @
a310f05
... | ... | @@ -376,7 +376,7 @@ |
376 | 376 | { |
377 | 377 | break; |
378 | 378 | } |
379 | - num=num+20; | |
379 | + num=num+100; | |
380 | 380 | for (Map<String, Object> map : list) { |
381 | 381 | try { |
382 | 382 | System.out.println(num+"---------------------------------"); |
... | ... | @@ -399,6 +399,10 @@ |
399 | 399 | |
400 | 400 | type = 3; |
401 | 401 | } |
402 | + if (map.get("P_LASTMENSTRUALPERIOD")== null || "".equals(map.get("P_LASTMENSTRUALPERIOD"))) | |
403 | + { | |
404 | + continue; | |
405 | + } | |
402 | 406 | |
403 | 407 | patients.setDueDate(DateUtil.addDay(getDate(map.get("P_LASTMENSTRUALPERIOD")), 42 * 7)); |
404 | 408 | person.setCreated(new Date()); |
... | ... | @@ -1641,7 +1645,7 @@ |
1641 | 1645 | public static void syncDataPat1(String hid,MongoTemplate mongoTemplate) |
1642 | 1646 | { |
1643 | 1647 | try { |
1644 | - syncPatientData(hid, mongoTemplate,1,30000); | |
1648 | + syncPatientData(hid, mongoTemplate,1,5000); | |
1645 | 1649 | } |
1646 | 1650 | catch (Exception e) |
1647 | 1651 | { |
... | ... | @@ -1652,7 +1656,7 @@ |
1652 | 1656 | public static void syncDataPat2(String hid,MongoTemplate mongoTemplate) |
1653 | 1657 | { |
1654 | 1658 | try { |
1655 | - syncPatientData(hid,mongoTemplate,30001,8000); | |
1659 | + syncPatientData(hid,mongoTemplate,50001,100000); | |
1656 | 1660 | } |
1657 | 1661 | catch (Exception e) |
1658 | 1662 | { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
a310f05
... | ... | @@ -118,14 +118,14 @@ |
118 | 118 | System.out.print("同步结束孕妇1>>>>>>>>>>>>>>>>>>>>>>>>>"); |
119 | 119 | } |
120 | 120 | }).start(); |
121 | -// new Thread(new Runnable() { | |
122 | -// @Override | |
123 | -// public void run() { | |
124 | -// System.out.print("同步开始孕妇2>>>>>>>>>>>>>>>>>>>>>>>>>"); | |
125 | -// JdbcUtil.syncDataPat2(hid, template); | |
126 | -// System.out.print("同步结束孕妇2>>>>>>>>>>>>>>>>>>>>>>>>>"); | |
127 | -// } | |
128 | -// }).start(); | |
121 | + new Thread(new Runnable() { | |
122 | + @Override | |
123 | + public void run() { | |
124 | + System.out.print("同步开始孕妇2>>>>>>>>>>>>>>>>>>>>>>>>>"); | |
125 | + JdbcUtil.syncDataPat2(hid, template); | |
126 | + System.out.print("同步结束孕妇2>>>>>>>>>>>>>>>>>>>>>>>>>"); | |
127 | + } | |
128 | + }).start(); | |
129 | 129 | // new Thread(new Runnable() { |
130 | 130 | // @Override |
131 | 131 | // public void run() { |