Commit 7eaf89e6 by 刘鑫

fix: 替换左联查 避免出现无用数据

1 parent c3ec69f7
......@@ -47,7 +47,7 @@ public interface CapacityStatisticDao extends JpaRepository<CapacityTeamStatEnti
" INNER JOIN org_team_engineer ote ON ote.team_id = ot.team_id AND ot.status = 1 AND ote.status =1\n" +
" INNER JOIN capacity_engineer_stat a ON a.engineer_code = ote.engineer_code \n" +
" INNER JOIN v_engineer_skill v ON a.engineer_code = v.engineer_code\n" +
" LEFT JOIN engineer_info z ON a.engineer_code = z.engineer_code AND z.bean_status = 1 \n" +
" INNER JOIN engineer_info z ON a.engineer_code = z.engineer_code AND z.bean_status = 1 \n" +
" WHERE ot.branch_id = :branchId AND a.workday= :date \n" +
" GROUP BY a.workday, v.layer_id, v.layer ", nativeQuery = true)
List<Object[]> sumBranchCapacity(String date, String branchId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!