发放优惠券校验状态
This commit is contained in:
@@ -240,8 +240,10 @@ public class CouponServiceImpl extends ServiceImpl<CouponDao, CouponEntity> impl
|
||||
public void insertCouponHistoryByProductId(BuyOrder order) {
|
||||
MPJLambdaWrapper<CouponToProduct> wrapper = new MPJLambdaWrapper();
|
||||
wrapper.leftJoin(BuyOrderProduct.class,BuyOrderProduct::getProductId,CouponToProduct::getProductId);
|
||||
wrapper.leftJoin(CouponEntity.class,CouponEntity::getId,CouponToProduct::getCouponId);
|
||||
wrapper.eq(CouponEntity::getCurrentState,0);
|
||||
wrapper.eq(BuyOrderProduct::getOrderId,order.getOrderId());
|
||||
wrapper.eq(BuyOrderProduct::getOrderId,order.getOrderId());
|
||||
wrapper.select(CouponToProduct::getCouponId);
|
||||
wrapper.select(BuyOrderProduct::getProductId);
|
||||
wrapper.select(BuyOrderProduct::getQuantity);
|
||||
List<Map<String,Object>> buyOrderProducts = couponToProductDao.selectJoinMaps(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user