| | |
| | | package me.zhengjie.modules.task.service; |
| | | |
| | | import me.zhengjie.modules.task.domain.TaskDetail; |
| | | import me.zhengjie.modules.task.domain.TaskUser; |
| | | import me.zhengjie.modules.task.domain.TaskUserDetail; |
| | | import me.zhengjie.modules.task.domain.TaskUserMongo; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserDto; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserMongoDto; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserQueryCriteria; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserTotalMongoDto; |
| | | import me.zhengjie.modules.task.service.dto.*; |
| | | |
| | | import me.zhengjie.modules.task.service.vo.TaskUserMongoVo; |
| | | import org.springframework.data.domain.Pageable; |
| | | |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.io.IOException; |
| | |
| | | Map<String,Object> queryAll(TaskUserQueryCriteria criteria, Pageable pageable); |
| | | |
| | | /** |
| | | * 查询数据分页 |
| | | * @param criteria 条件 |
| | | * @return Map<String,Object> |
| | | */ |
| | | List<TaskUserMongoDto> queryAll(TaskUserQueryCriteria criteria); |
| | | |
| | | /** |
| | | * 查询所有数据不分页 |
| | | * @param criteria 条件参数 |
| | | * @param |
| | | * @return List<TaskUserDto> |
| | | */ |
| | | List<TaskUserMongoDto> queryAll(String taskId); |
| | | |
| | | /** |
| | | * 查询所有数据(不包含额外数据)不分页 |
| | | * @param |
| | | * @return List<TaskUserDto> |
| | | */ |
| | | List<TaskUserMongoDto> queryAllSimple(String taskId); |
| | | |
| | | /** |
| | | * 统计小时数 |
| | |
| | | TaskUserMongo findById(String id); |
| | | |
| | | /** |
| | | * 创建 |
| | | * @param resources / |
| | | * @return TaskUserDto |
| | | */ |
| | | TaskUserMongo create(TaskUserMongo resources) throws Exception; |
| | | * 创建 |
| | | * |
| | | * @param resources / |
| | | */ |
| | | void create(TaskUserMongoVo resources) throws Exception; |
| | | |
| | | /** |
| | | * 编辑 |
| | |
| | | * @param response / |
| | | * @throws IOException / |
| | | */ |
| | | void download(List<TaskUserDto> all, HttpServletResponse response) throws IOException; |
| | | void download(List<TaskUserMongoDto> all, HttpServletResponse response) throws IOException; |
| | | |
| | | /** |
| | | * 分配 |
| | |
| | | List<TaskUserDetail> getTaskUserDetail(String taskUserMongoId); |
| | | |
| | | List<TaskDetail> getTaskDetail(String taskMongoId); |
| | | |
| | | Double getPerformanceg(String taskHours, Long userId); |
| | | |
| | | Map<String, Object> getTaskUserAdvent(String taskUserMongoId,int page, int size); |
| | | |
| | | void generate(TaskGenerateDto taskGenerateDto) throws Exception; |
| | | |
| | | void exportUser(HttpServletResponse response, String taskId) throws IOException; |
| | | } |