diff --git a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml index f5a8154..16e615e 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml @@ -698,7 +698,7 @@ and a.create_date #{endDate} and a.coupon_template_id = b.id and b.type_id = c.id - and ${hospitalFlag} = #{hid} + and a.${hospitalFlag} = #{hid} and c.type in #{type} diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java index 7a7691f..64dc257 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java @@ -1649,6 +1649,7 @@ public class ReportServiceImpl extends BaseServiceImpl implements IReportService for (Map map : couponReport) { List sendUserIds = (List) map.get("sendUserIds"); List sendUserIds2 = new ArrayList<>(); + param.put("hid", map.get("hospitalId")); if(CollectionUtils.isNotEmpty(sendUserIds)) { // List> mulitPatienInfo = couponMapper.findMulitPatienInfo(sendUserIds); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */ param.put("userIds", sendUserIds);