|
|
@ -65,15 +65,11 @@
|
|
|
|
a.check_status,
|
|
|
|
a.check_status,
|
|
|
|
a.check_id,
|
|
|
|
a.check_id,
|
|
|
|
a.check_ageing,
|
|
|
|
a.check_ageing,
|
|
|
|
c.RISK_LEVEL as riskLevel,
|
|
|
|
c.risk_level,
|
|
|
|
c.STAND_LEVEL as standLevel,
|
|
|
|
CONCAT(d.district,'-', d.county) AS districtcounty
|
|
|
|
c.EXAMINE_END_TIME as examineEndTime,
|
|
|
|
|
|
|
|
CONCAT(d.district,'-', d.county) AS districtcounty,
|
|
|
|
|
|
|
|
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
|
|
|
|
|
|
|
|
FROM b_plan_enterprise a
|
|
|
|
FROM b_plan_enterprise a
|
|
|
|
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code
|
|
|
|
|
|
|
|
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
|
|
|
|
|
|
|
|
left join b_administrative_division d on a.district=d.county_code
|
|
|
|
left join b_administrative_division d on a.district=d.county_code
|
|
|
|
|
|
|
|
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
<if test="createId != null ">and a.create_id = #{createId}</if>
|
|
|
|
<if test="createId != null ">and a.create_id = #{createId}</if>
|
|
|
@ -94,7 +90,6 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<if test="plannedYear != null and plannedYear != ''">and a.planned_year = #{plannedYear}</if>
|
|
|
|
<if test="plannedYear != null and plannedYear != ''">and a.planned_year = #{plannedYear}</if>
|
|
|
|
<if test="isPoint != null ">and a.is_point = #{isPoint}</if>
|
|
|
|
|
|
|
|
<if test="lawHierarchy != null ">and a.law_hierarchy = #{lawHierarchy}</if>
|
|
|
|
<if test="lawHierarchy != null ">and a.law_hierarchy = #{lawHierarchy}</if>
|
|
|
|
<if test="status != null ">and a.status = #{status}</if>
|
|
|
|
<if test="status != null ">and a.status = #{status}</if>
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like
|
|
|
@ -106,8 +101,8 @@
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
order by lawLevel, law_sort,planned_month+0
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by isPoint desc
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<delete id="deleteByPlanId">
|
|
|
|
<delete id="deleteByPlanId">
|
|
|
|
delete
|
|
|
|
delete
|
|
|
|