| | |
| | | package com.mes.rawglassdetails.controller; |
| | | |
| | | import com.mes.rawglassdetails.entity.dto.RawGlassStorageDetailsDTO; |
| | | import com.mes.rawglassdetails.entity.request.RawGlassRequest; |
| | | import com.mes.rawglassdetails.service.RawGlassStorageDetailsService; |
| | | import com.mes.utils.Result; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 前端控制器 |
| | |
| | | public Result<Object> updateQuantity(@Validated @RequestBody RawGlassRequest request) { |
| | | return Result.success(rawGlassStorageDetailsService.UpdateQuantity(request)); |
| | | } |
| | | |
| | | @ApiOperation("删除原片") |
| | | @PostMapping("/deleteWarehousing") |
| | | public Result<Object> deleteWarehousing(@RequestBody Long slotId) { |
| | |
| | | public Result<String> shelfReset(Long slot) { |
| | | return Result.success(rawGlassStorageDetailsService.shelfReset(slot)); |
| | | } |
| | | |
| | | @ApiOperation("原片使用情况") |
| | | @PostMapping("/patternUsage") |
| | | public Result<List<RawGlassStorageDetailsDTO>> patternUsage(String width, String height, String thickness, String films) { |
| | | return Result.build(200, "查询成功", rawGlassStorageDetailsService.patternUsage(width, height, thickness, films)); |
| | | } |
| | | } |