| | |
| | | */ |
| | | package me.zhengjie.modules.task.rest; |
| | | |
| | | import cn.hutool.core.date.DateTime; |
| | | import me.zhengjie.annotation.Log; |
| | | import me.zhengjie.modules.task.domain.TaskDaliy; |
| | | import me.zhengjie.modules.task.domain.TaskDaliyMongo; |
| | |
| | | import me.zhengjie.modules.task.service.dto.TaskDaliyQueryCriteria; |
| | | import org.springframework.data.domain.Pageable; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.*; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | |
| | | public ResponseEntity<Object> queryTaskTotalConsumedHours(TaskDaliyQueryCriteria criteria){ |
| | | return new ResponseEntity<>(taskDaliyService.queryTaskTotalConsumedHours(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/getDetail") |
| | | @Log("查询任务的总消耗工时") |
| | | @ApiOperation("查询任务的总消耗工时") |
| | | @PreAuthorize("@el.check('taskDaliy:list')") |
| | | public ResponseEntity<Object> getDailyDetail(String taskUserId, String fillDate){ |
| | | return new ResponseEntity<>(taskDaliyService.getDailyDetail(taskUserId,fillDate),HttpStatus.OK); |
| | | } |
| | | } |