feat(statistics): 添加企业类型筛选功能到统计查询
parent
6408e4d8f2
commit
cce38a856f
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue