Commit 1ce7a64c by huluobin

update

parent 594df1f2
...@@ -234,7 +234,8 @@ public class MarketServiceImpl implements MarketService { ...@@ -234,7 +234,8 @@ public class MarketServiceImpl implements MarketService {
.list(new LambdaQueryWrapper<CouponCustomerRelevance>() .list(new LambdaQueryWrapper<CouponCustomerRelevance>()
.eq(CouponCustomerRelevance::getOrderId, orderId) .eq(CouponCustomerRelevance::getOrderId, orderId)
.eq(CouponCustomerRelevance::getState, 1) .eq(CouponCustomerRelevance::getState, 1)
.eq(CouponCustomerRelevance::getType, 0)); .eq(CouponCustomerRelevance::getSourceType, 0));
innerCouponCustomerRelevanceServiceList.forEach(couponCustomerRelevance -> couponCustomerRelevance.setState(CouponCustomerRelevance.STATE_USED)); innerCouponCustomerRelevanceServiceList.forEach(couponCustomerRelevance -> couponCustomerRelevance.setState(CouponCustomerRelevance.STATE_USED));
if (ListUtil.isNotEmpty(innerCouponCustomerRelevanceServiceList)) { if (ListUtil.isNotEmpty(innerCouponCustomerRelevanceServiceList)) {
couponCustomerRelevanceService.saveOrUpdateBatch(innerCouponCustomerRelevanceServiceList); couponCustomerRelevanceService.saveOrUpdateBatch(innerCouponCustomerRelevanceServiceList);
...@@ -245,7 +246,7 @@ public class MarketServiceImpl implements MarketService { ...@@ -245,7 +246,7 @@ public class MarketServiceImpl implements MarketService {
.list(new LambdaQueryWrapper<CouponCustomerRelevance>() .list(new LambdaQueryWrapper<CouponCustomerRelevance>()
.eq(CouponCustomerRelevance::getOrderId, orderId) .eq(CouponCustomerRelevance::getOrderId, orderId)
.eq(CouponCustomerRelevance::getState, 1) .eq(CouponCustomerRelevance::getState, 1)
.eq(CouponCustomerRelevance::getType, 1)); .eq(CouponCustomerRelevance::getSourceType, 1));
outerCouponCustomerRelevanceServiceList.forEach(couponCustomerRelevance -> couponCustomerRelevance.setState(CouponCustomerRelevance.STATE_USED)); outerCouponCustomerRelevanceServiceList.forEach(couponCustomerRelevance -> couponCustomerRelevance.setState(CouponCustomerRelevance.STATE_USED));
if (ListUtil.isNotEmpty(outerCouponCustomerRelevanceServiceList)) { if (ListUtil.isNotEmpty(outerCouponCustomerRelevanceServiceList)) {
couponCustomerRelevanceService.saveOrUpdateBatch(outerCouponCustomerRelevanceServiceList); couponCustomerRelevanceService.saveOrUpdateBatch(outerCouponCustomerRelevanceServiceList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment