Commit 52fc54eb authored by 刘林's avatar 刘林

fix(jg):监管企业查询修改

parent 6db7fd84
......@@ -90,13 +90,14 @@
FROM tz_base_enterprise_info
<where>
<if test="tzBaseEnterpriseInfoDto.unitType!=null and tzBaseEnterpriseInfoDto.unitType!='' ">
AND unit_type = #{tzBaseEnterpriseInfoDto.unitType}
AND unit_type LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.unitType},'%')
</if>
<if test="tzBaseEnterpriseInfoDto.unitTypeList != null and !tzBaseEnterpriseInfoDto.unitTypeList.isEmpty() and tzBaseEnterpriseInfoDto.unitTypeList.size() > 0">
AND unit_type IN
<foreach collection="tzBaseEnterpriseInfoDto.unitTypeList" item="item" open="(" separator="," close=")">
#{item}
<if test="tzBaseEnterpriseInfoDto.unitTypeList != null and !tzBaseEnterpriseInfoDto.unitTypeList.isEmpty()">
AND (
<foreach collection="tzBaseEnterpriseInfoDto.unitTypeList" item="unit" separator=" OR ">
FIND_IN_SET(#{unit}, REPLACE(unit_type, '#', ','))
</foreach>
)
</if>
<if test="tzBaseEnterpriseInfoDto.useUnit!=null and tzBaseEnterpriseInfoDto.useUnit!='' ">
AND use_unit LIKE CONCAT('%',#{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