@@ -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;
storeList = distributorMapper.selectDistributorStore(loginUser.getDistributorId());
}