Commit 599840fe3f73f9eb359619a1a5c5a910046b721f
1 parent
e6b8b1eeaa
Exists in
master
and in
3 other branches
code update
Showing 1 changed file with 3 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java
View file @
599840f
... | ... | @@ -369,7 +369,7 @@ |
369 | 369 | int num = start; |
370 | 370 | List<Map<String, Object>> list = getListDataBySql(" SELECT * FROM ( SELECT A.*, ROWNUM RN FROM " + |
371 | 371 | "(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" + |
372 | - " on mp.p_platpatientid=pp.p_id where mp.p_hospitalid = '" + hospitalId + "' order by mp.p_lastmenstrualperiod desc ) A WHERE ROWNUM < "+total+" ) WHERE RN >= "+num+" "); | |
372 | + " on mp.p_platpatientid=pp.p_id where mp.p_hospitalid = '" + hospitalId + "' order by mp.p_lastmenstrualperiod desc ) A WHERE ROWNUM <= "+total+" ) WHERE RN >= "+num); | |
373 | 373 | System.out.println(list.size()+"---------------------------------"); |
374 | 374 | for (Map<String, Object> map : list) { |
375 | 375 | try { |
... | ... | @@ -1681,6 +1681,8 @@ |
1681 | 1681 | // conn.up |
1682 | 1682 | // syncBabyData("62"); |
1683 | 1683 | // syncPatientData("62"); |
1684 | +// initData(); | |
1685 | +// syncPatientData("62", getMongoTemplate(), 1,2000); | |
1684 | 1686 | |
1685 | 1687 | } |
1686 | 1688 | } |