From c660421d393a7b1b0081c01d81e40fd1d23abb0f Mon Sep 17 00:00:00 2001 From: Tankaikai Date: Sat, 12 Apr 2025 11:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=99=BB=E5=BD=95=E4=B8=BB?= =?UTF-8?q?=E5=BA=97=E4=B8=8D=E9=9C=80=E8=A6=81=E5=B1=95=E7=A4=BA=E4=B8=BB?= =?UTF-8?q?=E5=BA=97=E4=B8=8B=E9=9D=A2=E7=9A=84=E5=88=86=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/account/service/impl/ShopInfoServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) 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();