@@ -22,4 +22,6 @@ public interface CapacityEngineerCalendarDao extends JpaRepository<CapacityEngin
...
@@ -22,4 +22,6 @@ public interface CapacityEngineerCalendarDao extends JpaRepository<CapacityEngin
@Modifying
@Modifying
@Query("delete from CapacityEngineerCalendarEntity a where a.engineerCode in :engineerCodes and a.type = :type and a.workday between :startDate and :endDate")
@Query("delete from CapacityEngineerCalendarEntity a where a.engineerCode in :engineerCodes and a.type = :type and a.workday between :startDate and :endDate")
@@ -24,6 +24,4 @@ public interface CapacityTeamStatDao extends JpaRepository<CapacityTeamStatEntit
...
@@ -24,6 +24,4 @@ public interface CapacityTeamStatDao extends JpaRepository<CapacityTeamStatEntit
@Query(value="SELECT team_id FROM capacity_team_stat ORDER BY RAND() LIMIT 1",nativeQuery=true)
@Query(value="SELECT team_id FROM capacity_team_stat ORDER BY RAND() LIMIT 1",nativeQuery=true)
StringgetRandomTeamId();
StringgetRandomTeamId();
// @Query("select TeamCapacityStageDTO(sum(a.capTotal), sum(a.capUsed), sum(a.capLeft), count(1)) from CapacityEngineerStatEntity a join OrgTeamEngineerEntity t on a.engineerCode = t.engineerCode where t.teamId = :teamId")