| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.IOException; |
| | | |
| | | @RestController |
| | | @Slf4j |
| | |
| | | return mesReturn; |
| | | } |
| | | |
| | | // // 出库申请 |
| | | // @PostMapping("/api/mes/outBoundOrder") |
| | | // public MesReturn outBoundOrder(@RequestBody MesOutApply param){ |
| | | // |
| | | // MesReturn mesReturn = new MesReturn(); |
| | | // mesReturn.setSuccess(mesService.outBoundOrder(param) == 1 ? "1" : "2"); |
| | | // return mesReturn; |
| | | // } |
| | | // 出库申请 |
| | | @PostMapping("/api/mes/outBoundOrder") |
| | | public MesReturn outBoundOrder(@RequestBody MesOutApply param){ |
| | | |
| | | MesReturn mesReturn = new MesReturn(); |
| | | mesReturn.setSuccess(mesService.outBoundOrder(param) == 1 ? "1" : "2"); |
| | | return mesReturn; |
| | | } |
| | | |
| | | // // 出库入库订单申请 |
| | | @PostMapping("/api/mes/callOutBoundOrder") |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | } |