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