Commit 066c2b87347c49b0b99cc653507b5e619b77d2f5
1 parent
457df857fc
Exists in
master
and in
6 other branches
bug修复
Showing 1 changed file with 13 additions and 13 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
View file @
066c2b8
| ... | ... | @@ -474,18 +474,22 @@ |
| 474 | 474 | } |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | - } | |
| 478 | - | |
| 479 | - if(CollectionUtils.isNotEmpty(couponReport)) { | |
| 480 | - param.put("status", 2); | |
| 481 | - List<Map<String, Object>> couponUsedTypeInfo = couponMapper.findUsedInfo(param); /** 优惠券使用详情 */ | |
| 482 | - for (Map<String, Object> m : couponReport) { | |
| 483 | - for (Map<String, Object> info : couponUsedTypeInfo) { | |
| 484 | - if(m.get("hospitalId").toString().equals(info.get("used_hospital_id"))) { | |
| 485 | - m.put(info.get("type") + "_" + info.get("coupon_order"), info.get("type_used_count")); | |
| 477 | + if(CollectionUtils.isNotEmpty(couponReport)) { | |
| 478 | + param.put("status", 2); | |
| 479 | + List<Map<String, Object>> couponUsedTypeInfo = couponMapper.findUsedInfo(param); /** 优惠券使用详情 */ | |
| 480 | + for (Map<String, Object> m : couponReport) { | |
| 481 | + for (Map<String, Object> info : couponUsedTypeInfo) { | |
| 482 | + if(m.get("hospitalId").toString().equals(info.get("used_hospital_id"))) { | |
| 483 | + m.put(info.get("type") + "_" + info.get("coupon_order"), info.get("type_used_count")); | |
| 484 | + } | |
| 486 | 485 | } |
| 487 | 486 | } |
| 488 | 487 | } |
| 488 | + | |
| 489 | + /** 查询医院所绑定的type和coupon_order */ | |
| 490 | + List<String> key = couponMapper.findCouponTitleByTemp(param); | |
| 491 | + setZeroDataByTemp(key, couponReport); | |
| 492 | + | |
| 489 | 493 | } |
| 490 | 494 | |
| 491 | 495 | ReportModel reportModel = new ReportModel(); |
| ... | ... | @@ -493,10 +497,6 @@ |
| 493 | 497 | reportModel.setData(Arrays.asList("发放券数", "使用券数")); |
| 494 | 498 | reportModel.setSeries(createSeries(couponReport)); |
| 495 | 499 | reportModel.doMerge(); |
| 496 | - | |
| 497 | - /** 查询医院所绑定的type和coupon_order */ | |
| 498 | - List<String> key = couponMapper.findCouponTitleByTemp(param); | |
| 499 | - setZeroDataByTemp(key, couponReport); | |
| 500 | 500 | |
| 501 | 501 | Map<String, Object> titleMap = parseTitle(couponReport); |
| 502 | 502 | transNullToZero(couponReport, titleMap); |