dcs 2 months ago
parent
commit
0851366334

+ 1 - 1
virgo.api/src/main/java/com/bosshand/virgo/api/workark/service/ProductCouponService.java

@@ -55,7 +55,7 @@ public class ProductCouponService {
             return productCouponModelDao.getAll();
             return productCouponModelDao.getAll();
         }
         }
         List<Long> ids = new ArrayList();
         List<Long> ids = new ArrayList();
-        list.forEach(ls -> ids.add(ls.getId()));
+        list.forEach(ls -> ids.add(ls.getProductCouponModelId()));
         return productCouponModelDao.nowReceive(ids);
         return productCouponModelDao.nowReceive(ids);
     }
     }
 
 

+ 1 - 1
virgo.api/src/main/resources/mapper/ProductCouponMapper.xml

@@ -31,7 +31,7 @@
     </select>
     </select>
 
 
     <select id="getProductCouponModelId" resultMap="result">
     <select id="getProductCouponModelId" resultMap="result">
-        select id from workark_product_coupon where userId = #{userId} and productCouponModelId != 0
+        select id, productCouponModelId from workark_product_coupon where userId = #{userId} and productCouponModelId != 0
     </select>
     </select>
 
 
     <select id="getList" resultMap="result">
     <select id="getList" resultMap="result">