|
@@ -25,7 +25,7 @@ public interface ChuanyunSelfWorkHourDao extends GalaxisRepository<ChuanyunSelfW
|
|
* @param dayLogDate 日志日期
|
|
* @param dayLogDate 日志日期
|
|
* @return 日工时记录
|
|
* @return 日工时记录
|
|
*/
|
|
*/
|
|
- ChuanyunSelfWorkHourDO findByUserIdAndAndProjectIdAndAndDayLogDateAndProjectType(String userId, String projectId, LocalDateTime dayLogDate,String projectType);
|
|
|
|
|
|
+ ChuanyunSelfWorkHourDO findByUserIdAndProjectIdAndDayLogDateAndProjectTypeAndStatus(String userId, String projectId, LocalDateTime dayLogDate,String projectType,String status);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据userId获取工时数据
|
|
* 根据userId获取工时数据
|
|
@@ -34,6 +34,26 @@ public interface ChuanyunSelfWorkHourDao extends GalaxisRepository<ChuanyunSelfW
|
|
*/
|
|
*/
|
|
List<ChuanyunSelfWorkHourDO> findByUserId(String userId);
|
|
List<ChuanyunSelfWorkHourDO> findByUserId(String userId);
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @Query(value="SELECT SUM(chuanyun_self_work_hour.standard_work_hour) AS standard_work_hour," +
|
|
|
|
+ "chuanyun_self_work_hour.day_log_date," +
|
|
|
|
+ "chuanyun_self_work_hour.user_id," +
|
|
|
|
+ "chuanyun_self_work_hour.project_id," +
|
|
|
|
+ "chuanyun_self_work_hour.project_type," +
|
|
|
|
+ "chuanyun_self_work_hour.status," +
|
|
|
|
+ "chuanyun_self_work_hour.department_name," +
|
|
|
|
+ "chuanyun_self_work_hour.department_id," +
|
|
|
|
+ "chuanyun_self_work_hour.object_id " +
|
|
|
|
+ "FROM chuanyun_self_work_hour " +
|
|
|
|
+ "WHERE chuanyun_self_work_hour.user_id=? " +
|
|
|
|
+ "GROUP BY chuanyun_self_work_hour.user_id," +
|
|
|
|
+ "DATE_FORMAT(chuanyun_self_work_hour.day_log_date,'%Y-%m')," +
|
|
|
|
+ "chuanyun_self_work_hour.project_id," +
|
|
|
|
+ "chuanyun_self_work_hour.status," +
|
|
|
|
+ "chuanyun_self_work_hour.project_type",
|
|
|
|
+ nativeQuery = true)
|
|
|
|
+ List<ChuanyunSelfWorkHourDO> findDayWorkHour(String userId);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据用户id,日期获取工时
|
|
* 根据用户id,日期获取工时
|
|
* @param userId
|
|
* @param userId
|