|
|
|
@ -43,26 +43,46 @@
|
|
|
|
|
user_id,
|
|
|
|
|
dept_id
|
|
|
|
|
from b_enterprise_new
|
|
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBEnterpriseNewList" parameterType="BEnterpriseNew" resultMap="BEnterpriseNewResult">
|
|
|
|
|
<include refid="selectBEnterpriseNewVo"/>
|
|
|
|
|
<select id="selectBEnterpriseNewList" parameterType="BEnterpriseNew" resultType="BEnterpriseNew">
|
|
|
|
|
select a.id,
|
|
|
|
|
a. enterprise_id,
|
|
|
|
|
a.enterprise_name,
|
|
|
|
|
a.district,
|
|
|
|
|
a.SUPERVISION_LARGE,
|
|
|
|
|
a.RISK_LEVEL,
|
|
|
|
|
a.STAND_LEVEL,
|
|
|
|
|
a.EXAMINE_END_TIME,
|
|
|
|
|
a. create_id,
|
|
|
|
|
a.create_by,
|
|
|
|
|
a.create_time,
|
|
|
|
|
a.update_id,
|
|
|
|
|
a.update_by,
|
|
|
|
|
a.update_time,
|
|
|
|
|
a. remark,
|
|
|
|
|
a.user_id,
|
|
|
|
|
a.dept_id,
|
|
|
|
|
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
|
|
|
|
|
from b_enterprise_new a
|
|
|
|
|
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code COLLATE utf8mb4_unicode_ci
|
|
|
|
|
<where>
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and enterprise_id = #{enterpriseId}</if>
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like concat('%',
|
|
|
|
|
#{enterpriseName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="district != null and district != ''">and district = #{district}</if>
|
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''">and SUPERVISION_LARGE =
|
|
|
|
|
<if test="district != null and district != ''">and a.district = #{district}</if>
|
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''">and a.SUPERVISION_LARGE =
|
|
|
|
|
#{supervisionLarge}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="riskLevel != null and riskLevel != ''">and RISK_LEVEL = #{riskLevel}</if>
|
|
|
|
|
<if test="standLevel != null and standLevel != ''">and STAND_LEVEL = #{standLevel}</if>
|
|
|
|
|
<if test="examineEndTime != null ">and EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
|
<if test="createId != null ">and create_id = #{createId}</if>
|
|
|
|
|
<if test="updateId != null ">and update_id = #{updateId}</if>
|
|
|
|
|
<if test="userId != null ">and user_id = #{userId}</if>
|
|
|
|
|
<if test="deptId != null ">and dept_id = #{deptId}</if>
|
|
|
|
|
<if test="riskLevel != null and riskLevel != ''">and a.RISK_LEVEL = #{riskLevel}</if>
|
|
|
|
|
<if test="standLevel != null and standLevel != ''">and a.STAND_LEVEL = #{standLevel}</if>
|
|
|
|
|
<if test="examineEndTime != null ">and a.EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
|
<if test="createId != null ">and a.create_id = #{createId}</if>
|
|
|
|
|
<if test="updateId != null ">and a.update_id = #{updateId}</if>
|
|
|
|
|
<if test="userId != null ">and a.user_id = #{userId}</if>
|
|
|
|
|
<if test="deptId != null ">and a.dept_id = #{deptId}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|