chore(build): 可视化大屏-消防资源相关接口

dev_visual_page
zhaokai 2026-07-22 11:17:58 +08:00
parent fdf58cc06e
commit 575eb472ce
5 changed files with 5 additions and 13 deletions

View File

@ -96,9 +96,7 @@ public class ControlRoomQueryExe {
}
public PageResponse<ControlRoomScreenCO> listScreen(ControlRoomScreenQry qry) {
if (qry == null || (qry.getCorpinfoId() == null && qry.getPortArea() == null)) {
throw new BizException("企业id和港区至少传一个");
}
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
IPage<ControlRoomDO> page = new Query<ControlRoomDO>().getPage(params);
PageResponse<ControlRoomDO> pageResponse = controlRoomRepository.listScreen(page, params);

View File

@ -82,9 +82,7 @@ public class PumpRoomQueryExe {
}
public PageResponse<PumpRoomScreenCO> listScreen(PumpRoomScreenQry qry) {
if (qry == null || (qry.getCorpinfoId() == null && qry.getPortArea() == null)) {
throw new BizException("企业id和港区至少传一个");
}
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
IPage<PumpRoomDO> page = new Query<PumpRoomDO>().getPage(params);
PageResponse<PumpRoomDO> pageResponse = pumpRoomRepository.listScreen(page, params);

View File

@ -70,9 +70,7 @@ public class RescueTeamQueryExe {
*
*/
public PageResponse<RescueTeamScreenCO> listScreen(RescueTeamScreenQry qry) {
if (qry == null || (qry.getCorpinfoId() == null && qry.getPortArea() == null)) {
throw new BizException("企业id和港区至少传一个");
}
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
IPage<RescueTeamDO> page = new Query<RescueTeamDO>().getPage(params);
PageResponse<RescueTeamDO> pageResponse = rescueTeamRepository.listScreen(page, params);

View File

@ -52,9 +52,7 @@ public class WaterSourceQueryExe {
}
public PageResponse<WaterSourceScreenCO> listScreen(WaterSourceScreenQry qry) {
if (qry == null || (qry.getCorpinfoId() == null && qry.getPortArea() == null)) {
throw new BizException("企业id和港区至少传一个");
}
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
IPage<WaterSourceDO> page = new Query<WaterSourceDO>().getPage(params);
PageResponse<WaterSourceDO> pageResponse = waterSourceRepository.listScreen(page, params);

View File

@ -13,6 +13,6 @@ public class PumpRoomScreenQry extends PageQuery {
@ApiModelProperty(value = "企业id", name = "corpinfoId")
private Long corpinfoId;
@ApiModelProperty(value = "港区,1:秦皇岛港区,2:秦皇岛东,3:秦皇岛西", name = "portArea")
@ApiModelProperty(value = "港区,2:秦皇岛东,3:秦皇岛西,为空是查询所有的", name = "portArea")
private Integer portArea;
}