Commit fbd02b53426aa43fab44c1c36e80c7b2795af3b5
1 parent
ca10c7824f
Exists in
master
and in
6 other branches
优惠券报表
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java
View file @
fbd02b5
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | import com.lyms.platform.common.utils.DateUtil; |
| 10 | 10 | import com.lyms.platform.common.utils.EnumUtil; |
| 11 | 11 | import com.lyms.platform.operate.web.dao.IReportDao; |
| 12 | +import com.lyms.platform.operate.web.facade.AccessPermissionFacade; | |
| 12 | 13 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
| 13 | 14 | import com.lyms.platform.operate.web.service.IReportService; |
| 14 | 15 | import com.lyms.platform.operate.web.utils.*; |
| ... | ... | @@ -51,6 +52,9 @@ |
| 51 | 52 | @Autowired |
| 52 | 53 | private MongoTemplate mongoTemplate; |
| 53 | 54 | |
| 55 | + @Autowired | |
| 56 | + private AccessPermissionFacade accessPermissionFacade; | |
| 57 | + | |
| 54 | 58 | private static final Map<String, String> colorMap = new HashMap<>(); |
| 55 | 59 | |
| 56 | 60 | /** |
| ... | ... | @@ -419,7 +423,7 @@ |
| 419 | 423 | @Override |
| 420 | 424 | public BaseObjectResponse coupon(Map<String ,Object> param) { |
| 421 | 425 | if(StringUtils.isBlank((String) param.get("hospitalId"))) { |
| 422 | - param.put("hospitalId", Arrays.asList("216", "245")); /** 模拟根据登陆人id 查询出来的医院 */ | |
| 426 | + param.put("hospitalId", accessPermissionFacade.getCurrentUserHospPermissions(Integer.parseInt((String) param.get("userId")))); /** 模拟根据登陆人id 查询出来的医院 */ | |
| 423 | 427 | } else { |
| 424 | 428 | param.put("hospitalId", CollectionUtils.asList((String) param.get("hospitalId"))); |
| 425 | 429 | } |
| ... | ... | @@ -486,7 +490,6 @@ |
| 486 | 490 | @Override |
| 487 | 491 | public BaseObjectResponse couponInfo(Map<String, Object> param) { |
| 488 | 492 | PageUtil.setPageInfo(param); |
| 489 | - | |
| 490 | 493 | Map<String, Object> hospitalName = couponMapper.findHospitalName(param); |
| 491 | 494 | List<Map<String, Object>> couponInfos = couponMapper.findCouponInfo(param); |
| 492 | 495 | for (Map<String, Object> couponInfo : couponInfos) { |