| | |
| | | package com.mes.temperingglass.controller; |
| | | |
| | | |
| | | import com.mes.bigstorage.entity.BigStorageCage; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.temperingglass.entity.TemperingGlassInfo; |
| | | import com.mes.temperingglass.service.TemperingGlassInfoService; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author zhoush |
| | | * @since 2024-03-27 |
| | | */ |
| | | @Api(description = "钢化小片表信息") |
| | | @RestController |
| | | @RequestMapping("/temperingGlassInfo") |
| | | public class TemperingGlassInfoController { |
| | | |
| | | @Autowired |
| | | private TemperingGlassInfoService temperingGlassInfoService; |
| | | |
| | | @ApiOperation("钢化小片信息") |
| | | @GetMapping("/queryTemperingGlassInfo") |
| | | public Result queryTemperingGlassInfo() { |
| | | return Result.build(200,"查询成功",temperingGlassInfoService.list()); |
| | | } |
| | | |
| | | @ApiOperation("手动添加出片任务") |
| | | @PostMapping("/insertTemperingGlassInfo") |
| | | public Result insertBigStorageCageDetail(TemperingGlassInfo temperingGlassInfo) { |
| | | temperingGlassInfoService.save(temperingGlassInfo); |
| | | return Result.build(200,"添加成功",1); |
| | | } |
| | | } |
| | | |