Commit 232160172ed529013eb0ace22cdb754abe37b46d

Authored by litao@lymsh.com
1 parent e471320bc6

改bug

Showing 1 changed file with 3 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 2321601
... ... @@ -1304,7 +1304,9 @@
1304 1304 List<String> usedUserIds = (List<String>) map.get("usedUserIds");
1305 1305 List<String> usedUserIds2 = new ArrayList<>();
1306 1306 if(CollectionUtils.isNotEmpty(usedUserIds)) {
1307   - List<Map<String, Object>> mulitPatienInfo = couponMapper.findMulitPatienInfo(CollectionUtils.createMap("userIds", usedUserIds, "startDate", param.get("startDate"))); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */
  1307 +// List<Map<String, Object>> mulitPatienInfo = couponMapper.findMulitPatienInfo(CollectionUtils.createMap("userIds", usedUserIds, "startDate", param.get("startDate"))); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */
  1308 + param.put("userIds", usedUserIds);
  1309 + List<Map<String, Object>> mulitPatienInfo = couponMapper.findMulitPatienInfo(param); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */
1308 1310 for (Map<String, Object> m : mulitPatienInfo) {
1309 1311 Long count = (Long) m.get("count");
1310 1312 usedUserIds2.add((String) m.get("user_id"));