Browse Source

bug修改

lishiqiang 4 weeks ago
parent
commit
856c966bb9

+ 8 - 2
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/service/billrule/BillRuleServiceImpl.java

@@ -200,8 +200,14 @@ public class BillRuleServiceImpl implements BillRuleService {
         }else{
             if(loginUser.getStoreId()!=null) {
                 //需要改
-                StoreRespVO store = distributorMapper.selectStore(loginUser.getStoreId());
-                storeList.add(store);
+                try {
+                    StoreRespVO store = distributorMapper.selectStore(loginUser.getStoreId());
+                    if (store != null) {
+                        storeList.add(store);
+                    }
+                }catch (Exception e){
+                   return storeList;
+                }
             }else{
                 storeList = distributorMapper.selectDistributorStore(loginUser.getDistributorId());
             }