工作台调试
This commit is contained in:
parent
862d54eaab
commit
fd67709e66
|
|
@ -4,13 +4,16 @@
|
||||||
|
|
||||||
<!-- 施工记录数量 -->
|
<!-- 施工记录数量 -->
|
||||||
<select id="getTeamDataAmount" resultType="com.bonus.screen.vo.TeamRecordNum">
|
<select id="getTeamDataAmount" resultType="com.bonus.screen.vo.TeamRecordNum">
|
||||||
select count(tt.id) as teamNum,count(tp.id) as peopleNum,
|
SELECT
|
||||||
count(case when (tp.post_code = '0900101' || tp.post_code = '0900102' || tp.post_code = '0900103') then 1 end ) teamMaster,
|
( SELECT COUNT( tt.id ) FROM tb_team tt WHERE tt.del_flag = 0 AND tt.js_time IS NULL ) AS teamNum,
|
||||||
count(case when tp.post_code = '0900104' then 1 end) teamSame,
|
COUNT( tp.id ) AS peopleNum,
|
||||||
count(case when tp.post_code = '0900106' then 1 end) teamSpecial
|
COUNT( CASE WHEN ( tp.post_code IN ( '0900101', '0900102', '0900103' )) THEN 1 END ) AS teamMaster,
|
||||||
from tb_team tt
|
COUNT( CASE WHEN tp.post_code = '0900104' THEN 1 END ) AS teamSame,
|
||||||
left join tb_people tp on tt.id = tp.team_id and tp.del_flag = 0
|
COUNT( CASE WHEN tp.post_code = '0900106' THEN 1 END ) AS teamSpecial
|
||||||
where tt.del_flag = 0
|
FROM
|
||||||
|
tb_people tp
|
||||||
|
WHERE
|
||||||
|
tp.del_flag = 0
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 施工班组详情页 -->
|
<!-- 施工班组详情页 -->
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue