|
|
|
select sum(case when point < 0 then point else 0 end) as deductionPoints , sum(case when point > 0 then point else 0 end) as bonusPoin from sup_indicators where assess_dept = #{deptId} and DATE_FORMAT(create_time, '%Y%m') = DATE_FORMAT(CURDATE(), '%Y%m') |
|
|
|
select 0 As totalPoints, sum(case when point < 0 then point else 0 end) as deductionPoints , sum(case when point > 0 then point else 0 end) as bonusPoins from sup_indicators where assess_dept = #{deptId} and DATE_FORMAT(create_time, '%Y%m') = DATE_FORMAT(CURDATE(), '%Y%m') |