Commit a75d69f3 by lijingjing

修改报告同比,环比统计报错;

parent 19d0d56c
......@@ -475,7 +475,7 @@
FROM entrust e
join entrust_report r on r.entrust_id = e.id and r.deleted = 0
WHERE e.deleted = 0
AND to_char(r.report_check_time, 'yyyy-MM') = to_char(#{vo.vo.lastYearTime}::timestamp, 'yyyy-MM')
AND to_char(r.report_check_time, 'yyyy-MM') = to_char(#{vo.lastYearTime}::timestamp, 'yyyy-MM')
) b,
(SELECT count(r.id) "total"
FROM entrust e
......
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