记得上下班打卡 | git大法好,push需谨慎

Commit 703dd2e9 authored by 胡佳晨's avatar 胡佳晨

admin 积分详情

parent 90bb1718
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
</resultMap> </resultMap>
<select id="list" parameterType="java.util.Map" resultMap="StoneScoreListDtoResult"> <select id="list" parameterType="java.util.Map" resultMap="StoneScoreListDtoResult">
select hu.*, SELECT hu.*,
(case when score <![CDATA[>]]> 0 then sum(score) else 0 END) as 'score_all', SUM(CASE WHEN score <![CDATA[>]]> 0 THEN score ELSE 0 END) AS 'score_all',
(case when score <![CDATA[<]]> 0 then sum(score) else 0 END) as 'score_use', ABS(SUM(CASE WHEN score <![CDATA[<]]> 0 THEN score ELSE 0 END)) AS 'score_use',
('score_all' - 'score_use') as 'score_rest' ('score_all' - 'score_use') as 'score_rest'
from (select nickname, FROM (SELECT nickname,
mobile, mobile,
au.uid, au.uid,
IFNULL(ssu.status,1) as 'status' IFNULL(ssu.status,1) as 'status'
......
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