|
|
@@ -344,7 +344,7 @@ public class LifeDiscountCouponServiceImpl extends ServiceImpl<LifeDiscountCoupo
|
|
|
@Override
|
|
|
public List<LifeDiscountCouponVo> getStoreUserCouponList(String storeId, UserLoginInfo userLoginInfo) {
|
|
|
List<LifeDiscountCouponVo> lifeDiscountCouponVos = new ArrayList<>();
|
|
|
- try{
|
|
|
+ try {
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
//根据店铺id查询该店铺的优惠券,状态是开启领取的券
|
|
|
List<LifeDiscountCoupon> lifeDiscountCoupons = lifeDiscountCouponMapper.selectList(new LambdaQueryWrapper<LifeDiscountCoupon>().eq(LifeDiscountCoupon::getStoreId, storeId).eq(LifeDiscountCoupon::getGetStatus, "1") //还有库存
|
|
|
@@ -1085,6 +1085,7 @@ public class LifeDiscountCouponServiceImpl extends ServiceImpl<LifeDiscountCoupo
|
|
|
return lifeDiscountCouponMapper.selectPage(iPage, new LambdaQueryWrapper<LifeDiscountCoupon>()
|
|
|
.eq(LifeDiscountCoupon::getType, 3)
|
|
|
.like(!StringUtils.isEmpty(name), LifeDiscountCoupon::getName, name)
|
|
|
+ .orderByDesc(LifeDiscountCoupon::getCreatedTime)
|
|
|
.between(!StringUtils.isEmpty(createDate), LifeDiscountCoupon::getCreatedTime, createDate + " 00:00:00", createDate + " 23:59:59"));
|
|
|
}
|
|
|
|
|
|
@@ -1128,7 +1129,7 @@ public class LifeDiscountCouponServiceImpl extends ServiceImpl<LifeDiscountCoupo
|
|
|
@Override
|
|
|
public boolean issuePlatformCoupon(List<Integer> userIds, Integer couponId) {
|
|
|
LifeDiscountCoupon lifeDiscountCoupon = this.getById(couponId);
|
|
|
- if(lifeDiscountCoupon == null){
|
|
|
+ if (lifeDiscountCoupon == null) {
|
|
|
//如果优惠券为空,则返回失败
|
|
|
return false;
|
|
|
}
|