Commit 04aae58d89c140cf269ab075ec603c10dc7686af

Authored by liquanyu
1 parent 20a34cdfe2

code update

Showing 1 changed file with 2 additions and 2 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java View file @ 04aae58
... ... @@ -133,7 +133,7 @@
133 133 {
134 134 for (Map<String,String> map : users)
135 135 {
136   - if (StringUtils.isNotEmpty(map.get("name")) && map.get("name").equals(map.get(name)))
  136 + if (StringUtils.isNotEmpty(map.get("name")) && map.get("name").equals(name))
137 137 {
138 138 return map.get("id");
139 139 }
... ... @@ -693,7 +693,7 @@
693 693 String sql = "select replace(mp.P_NO,'-','') as PID,mp.*,p_birthday,p_name,floor((trunc(sysdate) - trunc(mp.P_LASTMENSTRUALPERIOD)+1) /7) as weeks from MOMMY_PATIENT mp left join Plat_Patient pp" +
694 694 " on mp.p_platpatientid=pp.p_id where mp.p_hospitalid = '" + hospitalId + "' order by mp.p_lastmenstrualperiod desc " ;
695 695 List<Map<String, Object>> list = getListDataBySql(sql);
696   - int batchSize = 1000;
  696 + int batchSize = 500;
697 697 int end = 0;
698 698 for (int i = 0; i < list.size();i+=batchSize) {
699 699 end=(end + batchSize);