feat(statistics): 添加企业类型筛选功能到统计查询

dev_change0814_page
zhaokai 2026-08-19 17:56:41 +08:00
parent 6408e4d8f2
commit cce38a856f
5 changed files with 17 additions and 2 deletions

View File

@ -150,7 +150,10 @@ public class FireCheckRecordQueryExe {
public PageResponse<CorpCheckStatisticsCO> corpCheckRecordList(CorpStatisticsPageQry qry) {
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
//企业端
params.put("inType", CorpTypeEnum.getCodesByEnterpriseType(UserTypeEnum.QY.getCode()));
List<Integer> corpTypes = qry.getType() == null
? CorpTypeEnum.getCodesByEnterpriseType(UserTypeEnum.QY.getCode())
: Collections.singletonList(qry.getType());
params.put("inType", corpTypes);
params.put("eqUseFlag", CommonFlagEnum.YES.getCode());
PageResponse<CorpInfoDO> pageResponse = corpInfoRepository.listPage(params);

View File

@ -180,7 +180,10 @@ public class FireDeviceQueryExe {
public PageResponse<CorpStatisticsCO> corpStatisticslist(CorpStatisticsPageQry qry) {
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
//企业端
params.put("inType", CorpTypeEnum.getCodesByEnterpriseType(UserTypeEnum.QY.getCode()));
List<Integer> corpTypes = qry.getType() == null
? CorpTypeEnum.getCodesByEnterpriseType(UserTypeEnum.QY.getCode())
: Collections.singletonList(qry.getType());
params.put("inType", corpTypes);
params.put("eqUseFlag", CommonFlagEnum.YES.getCode());
PageResponse<CorpInfoDO> pageResponse = corpInfoRepository.listPage(params);

View File

@ -31,5 +31,8 @@ public class CorpStatisticsPageQry extends PageQuery {
@ApiModelProperty(value = "公司名称", name = "likeCorpName")
private String likeCorpName;
@ApiModelProperty(value = "企业类型(0-普通企业1-集团单位2-股份单位3-相关方企业4-货主单位5-驻港单位)")
private Integer type;
}

View File

@ -21,6 +21,9 @@ public class CorpCheckStatisticsCO implements Serializable {
@ApiModelProperty(value = "公司名称")
private String corpName;
@ApiModelProperty(value = "企业类型(0-普通企业1-集团单位2-股份单位3-相关方企业4-货主单位5-驻港单位)")
private Integer type;
//检查次数
@ApiModelProperty(value = "检查次数")
private Integer checkCount;

View File

@ -24,6 +24,9 @@ public class CorpStatisticsCO implements Serializable {
@ApiModelProperty(value = "公司名称")
private String corpName;
@ApiModelProperty(value = "企业类型(0-普通企业1-集团单位2-股份单位3-相关方企业4-货主单位5-驻港单位)")
private Integer type;
//消防区域数量
@ApiModelProperty(value = "消防区域数量")
private Integer fireRegionCount;