| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.IOException; |
| | | |
| | | @RestController |
| | | @Slf4j |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | } |