소스 검색

推送版本

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);