Commit cf9580b8 by 丁伟峰

无用逻辑清理

1 parent 010f2ec1
package com.dituhui.pea.order.dao;
import com.dituhui.pea.order.dto.TeamCapacityStageDTO;
import com.dituhui.pea.order.entity.CapacityTeamStatEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
......@@ -25,6 +24,6 @@ public interface CapacityTeamStatDao extends JpaRepository<CapacityTeamStatEntit
@Query(value = "SELECT team_id FROM capacity_team_stat ORDER BY RAND() LIMIT 1", nativeQuery = true)
String getRandomTeamId();
@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")
TeamCapacityStageDTO getTeamCapacityStage(String teamId);
// @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")
// TeamCapacityStageDTO getTeamCapacityStage(String teamId);
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!