Commit 7be9a8e06ebc87a59b6bdb06f91e55998abadf83

Authored by litao@lymsh.com
1 parent e90eb4a95a

改bug

Showing 1 changed file with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java View file @ 7be9a8e
... ... @@ -910,7 +910,7 @@
910 910 if(CollectionUtils.isNotEmpty(sendUserIds)) {
911 911 List<Map<String, Object>> mulitPatienInfo = couponMapper.findMulitPatienInfo(sendUserIds); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */
912 912 for (Map<String, Object> m : mulitPatienInfo) {
913   - Integer count = (Integer) m.get("count");
  913 + Long count = (Long) m.get("count");
914 914 sendUserIds2.add((String) m.get("user_id"));
915 915 if(count > 1) {
916 916 for (int i = 1; i < count; i++) {
... ... @@ -926,7 +926,7 @@
926 926 if(CollectionUtils.isNotEmpty(usedUserIds)) {
927 927 List<Map<String, Object>> mulitPatienInfo = couponMapper.findMulitPatienInfo(usedUserIds); /** 查询需要添加人数的总数, 例如A发了两次优惠券 那么这里返回需要加的值为1 */
928 928 for (Map<String, Object> m : mulitPatienInfo) {
929   - Integer count = (Integer) m.get("count");
  929 + Long count = (Long) m.get("count");
930 930 usedUserIds2.add((String) m.get("user_id"));
931 931 if(count > 1) {
932 932 for (int i = 1; i < count; i++) {