feat:补充查询分公司里的人授权范围

koumen
dearLin 2026-03-24 17:27:22 +08:00
parent a65cd9e8cc
commit 5eb1436646
4 changed files with 21 additions and 0 deletions

View File

@ -56,6 +56,13 @@ public class ClosedAreaController {
return closedAreaService.listPage(qry);
}
@ApiOperation("跟据港区选择对应的封闭区域")
@GetMapping("/listAllByhgAuthArea")
public MultiResponse<ClosedAreaCO> listAllByhgAuthArea( @RequestParam("hgAuthArea") String hgAuthArea) {
return closedAreaService.listAllByhgAuthArea(hgAuthArea);
}
@ApiOperation("跟据管辖单位查询封闭区域")
@GetMapping("/listAllByJurisdictionalCorpId/{id}")
public MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(@PathVariable("id") Long id) {

View File

@ -99,5 +99,12 @@ public class ClosedAreaQueryExe {
return childList.isEmpty() ? null : childList;
}
public MultiResponse<ClosedAreaCO> listAllByhgAuthArea(String hgAuthArea) {
QueryWrapper<ClosedAreaDO> objectQueryWrapper = new QueryWrapper<>();
objectQueryWrapper.eq("hg_auth_area",hgAuthArea);
List<ClosedAreaDO> list = closedAreaRepository.list(objectQueryWrapper);
List<ClosedAreaCO> closedAreaCOS = closedAreaCoConvertor.converDOsToCOs(list);
return MultiResponse.of(closedAreaCOS);
}
}

View File

@ -82,5 +82,10 @@ public class ClosedAreaServiceImpl implements ClosedAreaServiceI {
public MultiResponse<ClosedAreaCO> listTree(ClosedAreaPageQry qry) {
return closedAreaQueryExe.listTree(qry);
}
@Override
public MultiResponse<ClosedAreaCO> listAllByhgAuthArea(String hgAuthArea) {
return closedAreaQueryExe.listAllByhgAuthArea(hgAuthArea);
}
}

View File

@ -32,5 +32,7 @@ public interface ClosedAreaServiceI {
MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(Long id);
MultiResponse<ClosedAreaCO> listTree(ClosedAreaPageQry qry);
MultiResponse<ClosedAreaCO> listAllByhgAuthArea(String hgAuthArea);
}