@@ -83,13 +83,13 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
* @param teamId 工作队ID
* @return 工程师信息
*/
@Query(value="SELECT * FROM org_team_engineer ote "+
@Query(value="SELECT ei.* FROM org_team_engineer ote "+
" LEFT JOIN "+
" (SELECT esg.engineer_code AS engineer_code FROM engineer_skill_group esg "+
" WHERE esg.status = 1 AND esg.skill_group_code IN( :skillGroupCodes) group by esg.engineer_code having count(esg.skill_group_code) = :skillGroupNumber "+
" ) AS tabA ON tabA.engineer_code = ote.engineer_code "+
" LEFT JOIN engineer_info ei ON ei.engineer_code = tabA.engineer_code "+
" WHERE ote.team_id = :teamId "+
" WHERE ote.team_id = :teamId AND ei.id is not null"+
" order by ei.engineer_code desc",nativeQuery=true)