chore(build): 可视化大屏-消防资源相关接口
parent
fdf58cc06e
commit
575eb472ce
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue