fix: 智能装备锚点查询

This commit is contained in:
tangwei 2026-09-09 09:21:19 +08:00
parent 331eeb00d4
commit 7fb042387b
4 changed files with 21 additions and 2 deletions

View File

@ -27,6 +27,12 @@ public class ImeController {
return ResponseResult.successData(imeService.getVmsstbprptList(dataSourceRequest)); return ResponseResult.successData(imeService.getVmsstbprptList(dataSourceRequest));
} }
@PostMapping("/imePoint/GetKendoList")
@Operation(summary = "智能装备锚点查询")
public ResponseResult getImePointList(@RequestBody DataSourceRequest dataSourceRequest) {
return ResponseResult.successData(imeService.getVmsstbprptList(dataSourceRequest));
}
@PostMapping("/base/device/stat") @PostMapping("/base/device/stat")
@Operation(summary = "各基地设备数量统计(堆叠条形图)") @Operation(summary = "各基地设备数量统计(堆叠条形图)")
public ResponseResult getBaseDeviceStat(@RequestBody DataSourceRequest dataSourceRequest) { public ResponseResult getBaseDeviceStat(@RequestBody DataSourceRequest dataSourceRequest) {

View File

@ -15,6 +15,9 @@ public class ImeVmsstbprptVo {
@Schema(description = "站类编码") @Schema(description = "站类编码")
private String sttpCode; private String sttpCode;
@Schema(description = "描点状态")
private String anchoPointState;
@Schema(description = "站点编码") @Schema(description = "站点编码")
private String stcd; private String stcd;

View File

@ -433,6 +433,7 @@ public class ImeServiceImpl implements ImeService {
return "SELECT " + return "SELECT " +
"src.STCD AS id, " + "src.STCD AS id, " +
"src.STTP_CODE AS sttpCode, " + "src.STTP_CODE AS sttpCode, " +
"CONCAT('ZHZB_', src.STTP_CODE) AS anchoPointState, " +
"src.STLC AS stlc, " + "src.STLC AS stlc, " +
"src.STCD AS stcd, " + "src.STCD AS stcd, " +
"src.STNM AS stnm, " + "src.STNM AS stnm, " +

View File

@ -171,6 +171,7 @@ public class MapmoduleBController {
MsMapmoduleB layerModule = new MsMapmoduleB(); MsMapmoduleB layerModule = new MsMapmoduleB();
layerModule.setModuleId(mapmoduleB.getModuleId()); layerModule.setModuleId(mapmoduleB.getModuleId());
layerModule.setSystemId(mapmoduleB.getSystemId()); layerModule.setSystemId(mapmoduleB.getSystemId());
// layerModule.setResType("layer");
layerModule.setResType("layer"); layerModule.setResType("layer");
layerModule.setResId(layer.getId()); layerModule.setResId(layer.getId());
layerModule.setChildNode(mapmoduleB.getChildNode()); layerModule.setChildNode(mapmoduleB.getChildNode());
@ -190,14 +191,22 @@ public class MapmoduleBController {
updateWrapper.eq(MsMapmoduleB::getSystemId, mapmoduleB.getSystemId()); updateWrapper.eq(MsMapmoduleB::getSystemId, mapmoduleB.getSystemId());
updateWrapper.eq(MsMapmoduleB::getResType, "layer"); updateWrapper.eq(MsMapmoduleB::getResType, "layer");
updateWrapper.eq(MsMapmoduleB::getResId, layer.getId()); updateWrapper.eq(MsMapmoduleB::getResId, layer.getId());
updateWrapper.eq(MsMapmoduleB::getIsDeleted, 0).set(MsMapmoduleB::getChecked, mapmoduleB.getChecked()); updateWrapper.eq(MsMapmoduleB::getIsDeleted, 0).set(MsMapmoduleB::getCanBeChecked, mapmoduleB.getChecked()).set(MsMapmoduleB::getChecked, mapmoduleB.getChecked());
mapmoduleBService.update(updateWrapper); mapmoduleBService.update(updateWrapper);
} LambdaUpdateWrapper<MsMapmoduleB> updateWrapper1 = new LambdaUpdateWrapper<>();
} updateWrapper1.eq(MsMapmoduleB::getModuleId, mapmoduleB.getModuleId());
} updateWrapper1.eq(MsMapmoduleB::getSystemId, mapmoduleB.getSystemId());
} updateWrapper1.eq(MsMapmoduleB::getResType, mapmoduleB.getResType());
updateWrapper1.eq(MsMapmoduleB::getResId, maplegendB.getId());
updateWrapper1.eq(MsMapmoduleB::getIsDeleted, 0).set(MsMapmoduleB::getCanBeChecked, mapmoduleB.getChecked());
mapmoduleBService.update(updateWrapper1);
}
}
}
}
mapmoduleB.setCanBeChecked(mapmoduleB.getChecked());
return ResponseResult.successData(mapmoduleBService.saveOrUpdate(mapmoduleB)); return ResponseResult.successData(mapmoduleBService.saveOrUpdate(mapmoduleB));
} }