¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.dto.PerformanceShiftAddDto; |
| | | import com.yuanchu.mom.service.PerformanceShiftService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | /** |
| | | * <p> |
| | | * 绩æç®¡ç-çæ¬¡ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-05-08 09:12:04 |
| | | */ |
| | | @Api(tags = "绩æç®¡ç-çæ¬¡") |
| | | @RestController |
| | | @RequestMapping("/performanceShift") |
| | | public class PerformanceShiftController { |
| | | |
| | | @Autowired |
| | | private PerformanceShiftService performanceShiftService; |
| | | |
| | | @ApiOperation(value = "绩æç®¡ç-çæ¬¡-æç") |
| | | @PostMapping("add") |
| | | public Result<?> performanceShiftAdd(@RequestBody PerformanceShiftAddDto performanceShiftAddDto) { |
| | | performanceShiftService.performanceShiftAdd(performanceShiftAddDto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩æç®¡ç-çæ¬¡-å页æ¥è¯¢") |
| | | @PostMapping("page") |
| | | public Result<?> performanceShiftPage(Integer size, Integer current, String time, String userName, String laboratory) { |
| | | return Result.success(performanceShiftService.performanceShiftPage(new Page<>(current, size), time, userName, laboratory)); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩æç®¡ç-çæ¬¡-çæ¬¡ç¶æä¿®æ¹") |
| | | @PutMapping("update/{id}") |
| | | public Result<?> performanceShiftUpdate(String shift, @PathVariable("id") Integer id) { |
| | | performanceShiftService.performanceShiftUpdate(shift, id); |
| | | return Result.success(); |
| | | } |
| | | } |