zhangtao
dongdingding 1 year ago
parent 9d3316a1c5
commit 51d7b8437a

@ -400,5 +400,9 @@ public class SzsEnterpriseInformation extends BaseEntity {
@Excel(name = "固定资产")
private String fixedAssets;
/**
* 12
*/
@ApiModelProperty(value = "是否重点企业1是2否")
private Integer isPoint;
}

@ -73,12 +73,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<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>
<if test="supervisionLarge != null and supervisionLarge != ''"> and SUPERVISION_LARGE like concat('%',#{supervisionLarge}, '%')</if>
<if test="uuitNo != null and uuitNo != ''"> and UUIT_NO = #{uuitNo}</if>
<if test="subdistrict != null and subdistrict != ''"> and SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
<if test="supervisionLarge != null and supervisionLarge != ''"> and s.SUPERVISION_LARGE like concat('%',#{supervisionLarge}, '%')</if>
<if test="uuitNo != null and uuitNo != ''"> and s.UUIT_NO = #{uuitNo}</if>
<if test="subdistrict != null and subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
</where>
</select>

Loading…
Cancel
Save