fix:载体统计

pg_adapter
wangxy 8 months ago
parent f862b287a9
commit 5d83cc3b37

@ -320,8 +320,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SUM (CASE WHEN examine = 2 THEN 1 ELSE 0 END) AS ydj,
SUM (CASE WHEN examine = 3 THEN 1 ELSE 0 END) AS ysb,
SUM (CASE WHEN examine = 0 THEN 1 ELSE 0 END) AS ysh,
(SELECT SUM (CASE WHEN leavestate = 1 THEN 1 ELSE 0 END)
FROM td_leave t where t.user_id=s.user_id) as ylz
( SELECT SUM ( CASE WHEN leavestate = 1 THEN 1 ELSE 0 END ) FROM td_leave t )
as ylz
FROM ${prefix}sys_user s
</select>

Loading…
Cancel
Save