更新10.11
This commit is contained in:
parent
4ec385d97f
commit
248ad2bb95
@ -325,7 +325,8 @@ public class ActiveRecommendRecordsServiceImpl extends ServiceImpl<ActiveRecomme
|
|||||||
if (!"0".equals(activeUserRecharge.getFrequencyLimit())) {
|
if (!"0".equals(activeUserRecharge.getFrequencyLimit())) {
|
||||||
//查询推荐人的领取次数
|
//查询推荐人的领取次数
|
||||||
Integer count = activeUserRechargeRecordsMapper.selectCount(new LambdaQueryWrapper<ActiveUserRechargeRecords>()
|
Integer count = activeUserRechargeRecordsMapper.selectCount(new LambdaQueryWrapper<ActiveUserRechargeRecords>()
|
||||||
.eq(ActiveUserRechargeRecords::getUserId, activeRecommendRecords.getUserId()));
|
.eq(ActiveUserRechargeRecords::getUserId, activeRecommendRecords.getUserId())
|
||||||
|
.eq(ActiveUserRechargeRecords::getStoreId, storeId));
|
||||||
if (count >= activeUserRecharge.getFrequencyLimit()) {
|
if (count >= activeUserRecharge.getFrequencyLimit()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -359,6 +360,7 @@ public class ActiveRecommendRecordsServiceImpl extends ServiceImpl<ActiveRecomme
|
|||||||
//查询优惠券详细信息
|
//查询优惠券详细信息
|
||||||
CardCoupon cardCoupon = cardCouponMapper.selectById(vouchersId);
|
CardCoupon cardCoupon = cardCouponMapper.selectById(vouchersId);
|
||||||
Integer validityDay = 0;
|
Integer validityDay = 0;
|
||||||
|
//优惠券的有效期
|
||||||
Date effectiveDateStart = new Date();
|
Date effectiveDateStart = new Date();
|
||||||
Date effectiveDateEnd = new Date();
|
Date effectiveDateEnd = new Date();
|
||||||
if (cardCoupon.getTimeType().equals("1")) {
|
if (cardCoupon.getTimeType().equals("1")) {
|
||||||
|
@ -13,6 +13,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.baomidou.mybatisplus.generator.config.IFileCreate;
|
import com.baomidou.mybatisplus.generator.config.IFileCreate;
|
||||||
|
import com.fuint.business.marketingActivity.cardCoupon.entity.CardCouponUser;
|
||||||
|
import com.fuint.business.marketingActivity.cardCoupon.mapper.CardCouponUserMapper;
|
||||||
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
|
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
|
||||||
import com.fuint.business.marketingActivity.cardFavorable.mapper.CardFavorableRecordMapper;
|
import com.fuint.business.marketingActivity.cardFavorable.mapper.CardFavorableRecordMapper;
|
||||||
import com.fuint.business.marketingActivity.cardGift.entity.CardGift;
|
import com.fuint.business.marketingActivity.cardGift.entity.CardGift;
|
||||||
@ -104,6 +106,8 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
private GrowthValueChangeMapper growthValueChangeMapper;
|
private GrowthValueChangeMapper growthValueChangeMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private MtUserGradeMapper mtUserGradeMapper;
|
private MtUserGradeMapper mtUserGradeMapper;
|
||||||
|
@Autowired
|
||||||
|
private CardCouponUserMapper cardCouponUserMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -469,10 +473,15 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
Double giveAmount = ObjectUtil.isNotEmpty(balance.getGiveAmount()) ? balance.getGiveAmount() : 0;
|
Double giveAmount = ObjectUtil.isNotEmpty(balance.getGiveAmount()) ? balance.getGiveAmount() : 0;
|
||||||
userBlanceUniVo.setAllBalance(balance.getCardBalance() + giveAmount);
|
userBlanceUniVo.setAllBalance(balance.getCardBalance() + giveAmount);
|
||||||
//查询优惠券数量
|
//查询优惠券数量
|
||||||
Integer count = cardFavorableRecordMapper.selectCount(new LambdaQueryWrapper<CardFavorableRecord>()
|
//新表
|
||||||
.eq(CardFavorableRecord::getMtUserId, nowAccountInfo.getId())
|
Integer count = cardCouponUserMapper.selectCount(new LambdaQueryWrapper<CardCouponUser>()
|
||||||
.eq(CardFavorableRecord::getStatus, 0)
|
.eq(CardCouponUser::getMtUserId, nowAccountInfo.getId())
|
||||||
.eq(CardFavorableRecord::getStoreId, balance.getStoreId()));
|
.eq(CardCouponUser::getStoreId, balance.getStoreId())
|
||||||
|
.eq(CardCouponUser::getStatus, "0"));
|
||||||
|
// Integer count = cardFavorableRecordMapper.selectCount(new LambdaQueryWrapper<CardFavorableRecord>()
|
||||||
|
// .eq(CardFavorableRecord::getMtUserId, nowAccountInfo.getId())
|
||||||
|
// .eq(CardFavorableRecord::getStatus, "0")
|
||||||
|
// .eq(CardFavorableRecord::getStoreId, balance.getStoreId()));
|
||||||
userBlanceUniVo.setCardFavorableCount(count);
|
userBlanceUniVo.setCardFavorableCount(count);
|
||||||
//查询礼品卡已兑换数量和金额
|
//查询礼品卡已兑换数量和金额
|
||||||
List<CardGift> cardGifts = cardGiftMapper.selectList(new LambdaQueryWrapper<CardGift>()
|
List<CardGift> cardGifts = cardGiftMapper.selectList(new LambdaQueryWrapper<CardGift>()
|
||||||
|
Loading…
Reference in New Issue
Block a user