feat:补充查询分公司里的人授权范围
parent
a65cd9e8cc
commit
5eb1436646
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,5 +32,7 @@ public interface ClosedAreaServiceI {
|
|||
MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(Long id);
|
||||
|
||||
MultiResponse<ClosedAreaCO> listTree(ClosedAreaPageQry qry);
|
||||
|
||||
MultiResponse<ClosedAreaCO> listAllByhgAuthArea(String hgAuthArea);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue