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