|
|
|
@ -65,14 +65,8 @@
|
|
|
|
|
a.check_status,
|
|
|
|
|
a.check_id,
|
|
|
|
|
a.check_ageing,
|
|
|
|
|
c.RISK_LEVEL as riskLevel,
|
|
|
|
|
c.STAND_LEVEL as standLevel,
|
|
|
|
|
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
|
|
|
|
|
CONCAT(d.district,'-', d.county) AS districtcounty
|
|
|
|
|
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
|
|
|
|
|
<where>
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
|
|
|
|
|