|
@@ -37,6 +37,26 @@ public interface ChuanyunProjectCostDao extends GalaxisRepository<ChuanyunProjec
|
|
|
nativeQuery = true)
|
|
|
ChuanyunProjectCostDO getProcessProjectCost(@Param("projectId")String projectId,@Param("projectType")String projectType);
|
|
|
|
|
|
+//
|
|
|
+// @Query(value="SELECT\n" +
|
|
|
+// "\tSUM(\n" +
|
|
|
+// "\t\tchuanyun_self_cost_copy.total_hour\n" +
|
|
|
+// "\t) AS total_hour,\n" +
|
|
|
+// "\t SUM(\n" +
|
|
|
+// "\t\tchuanyun_self_cost_copy.total_hour\n" +
|
|
|
+// "\t) / 8 AS person_days,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.project_id,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.project_type,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.object_id,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.`status`\n" +
|
|
|
+// "FROM\n" +
|
|
|
+// "\tchuanyun_self_cost_copy\n" +
|
|
|
+// "GROUP BY\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.project_id,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.project_type,\n" +
|
|
|
+// "\tchuanyun_self_cost_copy.`status`", nativeQuery = true)
|
|
|
+// List<ChuanyunProjectCostDO> getHistoryProjectCost();
|
|
|
+
|
|
|
/**
|
|
|
* 根据项目号获取工时数据
|
|
|
* @param projectId 项目Id
|