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

Commit 4bd7cbfa authored by 胡佳晨's avatar 胡佳晨

1

parent 2b47de96
...@@ -46,11 +46,13 @@ ...@@ -46,11 +46,13 @@
<select id="detail" parameterType="java.util.Map" resultMap="StoneScoreListDtoResult"> <select id="detail" parameterType="java.util.Map" resultMap="StoneScoreListDtoResult">
select hu.*, select hu.*,
avatar,
(case when score <![CDATA[>]]> 0 then sum(score) else 0 END) as 'score_all', (case when score <![CDATA[>]]> 0 then sum(score) else 0 END) as 'score_all',
(case when score <![CDATA[<]]> 0 then sum(score) else 0 END) as 'score_use', (case when score <![CDATA[<]]> 0 then sum(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,
avatar,
au.uid, au.uid,
IFNULL(ssu.status,1) as 'status' IFNULL(ssu.status,1) as 'status'
from adam_user as au from adam_user as au
......
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