浏览代码

推送版本

Duan_xu 2 年之前
父节点
当前提交
a0d26b7f14
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/caimei365/commodity/service/impl/ShopServiceImpl.java

+ 3 - 3
src/main/java/com/caimei365/commodity/service/impl/ShopServiceImpl.java

@@ -126,9 +126,9 @@ public class ShopServiceImpl implements ShopService {
         Integer listingfeeExpireCount= shopMapper.listingfeeExpire(shopId);
         Integer receStatctCount=shopMapper.receStatct(shopId);
         Integer listingFee=0;
-        if(listingFeeCount>0 || listingfeeExpireCount>0){
-            if(receStatctCount<=0){
-                listingFee=1;
+        if(listingFeeCount>0 && listingfeeExpireCount>0){
+                if(receStatctCount<=0){
+                listingFee=1;//1是有上架费或者过期并且没有免除上架费
             }
         }
         map.put("listingFee", listingFee);