Commit b07bc64a authored by suhuiguang's avatar suhuiguang

fix(jyjc): 报检规则4.0开发

1.区县为空前端送none时后端去掉过滤条件
parent 7698a144
...@@ -89,4 +89,10 @@ public interface BizCommonConstant { ...@@ -89,4 +89,10 @@ public interface BizCommonConstant {
* 行政区划-雁塔 * 行政区划-雁塔
*/ */
Integer REGION_CODE_YT = 610113; Integer REGION_CODE_YT = 610113;
/**
* 空标识
*/
String NONE= "none";
} }
...@@ -1593,6 +1593,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -1593,6 +1593,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
if (ObjectUtils.isEmpty(map.getString("COUNTY"))) { if (ObjectUtils.isEmpty(map.getString("COUNTY"))) {
return; return;
} }
// 前端需要此字段,无值时为none, 后端在空标识时不使用此字段作为过滤条件
if (BizCommonConstant.NONE.equals(map.getString("COUNTY"))) {
return;
}
// 雁塔时去掉高新数据 // 雁塔时去掉高新数据
if (String.valueOf(BizCommonConstant.REGION_CODE_YT).equals(map.getString("COUNTY"))) { if (String.valueOf(BizCommonConstant.REGION_CODE_YT).equals(map.getString("COUNTY"))) {
// 区县筛选 // 区县筛选
...@@ -1700,6 +1704,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -1700,6 +1704,10 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
if (companyCode.contains("_")) { if (companyCode.contains("_")) {
companyCode = companyCode.split("_")[1]; companyCode = companyCode.split("_")[1];
} }
// 前端需要此字段无值时为none, 后端在空标识时设置为null,
if (BizCommonConstant.NONE.equals(queryParams.getCounty())) {
queryParams.setCounty(null);
}
// 定期检验,查询当前使用单位,工业管道: 查询当前使用单位下已纳管且有使用登记证的装置,且非流程中的 ;公用管道、长输管道:已纳管且做过检验的,且非流程中的 // 定期检验,查询当前使用单位,工业管道: 查询当前使用单位下已纳管且有使用登记证的装置,且非流程中的 ;公用管道、长输管道:已纳管且做过检验的,且非流程中的
return idxBizJgProjectContraptionMapper.queryJgProjectContraptionPage(page, queryParams, companyCode); return idxBizJgProjectContraptionMapper.queryJgProjectContraptionPage(page, queryParams, companyCode);
} }
......
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