|
|
|
@ -1000,17 +1000,7 @@ public class DepositoryController { |
|
|
|
return new RestResponse(list, size, 200); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/findPostByCompany") |
|
|
|
public RestResponse findPostByCompany(@RequestParam("company") String company, HttpServletRequest request) { |
|
|
|
String token = request.getHeader("user-token"); |
|
|
|
if (token == null) { |
|
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
|
} |
|
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
|
List<AdministrationP> administrationPList = LinkInterfaceUtil.findCompanyBySuperior(company, userToken); |
|
|
|
int size = administrationPList.size(); |
|
|
|
return new RestResponse(administrationPList, size, 200); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 构造树选择框
|
|
|
|
@GetMapping("/treeMenus") |
|
|
|
|