|
|
@ -97,7 +97,7 @@
|
|
|
|
<foreach item="item" index="index" collection="riskLevel.split(',')" open="(" separator="," close=")">
|
|
|
|
<foreach item="item" index="index" collection="riskLevel.split(',')" open="(" separator="," close=")">
|
|
|
|
#{riskLevel}
|
|
|
|
#{riskLevel}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="standLevel != null and standLevel != ''">and s.STAND_LEVEL = #{standLevel}</if>
|
|
|
|
<if test="standLevel != null and standLevel != ''">and s.STAND_LEVEL = #{standLevel}</if>
|
|
|
|
<if test="examineEndTime != null ">and s.EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
<if test="examineEndTime != null ">and s.EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
<if test="createId != null ">and s.create_id = #{createId}</if>
|
|
|
|
<if test="createId != null ">and s.create_id = #{createId}</if>
|
|
|
@ -190,12 +190,16 @@
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<delete id="deletAll">
|
|
|
|
<delete id="deletAll">
|
|
|
|
truncate table b_enterprise_new
|
|
|
|
truncate table b_enterprise_new
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="seletAll" resultType="com.ruoyi.programManagement.entity.BEnterpriseNew">
|
|
|
|
<select id="seletAll" resultType="com.ruoyi.programManagement.entity.BEnterpriseNew">
|
|
|
|
SELECT a.enterprise_id, a.enterprise_name, a.district, a.SUPERVISION_LARGE, a.RISK_LEVEL,
|
|
|
|
SELECT a.enterprise_id,
|
|
|
|
COALESCE(b.standardized_grade, '/') AS STAND_LEVEL,
|
|
|
|
a.enterprise_name,
|
|
|
|
|
|
|
|
a.district,
|
|
|
|
|
|
|
|
a.SUPERVISION_LARGE,
|
|
|
|
|
|
|
|
a.RISK_LEVEL,
|
|
|
|
|
|
|
|
COALESCE(b.standardized_grade, '/') AS STAND_LEVEL,
|
|
|
|
COALESCE(e.MAX_EXAMINE_END_TIME, null) AS EXAMINE_END_TIME
|
|
|
|
COALESCE(e.MAX_EXAMINE_END_TIME, null) AS EXAMINE_END_TIME
|
|
|
|
FROM b_enterprise_new a
|
|
|
|
FROM b_enterprise_new a
|
|
|
|
LEFT JOIN b_standardization b ON a.enterprise_name = b.enterprise_name COLLATE utf8mb4_unicode_ci
|
|
|
|
LEFT JOIN b_standardization b ON a.enterprise_name = b.enterprise_name COLLATE utf8mb4_unicode_ci
|
|
|
@ -206,7 +210,7 @@
|
|
|
|
) e ON a.enterprise_id = e.USC_CODE COLLATE utf8mb4_unicode_ci;
|
|
|
|
) e ON a.enterprise_id = e.USC_CODE COLLATE utf8mb4_unicode_ci;
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getList" resultType="com.ruoyi.programManagement.entity.response.BEnterpriseNewReponse">
|
|
|
|
<select id="getList" resultType="com.ruoyi.programManagement.entity.response.BEnterpriseNewReponse">
|
|
|
|
select s.* from( SELECT
|
|
|
|
select s.* from( SELECT
|
|
|
|
a.id,
|
|
|
|
a.id,
|
|
|
|
a.enterprise_id,
|
|
|
|
a.enterprise_id,
|
|
|
|
a.enterprise_name,
|
|
|
|
a.enterprise_name,
|
|
|
|