Commit bff5b6bf1167e0f1e7f40a2b50e14b003a943848

Authored by liquanyu
1 parent 1cda5a44bf

update code

Showing 1 changed file with 5 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lcfy/LisService.java View file @ bff5b6b
... ... @@ -40,12 +40,14 @@
40 40 ResultSet rs = null;
41 41 try {
42 42 conn = ConnTools.makeLisConnection();
  43 + String wId = com.lyms.platform.common.utils.StringUtils.uuid();
  44 +
43 45 for (String key : itemsWamen.keySet())
44 46 {
45 47 ps = conn.prepareStatement(sql);
46 48 ps.setString(1,"体检TJ");
47 49 ps.setString(2,model.getWifeCardNo());
48   - ps.setString(3,model.getId());
  50 + ps.setString(3,wId);
49 51 ps.setString(4, model.getWifeName());
50 52 ps.setString(5, "女");
51 53 ps.setString(6, model.getWifeBirthday() != null ? DateUtil.getAge(model.getWifeBirthday())+"" : "");
52 54  
... ... @@ -57,12 +59,13 @@
57 59 int inCount = ps.executeUpdate();
58 60 System.out.println("女性保存"+inCount);
59 61 }
  62 + String mid = com.lyms.platform.common.utils.StringUtils.uuid();
60 63 for (String key : itemsMan.keySet())
61 64 {
62 65 ps = conn.prepareStatement(sql);
63 66 ps.setString(1,"体检TJ");
64 67 ps.setString(2,model.getHusbandCardNo());
65   - ps.setString(3,model.getId());
  68 + ps.setString(3,mid);
66 69 ps.setString(4, model.getHusbandName());
67 70 ps.setString(5, "男");
68 71 ps.setString(6, model.getHusbandBirthday() != null ? DateUtil.getAge(model.getHusbandBirthday())+"" : "");