更改智慧码头token配置 售票身份证判空修改 #105

Merged
root merged 2 commits from cgt into master 2025-01-26 14:25:58 +08:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit fed667d49c - Show all commits

View File

@ -19,6 +19,8 @@ public class RegionCameraListDTO {
private Integer leaf;
@Schema(description = "子区域")
private List<RegionCameraListDTO> children = new ArrayList<>();
@Schema(description = "查询数量")
private Long total;
@Schema(description = "摄像头列表")
private List<CameraDTO> cameraList = new ArrayList<>();
}

View File

@ -20,6 +20,8 @@ public class RegionCameraListDTO {
private Integer leaf;
@Schema(description = "子区域")
private List<RegionCameraListDTO> children = new ArrayList<>();
@Schema(description = "查询数量")
private Long total;
@Schema(description = "摄像头列表")
private List<CameraDTO> cameraList = new ArrayList<>();
}

View File

@ -114,12 +114,14 @@ public class RegionServiceImpl implements RegionService {
temp.setRegionName(regionDO.getName());
temp.setParentIndexCode(regionDO.getParentIndexCode());
temp.setLeaf(regionDO.getLeaf());
System.out.println("regionDO.getLeaf(): " + regionDO.getLeaf() + " temp.getLeaf(): " + temp.getLeaf());
// System.out.println("regionDO.getLeaf(): " + regionDO.getLeaf() + " temp.getLeaf(): " + temp.getLeaf());
if(temp.getLeaf() == 1) {
cameraMapper.selectCameraByRegionIndexCodeAndCameraNamePage(temp.getRegionIndexCode(), cameraName, start, pageSize).forEach(cameraDO -> {
temp.getCameraList().add(BeanUtils.toBean(cameraDO, CameraDTO.class));
temp.setTotal(cameraMapper.selectCameraByRegionIndexCodeAndCameraNameTotal(temp.getRegionIndexCode(), cameraName));
});
}
// System.out.println(temp.getRegionName() +"----::::::total:::::---"+ temp.getTotal());
regions.add(temp);
regionMap.put(regionDO.getIndexCode(), temp);
}