更改智慧码头token配置 售票身份证判空修改 #105
@ -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<>();
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ public class CheckTicketApi {
|
||||
@GetMapping("/getToken")
|
||||
public Map<Object, Object> test(){
|
||||
AuthLoginReqVO loginReqVO = new AuthLoginReqVO();
|
||||
loginReqVO.setPassword("admin123");
|
||||
loginReqVO.setPassword("mt@6688");
|
||||
loginReqVO.setUsername("admin");
|
||||
Map<Object, Object> token = loginClient.getToken(loginReqVO,"1");
|
||||
return token;
|
||||
|
@ -209,7 +209,8 @@ public class SaleDataServiceImpl implements SaleDataService {
|
||||
// 遍历销售数据列表
|
||||
for (SaleData saleData : list) {
|
||||
String certificateno = saleData.getCertificateno();
|
||||
if (certificateno == null || certificateno.length() != 18) {
|
||||
if(certificateno == null) continue;
|
||||
if (certificateno.length() != 18) {
|
||||
continue;
|
||||
}
|
||||
String region = IdCardUtil.getRegion(certificateno);
|
||||
|
@ -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<>();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user