Commit d0c27405 authored by hcing's avatar hcing

fix(ymt & statist): 调整

parent cae00a5f
......@@ -364,6 +364,12 @@
left join idx_biz_jg_use_info ibjui on ibjui.RECORD = a.equipment_id
WHERE a.is_delete = 0 and a.father_alert is null
and a.biz_org_code like concat(#{orgCode}, '%')
<if test="dto.superviseKey != null and dto.superviseKey != ''">
AND biz_org_code LIKE CONCAT(#{dto.superviseKey}, '%')
</if>
<if test="dto.region != null and dto.region != ''">
AND region_code LIKE CONCAT('%', #{dto.region}, '%')
</if>
<if test="dto.workOrderNumber != null and dto.workOrderNumber != ''">
AND a.work_order_number like
CONCAT(CONCAT('%',#{dto.workOrderNumber}),'%')
......
......@@ -528,6 +528,9 @@ public class EmergencyBizServiceImpl {
public Page<AlertCalledQueryDto> getAlertCalledRecords(Page<AlertCalledQueryDto> page, AlertCalledQueryDto alertCalledQueryDto, String cityCode) {
String orgCode = getAndSetOrgCode(cityCode);
if (!ValidationUtil.isEmpty(alertCalledQueryDto.getRegion())) {
alertCalledQueryDto.setRegion(alertCalledQueryDto.getRegion().replace(",", "#"));
}
return alertStatisticsMapper.getAlertCalledRecords(page, alertCalledQueryDto, orgCode);
}
......
......@@ -63,7 +63,7 @@ public class EnterpriseBizServiceImpl {
public IPage<TzBaseEnterpriseInfoDto> page(PageParam pageParam, TzBaseEnterpriseInfoDto tzBaseEnterpriseInfoDto) {
List<String> orgCodeList = new ArrayList<>();
if (tzBaseEnterpriseInfoDto.getSuperviseKey() != null) {
if (!ValidationUtil.isEmpty(tzBaseEnterpriseInfoDto.getSuperviseKey())) {
if(tzBaseEnterpriseInfoDto.getSuperviseKey().contains("_")){
String regionCode = tzBaseEnterpriseInfoDto.getSuperviseKey().split("_")[0];
String orgCode = stCommonService.getAndSetOrgCode(regionCode);
......
......@@ -90,4 +90,12 @@ public class AlertCalledQueryDto {
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
@ExcelIgnore
@ApiModelProperty(value = "管辖机构")
private String superviseKey;
@ExcelIgnore
@ApiModelProperty(value = "所属区域")
private String region;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment