main
dongdingding 1 year ago
parent 989995a7bf
commit b427f18e2a

@ -65,14 +65,8 @@
a.check_status, a.check_status,
a.check_id, a.check_id,
a.check_ageing, a.check_ageing,
c.RISK_LEVEL as riskLevel, CONCAT(d.district,'-', d.county) AS districtcounty
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
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
<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>

Loading…
Cancel
Save