Commit e528499f authored by tianyiming's avatar tianyiming

企业列表在类型为使用单位时候加上个人主体统计

parent ed8ed8c5
...@@ -72,7 +72,7 @@ public class EnterpriseBizServiceImpl { ...@@ -72,7 +72,7 @@ public class EnterpriseBizServiceImpl {
} }
} }
Page<TzBaseEnterpriseInfoDto> page = new Page<>(pageParam.getCurrent(), pageParam.getSize()); Page<TzBaseEnterpriseInfoDto> page = new Page<>(pageParam.getCurrent(), pageParam.getSize());
/*List<JSONObject> companyType1 = this.getCompanyType(); List<JSONObject> companyType1 = this.getCompanyType();
if (!ValidationUtil.isEmpty(companyType1)) { if (!ValidationUtil.isEmpty(companyType1)) {
for (JSONObject jsonObject : companyType1) { for (JSONObject jsonObject : companyType1) {
String orgCode = jsonObject.getString("orgCode"); String orgCode = jsonObject.getString("orgCode");
...@@ -80,16 +80,21 @@ public class EnterpriseBizServiceImpl { ...@@ -80,16 +80,21 @@ public class EnterpriseBizServiceImpl {
orgCodeList.add(orgCode); orgCodeList.add(orgCode);
} }
} }
}*/ }
orgCodeList.add("50"); 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) { return page;
// return page; }
// } orgCodeList.add(orgCode);
// orgCodeList.add(orgCode); }
// }
List<String> unitTypeList = new ArrayList<>();
unitTypeList.add(tzBaseEnterpriseInfoDto.getUnitType());
if (tzBaseEnterpriseInfoDto.getUnitType().equals(UnitTypeEnum.SYDW.getName())) {
unitTypeList.add(UnitTypeEnum.GRZT.getName());
}
if(tzBaseEnterpriseInfoDto.getUnitType().contains(UnitTypeEnum.JYJCJG.getName())){ if(tzBaseEnterpriseInfoDto.getUnitType().contains(UnitTypeEnum.JYJCJG.getName())){
String jyjcStatus = tzBaseEnterpriseInfoDto.getJyjcStatus(); String jyjcStatus = tzBaseEnterpriseInfoDto.getJyjcStatus();
......
...@@ -106,9 +106,17 @@ ...@@ -106,9 +106,17 @@
ON t1.unit_code = unit_code ON t1.unit_code = unit_code
</if> </if>
<where> <where>
<if <!-- <if-->
test="tzBaseEnterpriseInfoDto.unitType!=null and tzBaseEnterpriseInfoDto.unitType!='' "> <!-- test="tzBaseEnterpriseInfoDto.unitType!=null and tzBaseEnterpriseInfoDto.unitType!='' and tzBaseEnterpriseInfoDto.unitType!='使用单位' ">-->
AND unit_type LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.unitType},'%') <!-- -->
<!-- AND unit_type LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.unitType},'%')-->
<!-- </if>-->
<if test="unitTypeList != null and !unitTypeList.isEmpty()">
AND (
<foreach collection="unitTypeList" item="item" separator=" OR ">
unit_type LIKE CONCAT('%', #{item}, '%')
</foreach>
)
</if> </if>
<if <if
test="tzBaseEnterpriseInfoDto.useUnit!=null and tzBaseEnterpriseInfoDto.useUnit!='' "> test="tzBaseEnterpriseInfoDto.useUnit!=null and tzBaseEnterpriseInfoDto.useUnit!='' ">
......
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