diff --git a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopInfoServiceImpl.java b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopInfoServiceImpl.java index e9193fa92..83bc8fd54 100644 --- a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopInfoServiceImpl.java +++ b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopInfoServiceImpl.java @@ -16,6 +16,7 @@ import com.czg.enums.YesNoEnum; import com.czg.exception.ApiNotPrintException; import com.czg.exception.CzgException; import com.czg.resp.CzgResult; +import com.czg.sa.MyStpLogic; import com.czg.sa.StpKit; import com.czg.service.RedisService; import com.czg.service.account.mapper.ShopInfoMapper; @@ -380,6 +381,10 @@ public class ShopInfoServiceImpl extends ServiceImpl i head.setShopId(shopInfo.getId()); head.setShopName(shopInfo.getShopName()); list.add(head); + MyStpLogic.LoginType loginType = (MyStpLogic.LoginType) StpKit.USER.getSession().get("loginType"); + if(loginType.compareTo(MyStpLogic.LoginType.STAFF) == 0){ + return list; + } List branchList = mapper.selectListByQuery(query().select(ShopInfo::getId, ShopInfo::getShopName).eq(ShopInfo::getMainId, shopId).orderBy(ShopInfo::getId, true)); for (ShopInfo info : branchList) { ShopBranchSelectDTO branch = new ShopBranchSelectDTO();