diff --git a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml index ede2e4b..391351c 100644 --- a/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml +++ b/mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml @@ -28,8 +28,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" group by a.name order by rateNumber desc + + select - CONCAT(ROUND(SUM(COALESCE(b.resolved, 0))*100 / NULLIF(COUNT(1), 0),0),'%') AS completedRate, - SUM(COALESCE(b.resolved, 0)) AS completed, + CONCAT(ROUND(SUM(COALESCE(b.completed, 0))*100 / NULLIF(COUNT(1), 0),0),'%') AS completedRate, + SUM(COALESCE(b.completed, 0)) AS completed, COUNT(1) AS completedSum from mail_mark b left join dept a on a.id=b.second_dept_id where 1=1 @@ -182,24 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" GROUP BY month order by month - - - - - - - - - - - - - - - - - +