|
@@ -39,7 +39,7 @@
|
|
|
left join t_scene_plus_ext ext on plus.id = ext.plus_id
|
|
|
where plus.scene_status in (1,-2) and ext.algorithm_time <![CDATA[ < ]]> #{time}
|
|
|
and ext.data_source is NOT null
|
|
|
- and NOT EXISTS (select c.num from t_scene_cold_storage c where c.rec_status = 'A' and c.num = plus.num)
|
|
|
+ and NOT EXISTS (select c.num from t_scene_cold_storage c where c.rec_status = 'A' AND c.`state` = 1 and c.num = plus.num)
|
|
|
and NOT EXISTS (select o.num from t_scene_clean_orig o where o.rec_status = 'A' and o.state != -1 and o.num = plus.num and ext.algorithm_time <![CDATA[ < ]]> o.create_time)
|
|
|
</select>
|
|
|
|