Commit eb626831 authored by suhuiguang's avatar suhuiguang

1.自测发现的大屏检验检测人员数据过滤问题bug修改

parent 47adedaa
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
(supervise_org_code != '50' and supervise_org_code LIKE CONCAT (#{orgCode}, '%')) (supervise_org_code != '50' and supervise_org_code LIKE CONCAT (#{orgCode}, '%'))
</foreach> </foreach>
<if test="tzBaseEnterpriseInfoDto.cityCode!=null and tzBaseEnterpriseInfoDto.cityCode!='' "> <if test="tzBaseEnterpriseInfoDto.cityCode!=null and tzBaseEnterpriseInfoDto.cityCode!='' ">
or (a.supervise_org_code = '50' and a.office_region LIKE CONCAT ('%', or (supervise_org_code = '50' and office_region LIKE CONCAT ('%',
#{tzBaseEnterpriseInfoDto.cityCode}, '%')) #{tzBaseEnterpriseInfoDto.cityCode}, '%'))
</if> </if>
) )
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
LEFT JOIN tz_base_enterprise_info bei ON tui.unit_code = bei.use_code LEFT JOIN tz_base_enterprise_info bei ON tui.unit_code = bei.use_code
where where
tui.is_delete = '0' tui.is_delete = '0'
and bei.is_delete = '0'
<if test="unitTypeList != null and unitTypeList.size() > 0"> <if test="unitTypeList != null and unitTypeList.size() > 0">
AND AND
<foreach collection="unitTypeList" item="unitType" open="(" separator="OR" close=")"> <foreach collection="unitTypeList" item="unitType" open="(" separator="OR" close=")">
...@@ -130,7 +131,7 @@ ...@@ -130,7 +131,7 @@
</foreach> </foreach>
</if> </if>
<if test="orgCode != null and orgCode != ''"> <if test="orgCode != null and orgCode != ''">
AND bei.supervise_org_code LIKE concat ( '%', #{orgCode}, '%' ) and ((bei.supervise_org_code != '50' and bei.supervise_org_code LIKE CONCAT (#{orgCode}, '%')) or (bei.supervise_org_code = '50' and bei.office_region LIKE CONCAT ('%', #{paramDto.cityCode}, '%')))
</if> </if>
<if test="paramDto.name != null and paramDto.name != ''"> <if test="paramDto.name != null and paramDto.name != ''">
AND tui.name LIKE concat ( '%', #{paramDto.name}, '%' ) AND tui.name LIKE concat ( '%', #{paramDto.name}, '%' )
......
...@@ -1150,6 +1150,9 @@ public class ZLDPStatisticsServiceImpl { ...@@ -1150,6 +1150,9 @@ public class ZLDPStatisticsServiceImpl {
public Page<Map<String,Object>> getPersonPage(DPFilterParamDto paramDto, Page page) { public Page<Map<String,Object>> getPersonPage(DPFilterParamDto paramDto, Page page) {
String regionCode = paramDto.getCityCode(); String regionCode = paramDto.getCityCode();
String orgCode = stCommonService.getAndSetOrgCode(regionCode); String orgCode = stCommonService.getAndSetOrgCode(regionCode);
if(StringUtils.isEmpty(orgCode)){
return new Page<>();
}
List<String> unitTypeList = UnitTypeEnum.getNameListByType(paramDto.getCompanyType()); List<String> unitTypeList = UnitTypeEnum.getNameListByType(paramDto.getCompanyType());
Page<Map<String, Object>> result = screenMapper.getPersonPage(page, paramDto, orgCode, unitTypeList); Page<Map<String, Object>> result = screenMapper.getPersonPage(page, paramDto, orgCode, unitTypeList);
List<EquipmentCategoryDto> equipmentCategoryDtos = equipmentCategoryMapper.selectClassify(); List<EquipmentCategoryDto> equipmentCategoryDtos = equipmentCategoryMapper.selectClassify();
......
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