| | |
| | | @Autowired |
| | | private LoadGlassService loadGlassService; |
| | | |
| | | @PostMapping("/") //查询现在上片机的玻璃信息 |
| | | @PostMapping("/SelectAll") //查询现在上片机的玻璃信息 |
| | | @ResponseBody |
| | | public Result SelectTerritoryInfo() { |
| | | public Result SelectGlassInfo() { |
| | | List<UpWorkstation> glass = loadGlassService.selectAll(); |
| | | System.out.println(glass); |
| | | return Result.seccess(glass); |
| | | } |
| | | |
| | | @PostMapping("/") //新增一条工位信息,接收实例类字段为宽高厚膜系数量工位id |
| | | @PostMapping("/insertGlass") //新增一条工位信息,接收实例类字段为宽高厚膜系数量工位id |
| | | @ResponseBody |
| | | public void CutTerritory(@RequestBody UpWorkstation upwork) { |
| | | public void insertGlassinfo(@RequestBody UpWorkstation upwork) { |
| | | loadGlassService.insertGlass(upwork); |
| | | |
| | | } |
| | | |
| | | @PostMapping("/") //删除一条工位的玻璃信息,传输工位id删除 |
| | | @PostMapping("/deleteGlass") //删除一条工位的玻璃信息,传输工位id删除 |
| | | @ResponseBody |
| | | public void SelectCutTerritory(int upworkid) { |
| | | loadGlassService.deleteGlass(upworkid); |
| | | } |
| | | |
| | | @PostMapping("/") //开始上片任务 |
| | | @PostMapping("/selectPriority") //开始上片任务 |
| | | @ResponseBody |
| | | public void selectPriority() { |
| | | boolean result = loadGlassService.isCanLoadGlass(); |
| | |
| | | @Delete("DELETE FROM up_workstation where workstation_id=#{id}") |
| | | void deleteGlass(int id ); |
| | | //增加上片信息 |
| | | @Insert ("INSERT INTO up_workstation (pattern_width,pattern_heigth,pattern_thickness)value(#{patternwidth},#{patternheigth},#{patternthickness}where workstation_id=#{workstationid) ") |
| | | void insertGlass(Double patternwidth,Double patternheigth,Double patternthickness,int workstationid); |
| | | @Insert ("INSERT INTO up_workstation (pattern_width,pattern_heigth,pattern_thickness,films_id,number,workstationid)value(#{upwork.patternwidth},#{upwork.patternheigth},#{upwork.patternthickness},#{upwork.filmsid},#{upwork.number},#{upwork.workstationid) ") |
| | | void insertGlass(UpWorkstation upwork,Double patternwidth,Double patternheigth,Double patternthickness,int workstationid,String filmsid,int number); |
| | | //是否发起吸片 |
| | | @Select("SELECT * FROM up_workstation where workstation_id=#{id}") |
| | | UpWorkstation selectAdd(int id); |
| | |
| | | @Autowired |
| | | private TemperingOverService temperingOverService; |
| | | |
| | | @GetMapping("/") // 查询钢化等片中的版图信息,状态为1的为已到,状态为0的为等待中 |
| | | @GetMapping("/SelectWaitingGlass") // 查询钢化等片中的版图信息,状态为1的为已到,状态为0的为等待中 |
| | | @ResponseBody |
| | | public Result SelectTerritoryInfo(@RequestParam(name = "ProcessId", required = false) String ProcessId) { |
| | | public Result SelectWaitingGlass(@RequestParam(name = "ProcessId", required = false) String ProcessId) { |
| | | List<Tempering> glass = temperingService.SelectWaitingGlass(); |
| | | System.out.println(glass); |
| | | return Result.seccess(glass); |
| | | } |
| | | |
| | | @GetMapping("/") // 查询进炉中的钢化等片中的版图信息,状态全为1的为已到。 |
| | | @GetMapping("/SelectIntoGlass") // 查询进炉中的钢化等片中的版图信息,状态全为1的为已到。 |
| | | @ResponseBody |
| | | public Result CutTerritory(String ProcessId) { |
| | | public Result SelectIntoGlass(String ProcessId) { |
| | | List<Tempering> glass = temperingService.SelectIntoGlass(); |
| | | System.out.println(glass); |
| | | return Result.seccess(glass); |
| | | } |
| | | |
| | | @GetMapping("/") //钢化后显示出炉的版图信息 |
| | | @GetMapping("/SelectOutGlass") //钢化后显示出炉的版图信息 |
| | | @ResponseBody |
| | | public Result SelectCutTerritory(String ProcessId) { |
| | | public Result SelectOutGlass(String ProcessId) { |
| | | List<Tempering> glass = temperingOverService.SelectOutGlass(); |
| | | System.out.println(glass); |
| | | return Result.seccess(glass); |