Commit bcd039b0 by xiehongfei

Merge branch 'feature/20250618-erqian' into developer

parents 3aa4669c bf07eba7
...@@ -449,16 +449,15 @@ public class LoginController extends WebBaseController { ...@@ -449,16 +449,15 @@ public class LoginController extends WebBaseController {
if(null != loginUser) { if(null != loginUser) {
logger.info("当前登录信息={}", JSON.toJSON(loginUser)); logger.info("当前登录信息={}", JSON.toJSON(loginUser));
vo = EntityUtil.changeEntityByOrika(WebLoginVO.class, loginUser); vo = EntityUtil.changeEntityByOrika(WebLoginVO.class, loginUser);
}
String gicHost = this.getGicHost();
vo.setGicHost(gicHost);
String clerkId = loginUser.getClerkId(); String clerkId = loginUser.getClerkId();
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId); ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId);
vo.setHasAllStorePermission(0); vo.setHasAllStorePermission(0);
if (null != clerkDTO) { if (null != clerkDTO) {
vo.setHasAllStorePermission(isAdminAuthStore(loginUser.getEnterpriseId(), clerkDTO) ? 1:0); vo.setHasAllStorePermission(isAdminAuthStore(loginUser.getEnterpriseId(), clerkDTO) ? 1:0);
} }
}
String gicHost = this.getGicHost();
vo.setGicHost(gicHost);
return this.success(vo); return this.success(vo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment