| | |
| | | import me.zhengjie.modules.task.domain.TaskDaliyMongo; |
| | | import me.zhengjie.modules.task.service.TaskDaliyService; |
| | | import me.zhengjie.modules.task.service.dto.TaskDaliyQueryCriteria; |
| | | import me.zhengjie.modules.task.service.impl.TaskDaliyServiceImpl; |
| | | import org.springframework.data.domain.Pageable; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | 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; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | | * @author 赵士淞 |
| | | * @website https://eladmin.vip |
| | | * @date 2022-12-30 |
| | | **/ |
| | | @RestController |
| | |
| | | public ResponseEntity<Object> getDailyDetail(String taskUserId, String fillDate){ |
| | | return new ResponseEntity<>(taskDaliyService.getDailyDetail(taskUserId,fillDate),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/checkTask") |
| | | @Log("查询任务的总消耗工时") |
| | | @ApiOperation("判断当前这个日报填写的这个进度是否合法") |
| | | @PreAuthorize("@el.check('taskDaliy:list')") |
| | | public ResponseEntity<Object> checkTask(Long taskProgress, String taskUserId) { |
| | | return new ResponseEntity<>(taskDaliyService.checkTask(taskProgress, taskUserId.split(",")[0]),HttpStatus.OK); |
| | | } |
| | | } |