Commit 819af138 by lijingjing

修改备样管理数据不显示;

parent 4bdc1020
......@@ -77,7 +77,7 @@
date_part('day', CAST(b.storage_period AS TIMESTAMP) - CAST( now() AS TIMESTAMP)) "remain_days"
FROM
entrust_sample_backup b
JOIN contract_sampling s ON b.sampling_id = s.ID
LEFT JOIN contract_sampling s ON b.sampling_id = s.ID AND s.deleted = 0
LEFT JOIN (
select e.* from entrust e where e.deleted = 0
) e ON b.entrust_id = e.ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment