fix: 智能装备锚点查询
This commit is contained in:
parent
331eeb00d4
commit
7fb042387b
@ -27,6 +27,12 @@ public class ImeController {
|
||||
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")
|
||||
@Operation(summary = "各基地设备数量统计(堆叠条形图)")
|
||||
public ResponseResult getBaseDeviceStat(@RequestBody DataSourceRequest dataSourceRequest) {
|
||||
|
||||
@ -15,6 +15,9 @@ public class ImeVmsstbprptVo {
|
||||
@Schema(description = "站类编码")
|
||||
private String sttpCode;
|
||||
|
||||
@Schema(description = "描点状态")
|
||||
private String anchoPointState;
|
||||
|
||||
@Schema(description = "站点编码")
|
||||
private String stcd;
|
||||
|
||||
|
||||
@ -433,6 +433,7 @@ public class ImeServiceImpl implements ImeService {
|
||||
return "SELECT " +
|
||||
"src.STCD AS id, " +
|
||||
"src.STTP_CODE AS sttpCode, " +
|
||||
"CONCAT('ZHZB_', src.STTP_CODE) AS anchoPointState, " +
|
||||
"src.STLC AS stlc, " +
|
||||
"src.STCD AS stcd, " +
|
||||
"src.STNM AS stnm, " +
|
||||
|
||||
@ -171,6 +171,7 @@ public class MapmoduleBController {
|
||||
MsMapmoduleB layerModule = new MsMapmoduleB();
|
||||
layerModule.setModuleId(mapmoduleB.getModuleId());
|
||||
layerModule.setSystemId(mapmoduleB.getSystemId());
|
||||
// layerModule.setResType("layer");
|
||||
layerModule.setResType("layer");
|
||||
layerModule.setResId(layer.getId());
|
||||
layerModule.setChildNode(mapmoduleB.getChildNode());
|
||||
@ -190,14 +191,22 @@ public class MapmoduleBController {
|
||||
updateWrapper.eq(MsMapmoduleB::getSystemId, mapmoduleB.getSystemId());
|
||||
updateWrapper.eq(MsMapmoduleB::getResType, "layer");
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user