| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.IOException; |
| | | |
| | | @RestController |
| | | @Slf4j |
| | |
| | | return mesReturn; |
| | | } |
| | | |
| | | // 出库申请(叫料),装配库、滑块库 |
| | | // // 出库入库订单申请 |
| | | @PostMapping("/api/mes/callOutBoundOrder") |
| | | public MesReturn callOutBoundOrder(@RequestBody MesCallOutApply param){ |
| | | |
| | |
| | | // 入站允许 |
| | | @PostMapping("/api/mes/allowInStation") |
| | | public MesReturn allowInStation(@RequestBody TransInOutStationAllow param){ |
| | | |
| | | return mesService.allowInStation(param); |
| | | } |
| | | |
| | | // 离站允许,装配库、滑块库 |
| | | @PostMapping("/api/mes/allowOutStation") |
| | | public MesReturn allowOutStation(@RequestBody TransInOutStationAllow param){ |
| | | |
| | | return mesService.allowOutStation(param); |
| | | } |
| | | |
| | |
| | | return mesService.queryInventory(itemno,orderNo); |
| | | } |
| | | |
| | | @PostMapping("/api/mes/pauseAGV") |
| | | public MesReturn AGVPause(@RequestBody JSONObject param) throws IOException { |
| | | MesReturn mesReturn = new MesReturn(); |
| | | int AGVType; |
| | | if (param.containsKey("zoneCode")){ |
| | | param.put("mapCode", "BB"); |
| | | param.put("invoke", "FREEZE"); |
| | | AGVType = 1; |
| | | }else { |
| | | AGVType = 2; |
| | | } |
| | | if (mesService.AGVPause(param, AGVType) == 1){ |
| | | mesReturn.setSuccess("1"); |
| | | mesReturn.setMessage("成功"); |
| | | return mesReturn; |
| | | }else { |
| | | mesReturn.setSuccess("2"); |
| | | mesReturn.setMessage("失败"); |
| | | return mesReturn; |
| | | } |
| | | } |
| | | |
| | | } |