| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.mes.common.Result; |
| | | import com.mes.entity.Tempering; |
| | | import com.mes.entity.UpWorkstation; |
| | | import com.mes.service.LoadGlassService; |
| | | import com.mes.service.TemperingOverService; |
| | | import com.mes.service.TemperingService; |
| | | |
| | | |
| | | @RestController |
| | |
| | | return Result.seccess(glass); |
| | | } |
| | | |
| | | @PostMapping("/insertGlass") //新增一条工位信息,接收实例类字段为宽高厚膜系数量工位id |
| | | @PostMapping("/insertGlass") //修改一条工位信息,接收实例类字段为宽高厚膜系数量工位id |
| | | @ResponseBody |
| | | public void insertGlassinfo(@RequestBody UpWorkstation upwork) { |
| | | loadGlassService.insertGlass(upwork); |
| | | |
| | | } |
| | | |
| | | @PostMapping("/deleteGlass") //删除一条工位的玻璃信息,传输工位id删除 |
| | | @PostMapping("/deleteGlass") //修改一条工位的玻璃信息,传输工位id将玻璃信息相关字段更改为null |
| | | @ResponseBody |
| | | public void SelectCutTerritory(int upworkid) { |
| | | loadGlassService.deleteGlass(upworkid); |