churf
2023-09-18 4b4e1b54cae72088fa60978e0192fe57f986e6f3
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/service/TaskDaliyService.java
@@ -15,10 +15,15 @@
*/
package me.zhengjie.modules.task.service;
import cn.hutool.core.date.DateTime;
import me.zhengjie.modules.task.domain.TaskDaliy;
import me.zhengjie.modules.task.domain.TaskDaliyMongo;
import me.zhengjie.modules.task.service.dto.TaskDaliyDto;
import me.zhengjie.modules.task.service.dto.TaskDaliyQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Map;
import java.util.List;
import java.io.IOException;
@@ -46,7 +51,7 @@
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
   Map<String, Object> queryAllWithTaskUser(TaskDaliyQueryCriteria criteria, Pageable pageable);
   //Map<String, Object> queryAllWithTaskUser(TaskDaliyQueryCriteria criteria, Pageable pageable);
    /**
    * 查询所有数据不分页
@@ -67,19 +72,19 @@
    * @param resources /
    * @return TaskDaliyDto
    */
    TaskDaliyDto create(TaskDaliy resources);
    TaskDaliyDto create(TaskDaliyMongo resources);
    /**
    * 编辑
    * @param resources /
    */
    void update(TaskDaliy resources);
    void update(TaskDaliyMongo resources);
    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Long[] ids);
    void deleteAll(String[] ids);
    /**
    * 导出数据
@@ -87,14 +92,21 @@
    * @param response /
    * @throws IOException /
    */
    void download(List<TaskDaliyDto> all, HttpServletResponse response) throws IOException;
    //void download(List<TaskDaliyDto> all, HttpServletResponse response) throws IOException;
    /**
     * 查询某月已完成工时
     * @param criteria 条件参数
     * @return List<TaskDaliyDto>
     */
    Double queryCompletedWork(TaskDaliyQueryCriteria criteria);
    Double queryCompletedWork(TaskDaliyQueryCriteria criteria, Boolean readOnly);
    /**
     * 查询某月已完成工时
     * @param criteria 条件参数
     * @return List<TaskDaliyDto>
     */
    Double queryOtherWage(TaskDaliyQueryCriteria taskDaliyQueryCriteria);
    /**
     * 查询任务的总消耗工时
@@ -102,4 +114,10 @@
     * @return List<TaskDaliyDto>
     */
    Double queryTaskTotalConsumedHours(TaskDaliyQueryCriteria criteria);
    TaskDaliyMongo getDailyDetail(String taskUserId, String fillDate);
    boolean checkTask(Long taskProgress, String taskUserId, String fillDate);
}