Commit d37dbe79efe75258d898ae651273c9d2d07ca86d

Authored by liquanyu
1 parent 6d1491f957

code update

Showing 2 changed files with 17 additions and 4 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java View file @ d37dbe7
... ... @@ -1408,9 +1408,13 @@
1408 1408 }
1409 1409 }
1410 1410  
1411   - public void syncData(String hid,MongoTemplate mongoTemplate)
  1411 + public void syncDataBaby(String hid,MongoTemplate mongoTemplate)
1412 1412 {
1413 1413 syncBabyData(hid,mongoTemplate);
  1414 + }
  1415 +
  1416 + public void syncDataPat(String hid,MongoTemplate mongoTemplate)
  1417 + {
1414 1418 syncPatientData(hid,mongoTemplate);
1415 1419 }
1416 1420  
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java View file @ d37dbe7
... ... @@ -102,9 +102,18 @@
102 102 new Thread(new Runnable() {
103 103 @Override
104 104 public void run() {
105   - System.out.print("同步开始>>>>>>>>>>>>>>>>>>>>>>>>>");
106   - new com.lyms.platform.biz.JdbcUtil().syncData(hid, template);
107   - System.out.print("同步结束>>>>>>>>>>>>>>>>>>>>>>>>>");
  105 + System.out.print("同步开始儿童>>>>>>>>>>>>>>>>>>>>>>>>>");
  106 + new com.lyms.platform.biz.JdbcUtil().syncDataBaby(hid, template);
  107 + System.out.print("同步结束儿童>>>>>>>>>>>>>>>>>>>>>>>>>");
  108 + }
  109 + }).start();
  110 +
  111 + new Thread(new Runnable() {
  112 + @Override
  113 + public void run() {
  114 + System.out.print("同步开始孕妇>>>>>>>>>>>>>>>>>>>>>>>>>");
  115 + new com.lyms.platform.biz.JdbcUtil().syncDataPat(hid, template);
  116 + System.out.print("同步结束孕妇>>>>>>>>>>>>>>>>>>>>>>>>>");
108 117 }
109 118 }).start();
110 119 return "starting...........";