|
|
@ -73,12 +73,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation" resultMap="SzsEnterpriseInformationResult">
|
|
|
|
<select id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation" resultMap="SzsEnterpriseInformationResult">
|
|
|
|
<include refid="selectSzsEnterpriseInformationVo"/>
|
|
|
|
select s.* from(
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
a.*,
|
|
|
|
|
|
|
|
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
|
|
|
|
|
|
|
|
FROM
|
|
|
|
|
|
|
|
szs_enterprise_information a
|
|
|
|
|
|
|
|
LEFT JOIN
|
|
|
|
|
|
|
|
b_key_enterprise b ON a.UUIT_NO = b.ent_code )s
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''"> and SUPERVISION_LARGE like concat('%',#{supervisionLarge}, '%')</if>
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''"> and s.SUPERVISION_LARGE like concat('%',#{supervisionLarge}, '%')</if>
|
|
|
|
<if test="uuitNo != null and uuitNo != ''"> and UUIT_NO = #{uuitNo}</if>
|
|
|
|
<if test="uuitNo != null and uuitNo != ''"> and s.UUIT_NO = #{uuitNo}</if>
|
|
|
|
<if test="subdistrict != null and subdistrict != ''"> and SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
|
|
|
|
<if test="subdistrict != null and subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
|
|
|
|
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
|
|
|
|
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|