大屏调试
This commit is contained in:
parent
21a98dbbd4
commit
5fe413c07d
|
|
@ -83,8 +83,8 @@ public class ProjectViewTwoController extends BaseController {
|
|||
* @return
|
||||
*/
|
||||
@GetMapping("/getTeamDataAmount")
|
||||
public AjaxResult getTeamDataAmount() {
|
||||
return success(projectViewService.getTeamDataAmount());
|
||||
public AjaxResult getTeamDataAmount(TeamRecord record) {
|
||||
return success(projectViewService.getTeamDataAmount(record));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public interface TeamRecordMapper {
|
|||
* 施工记录数量
|
||||
* @return
|
||||
*/
|
||||
TeamRecordNum getTeamDataAmount();
|
||||
TeamRecordNum getTeamDataAmount(TeamRecord record);
|
||||
|
||||
/**
|
||||
* 施工班组详情页
|
||||
|
|
|
|||
|
|
@ -207,8 +207,8 @@ public class ProjectViewServiceImpl {
|
|||
* 施工记录数量
|
||||
* @return
|
||||
*/
|
||||
public TeamRecordNum getTeamDataAmount() {
|
||||
return teamRecord.getTeamDataAmount();
|
||||
public TeamRecordNum getTeamDataAmount(TeamRecord record) {
|
||||
return teamRecord.getTeamDataAmount(record);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -5,15 +5,20 @@
|
|||
<!-- 施工记录数量 -->
|
||||
<select id="getTeamDataAmount" resultType="com.bonus.screen.vo.TeamRecordNum">
|
||||
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(DISTINCT tt.id) AS teamNum,
|
||||
COUNT(DISTINCT 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
|
||||
tb_team tt
|
||||
LEFT JOIN
|
||||
tb_people tp ON tt.id = tp.team_id AND tp.del_flag = 0
|
||||
WHERE
|
||||
tp.del_flag = 0
|
||||
tt.del_flag = 0 AND tt.js_time IS NULL
|
||||
<if test="proId != null">
|
||||
AND tt.pro_id = #{proId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 施工班组详情页 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue