Commit ba5b6b8d4641ee9fa46e2dc03e638dc1c4058dc8
1 parent
e837a85a6f
Exists in
master
and in
6 other branches
改bug
Showing 3 changed files with 13 additions and 7 deletions
- platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java
View file @
ba5b6b8
... | ... | @@ -151,6 +151,8 @@ |
151 | 151 | Map<String, Object> resultMap = new HashMap<>(); |
152 | 152 | resultMap.put("errorcode", ErrorCodeConstants.SYSTEM_ERROR); |
153 | 153 | resultMap.put("errormsg", "服务器异常."); |
154 | + resultMap.put("message", e.getMessage()); | |
155 | + resultMap.put("exception", e.getClass()); | |
154 | 156 | if(!e.getClass().getSimpleName() .equals("ClientAbortException") ){ |
155 | 157 | ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " +httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); |
156 | 158 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java
View file @
ba5b6b8
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
View file @
ba5b6b8
... | ... | @@ -439,10 +439,17 @@ |
439 | 439 | } |
440 | 440 | |
441 | 441 | private void setCountList(List<List<String>> tabList, List<String> countList, int index) { |
442 | - countList.add(tabList.size() + ""); | |
443 | - countList.add("合计"); | |
444 | - countList.add("建档总数"); | |
445 | 442 | if(tabList.size() > 1) { |
443 | + countList.add(tabList.size() + ""); | |
444 | + countList.add("合计"); | |
445 | + if(index == 4) { | |
446 | + int orgCount = 0; | |
447 | + for (int i = 1; i < tabList.size(); i++) { | |
448 | + orgCount += Integer.parseInt(tabList.get(i).get(4)); | |
449 | + } | |
450 | + countList.add(orgCount + ""); | |
451 | + } | |
452 | + countList.add("建档总数"); | |
446 | 453 | for (int i = index; i < tabList.get(0).size(); i++) { |
447 | 454 | int count = 0; |
448 | 455 | for (int j = 1; j < tabList.size(); j++) { |
449 | 456 | |
... | ... | @@ -450,10 +457,8 @@ |
450 | 457 | } |
451 | 458 | countList.add(count + ""); |
452 | 459 | } |
453 | - | |
460 | + tabList.add(countList); | |
454 | 461 | } |
455 | - tabList.add(countList); | |
456 | - | |
457 | 462 | } |
458 | 463 | |
459 | 464 | private void setTabListInfo(List<List<String>> tabList, int index) { |