|
|
@@ -430,7 +430,7 @@
|
|
|
from core_resumption_plan_to_point a
|
|
|
LEFT JOIN core_resumption_rule_point b on a.point_id = b.id
|
|
|
LEFT JOIN core_resumption_rule_item c on b.item_id = c.id
|
|
|
- LEFT JOIN (select area_id,check_id from sys_nfc_bind where org_id = #{orgId}) d on b.check_id = d.check_id
|
|
|
+ LEFT JOIN (select DISTINCT area_id,check_id from sys_nfc_bind where org_id = #{orgId} and del_flag = 0) d on b.check_id = d.check_id
|
|
|
where a.plan_id = #{planId}) q
|
|
|
LEFT JOIN sys_area w on q.area_id = w.id
|
|
|
</select>
|