| | |
| | | package com.mes.rawglassdetails.controller; |
| | | |
| | | import com.mes.rawglassdetails.entity.RawGlassStorageDetails; |
| | | import com.mes.rawglassdetails.entity.dto.RawGlassStorageDetailsDTO; |
| | | import com.mes.rawglassdetails.entity.request.RawGlassRequest; |
| | | import com.mes.rawglassdetails.service.RawGlassStorageDetailsService; |
| | |
| | | import org.springframework.context.MessageSource; |
| | | import org.springframework.context.i18n.LocaleContextHolder; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | return Result.build(200, "查询成功", rawGlassStorageDetailsService.patternUsage(width, height, thickness, films)); |
| | | } |
| | | |
| | | @ApiOperation("查询原片存储详情") |
| | | @GetMapping("/selectDetails") |
| | | public Result<List<RawGlassStorageDetails>> selectDetails() { |
| | | return Result.build(200, "查询成功", rawGlassStorageDetailsService.selectDetails()); |
| | | } |
| | | |
| | | @ApiOperation("清除异常数据") |
| | | @PostMapping("/deleteData") |
| | | public Result<Boolean> deleteDetails(String id) { |
| | | return Result.success(rawGlassStorageDetailsService.deleteDetails(id)); |
| | | } |
| | | |
| | | } |