|
|
|
@ -480,9 +480,14 @@ public class PageController { |
|
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
|
} |
|
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
|
if (type == 1) { |
|
|
|
Integer maindeparment = userToken.getMaindeparment(); |
|
|
|
if (type == 1) { |
|
|
|
mv.addObject("adminorg", maindeparment); |
|
|
|
} else if (type == 2) { |
|
|
|
if (!PublicConfig.roleAdminorgList.contains(maindeparment)) { |
|
|
|
type = 21; // 查看库存且不能看所有仓库
|
|
|
|
mv.addObject("adminorg", maindeparment); |
|
|
|
} |
|
|
|
} |
|
|
|
mv.addObject("type", type); |
|
|
|
mv.setViewName("pages/material/selectDepository"); |
|
|
|
|