| | |
| | | */ |
| | | 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; |
| | |
| | | Map<String,Object> queryAll(TaskDaliyQueryCriteria criteria, Pageable pageable); |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @param pageable 分页参数 |
| | | * @return Map<String,Object> |
| | | */ |
| | | //Map<String, Object> queryAllWithTaskUser(TaskDaliyQueryCriteria criteria, Pageable pageable); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @return List<TaskDaliyDto> |
| | |
| | | * @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); |
| | | |
| | | /** |
| | | * 导出数据 |
| | |
| | | * @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, Boolean readOnly); |
| | | |
| | | /** |
| | | * 查询某月已完成工时 |
| | | * @param criteria 条件参数 |
| | | * @return List<TaskDaliyDto> |
| | | */ |
| | | Double queryOtherWage(TaskDaliyQueryCriteria taskDaliyQueryCriteria); |
| | | |
| | | /** |
| | | * 查询任务的总消耗工时 |
| | | * @param criteria 条件参数 |
| | | * @return List<TaskDaliyDto> |
| | | */ |
| | | Double queryTaskTotalConsumedHours(TaskDaliyQueryCriteria criteria); |
| | | |
| | | |
| | | TaskDaliyMongo getDailyDetail(String taskUserId, String fillDate); |
| | | |
| | | boolean checkTask(Long taskProgress, String taskUserId, String fillDate); |
| | | |
| | | } |