|
@@ -888,13 +888,17 @@ public class LoginServiceImpl implements LoginService {
|
|
|
}
|
|
|
Integer shopID = messageCenterMapper.shopID(loginUser.getUserId());
|
|
|
Integer newReceiptType = messageCenterMapper.newReceiptType(shopID);
|
|
|
+ // 上架费次数
|
|
|
Integer listingFeeCount= messageCenterMapper.listingFee(shopID);
|
|
|
+ // 上架费有效期内个数
|
|
|
Integer listingfeeExpireCount= messageCenterMapper.listingfeeExpire(shopID);
|
|
|
+ // 有免除上架费的次数
|
|
|
Integer receStatctCount=messageCenterMapper.receStatct(shopID);
|
|
|
- Integer listingFee=0;
|
|
|
- if(listingFeeCount>0 && listingfeeExpireCount>0){
|
|
|
- if(receStatctCount<=0){
|
|
|
- listingFee=1;
|
|
|
+ Integer listingFee = 0;
|
|
|
+ // 如果上架费次数为 0 ;所有上架费都不在在生效时间; 没有免除过上架费;
|
|
|
+ if(listingFeeCount > 0 && listingfeeExpireCount == 0){
|
|
|
+ if(receStatctCount <= 0){
|
|
|
+ listingFee = 1;
|
|
|
}
|
|
|
}
|
|
|
loginUser.setListingFee(listingFee);
|