Commit 47adedaa authored by suhuiguang's avatar suhuiguang

1.自测发现的大屏企业数据过滤问题bug修改

parent 8fb30fca
...@@ -50,11 +50,11 @@ public class SkjsCompanyCountItemDto { ...@@ -50,11 +50,11 @@ public class SkjsCompanyCountItemDto {
private String sjdw; private String sjdw;
public void setDefaultValues() { public void setDefaultValues() {
this.sydw = ""; this.sydw = "0";
this.zzdw = ""; this.zzdw = "0";
this.agwdw = ""; this.agwdw = "0";
this.czdw = ""; this.czdw = "0";
this.jyjcjg = ""; this.jyjcjg = "0";
this.sjdw = ""; this.sjdw = "0";
} }
} }
\ No newline at end of file
...@@ -68,14 +68,14 @@ public class SkjsEquipCountItemDto { ...@@ -68,14 +68,14 @@ public class SkjsEquipCountItemDto {
private String qp; private String qp;
public void setDefaultValues() { public void setDefaultValues() {
this.dt = ""; this.dt = "0";
this.qzjx = ""; this.qzjx = "0";
this.kysd = ""; this.kysd = "0";
this.dxylss = ""; this.dxylss = "0";
this.cc = ""; this.cc = "0";
this.gl = ""; this.gl = "0";
this.ylrq = ""; this.qp = "0";
this.ylgd = ""; this.ylrq = "0";
this.qp = ""; this.ylgd = "0";
} }
} }
\ No newline at end of file
...@@ -81,8 +81,7 @@ ...@@ -81,8 +81,7 @@
test="tzBaseEnterpriseInfoDto.legalPhone!=null and tzBaseEnterpriseInfoDto.legalPhone!='' "> test="tzBaseEnterpriseInfoDto.legalPhone!=null and tzBaseEnterpriseInfoDto.legalPhone!='' ">
AND legal_phone LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.legalPhone},'%') AND legal_phone LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.legalPhone},'%')
</if> </if>
<if <if test="tzBaseEnterpriseInfoDto.superviseOrgCode!=null and tzBaseEnterpriseInfoDto.superviseOrgCode!='' ">
test="tzBaseEnterpriseInfoDto.superviseOrgCode!=null and tzBaseEnterpriseInfoDto.superviseOrgCode!='' ">
AND supervise_org_code LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.superviseOrgCode},'%') AND supervise_org_code LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.superviseOrgCode},'%')
</if> </if>
<if <if
...@@ -97,12 +96,15 @@ ...@@ -97,12 +96,15 @@
</if> </if>
<if test="orgCodeList != null and !orgCodeList.isEmpty()"> <if test="orgCodeList != null and !orgCodeList.isEmpty()">
AND ( AND (
<foreach collection="orgCodeList" item="item" separator=" OR "> <foreach collection="orgCodeList" item="orgCode" separator="and" open="(" close=")">
supervise_org_code LIKE CONCAT('%', #{item}, '%') (supervise_org_code != '50' and supervise_org_code LIKE CONCAT (#{orgCode}, '%'))
</foreach> </foreach>
<if test="tzBaseEnterpriseInfoDto.cityCode!=null and tzBaseEnterpriseInfoDto.cityCode!='' ">
or (a.supervise_org_code = '50' and a.office_region LIKE CONCAT ('%',
#{tzBaseEnterpriseInfoDto.cityCode}, '%'))
</if>
) )
</if> </if>
<if test="tzBaseEnterpriseInfoDto.industrySupervisor!=null and tzBaseEnterpriseInfoDto.industrySupervisor!='' "> <if test="tzBaseEnterpriseInfoDto.industrySupervisor!=null and tzBaseEnterpriseInfoDto.industrySupervisor!='' ">
AND (industry_supervisor = #{tzBaseEnterpriseInfoDto.industrySupervisor} AND (industry_supervisor = #{tzBaseEnterpriseInfoDto.industrySupervisor}
<if test=" tzBaseEnterpriseInfoDto.industrySupervisor == '6527' "> <if test=" tzBaseEnterpriseInfoDto.industrySupervisor == '6527' ">
......
...@@ -64,10 +64,16 @@ public class EnterpriseBizServiceImpl { ...@@ -64,10 +64,16 @@ public class EnterpriseBizServiceImpl {
public IPage<TzBaseEnterpriseInfoDto> page(PageParam pageParam, TzBaseEnterpriseInfoDto tzBaseEnterpriseInfoDto) { public IPage<TzBaseEnterpriseInfoDto> page(PageParam pageParam, TzBaseEnterpriseInfoDto tzBaseEnterpriseInfoDto) {
List<String> orgCodeList = new ArrayList<>(); List<String> orgCodeList = new ArrayList<>();
if (tzBaseEnterpriseInfoDto.getSuperviseKey() != null) { if (tzBaseEnterpriseInfoDto.getSuperviseKey() != null) {
FeignClientResult<CompanyModel> result = Privilege.companyClient if(tzBaseEnterpriseInfoDto.getSuperviseKey().contains("_")){
.seleteOne(Long.valueOf(tzBaseEnterpriseInfoDto.getSuperviseKey())); String regionCode = tzBaseEnterpriseInfoDto.getSuperviseKey().split("_")[0];
if (result.getResult() != null) { String orgCode = stCommonService.getAndSetOrgCode(regionCode);
tzBaseEnterpriseInfoDto.setSuperviseOrgCode(result.getResult().getOrgCode()); tzBaseEnterpriseInfoDto.setSuperviseOrgCode(orgCode);
} else {
FeignClientResult<CompanyModel> result = Privilege.companyClient
.seleteOne(Long.valueOf(tzBaseEnterpriseInfoDto.getSuperviseKey()));
if (result.getResult() != null) {
tzBaseEnterpriseInfoDto.setSuperviseOrgCode(result.getResult().getOrgCode());
}
} }
} }
Page<TzBaseEnterpriseInfoDto> page = new Page<>(pageParam.getCurrent(), pageParam.getSize()); Page<TzBaseEnterpriseInfoDto> page = new Page<>(pageParam.getCurrent(), pageParam.getSize());
...@@ -80,7 +86,6 @@ public class EnterpriseBizServiceImpl { ...@@ -80,7 +86,6 @@ public class EnterpriseBizServiceImpl {
} }
} }
} }
if (tzBaseEnterpriseInfoDto.getCityCode() != null) { if (tzBaseEnterpriseInfoDto.getCityCode() != null) {
String orgCode = stCommonService.getAndSetOrgCode(tzBaseEnterpriseInfoDto.getCityCode()); String orgCode = stCommonService.getAndSetOrgCode(tzBaseEnterpriseInfoDto.getCityCode());
if (orgCode == null) { if (orgCode == null) {
...@@ -88,8 +93,8 @@ public class EnterpriseBizServiceImpl { ...@@ -88,8 +93,8 @@ public class EnterpriseBizServiceImpl {
} }
orgCodeList.add(orgCode); orgCodeList.add(orgCode);
} }
List<String> unitTypeList = new ArrayList<>(); List<String> unitTypeList = new ArrayList<>();
unitTypeList.add(tzBaseEnterpriseInfoDto.getUnitType()); unitTypeList.add(tzBaseEnterpriseInfoDto.getUnitType());
if (UnitTypeEnum.SYDW.getName().equals(tzBaseEnterpriseInfoDto.getUnitType())) { if (UnitTypeEnum.SYDW.getName().equals(tzBaseEnterpriseInfoDto.getUnitType())) {
unitTypeList.add(UnitTypeEnum.GRZT.getName()); unitTypeList.add(UnitTypeEnum.GRZT.getName());
......
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