Commit 9e3632d7a44d12ccb3b47822db951aa02dca85b4

Authored by liquanyu
1 parent 9ca65bcd59

update code

Showing 1 changed file with 7 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyStatisticsManagerFacade.java View file @ 9e3632d
... ... @@ -792,7 +792,7 @@
792 792  
793 793 // jdbc查oracle
794 794 ExceptionUtils.catchException("babyStatisticsManagerSelfConversionList: " + sql);
795   - List<Map<String, Object>> list = JdbcUtil.getOracleListDataBySql("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@127.0.0.1:1521:orcl", "LYMS_ODS", "Welcome1", sql);
  795 + List<Map<String, Object>> list = JdbcUtil.getOracleListDataBySql("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@192.168.1.32:1521:orcl", "LYMS_ODS", "Welcome1", sql);
796 796  
797 797 Collections.sort(list, new Comparator<Map<String, Object>>() {
798 798 @Override
... ... @@ -824,7 +824,7 @@
824 824 int nocheckCount = 0;
825 825 Integer total = 0;
826 826 List<Integer> temp = new LinkedList<>();
827   - for (Integer i = 0; i < 37; i++) {
  827 + for (Integer i = 0; i < 36; i++) {
828 828 if (CollectionUtils.isNotEmpty(list))
829 829 {
830 830 int tempCount = 0;
... ... @@ -847,6 +847,7 @@
847 847 {
848 848 nocheckCount+=Integer.valueOf(list.get(j).get("CNT").toString());
849 849 }
  850 + System.out.println("========" + Integer.valueOf(list.get(j).get("CNT").toString()));
850 851 total+=Integer.valueOf(list.get(j).get("CNT").toString());
851 852 }
852 853  
... ... @@ -913,6 +914,10 @@
913 914 {
914 915 resultOther.add(total-count);
915 916 result.add(count);
  917 + }
  918 + if (i >= 12)
  919 + {
  920 + nocheckCount+=temp.get(i);
916 921 }
917 922 }
918 923 }