| | |
| | | return mobileService.unbind(site); |
| | | } |
| | | |
| | | @PostMapping("/agv/bind") |
| | | @ManagerAuth |
| | | public R pdaAgvBind(@RequestBody Map<String,Object> map){ |
| | | |
| | | String site = (String) map.get("site"); // 暂存位 |
| | | |
| | | if (Cools.isEmpty(site)) { |
| | | return R.parse("暂存位不能为空"); |
| | | } |
| | | boolean b = mobileService.bindPodAndBerth(site); |
| | | if (b){ |
| | | return R.ok(); |
| | | } |
| | | return R.error(); |
| | | } |
| | | |
| | | private void getAgvTaskParam(ForwardAGVTaskParam agvTaskCreateParam,String agv,String sta){ |
| | | List<ForwardAGVTaskParam.PositionCodePaths> agvTaskParamList = Arrays.asList( |
| | | //起始位 |
| | |
| | | List<ManLocDetl> pingKuGetList(PKInventoryAdjustment combParam); |
| | | |
| | | void pingKuInventoryAdjustment(PKInventoryAdjustment combParam); |
| | | |
| | | boolean bindPodAndBerth(String site); |
| | | } |
| | |
| | | } |
| | | return success; |
| | | } |
| | | |
| | | private boolean bindPodAndBerth(String sta) { |
| | | @Override |
| | | public boolean bindPodAndBerth(String sta) { |
| | | String staMap = AgvSiteConstant.SiteMap.get(sta); |
| | | if (staMap == null) { |
| | | log.error("没有找到该站点的入库映射:{}",sta); |
| | |
| | | } |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("reqCode",UUID.randomUUID().toString().replace("-", "")); // 请求唯一值 |
| | | jsonObject.put("ctnrTyp","2"); // 容器类型2 |
| | | jsonObject.put("ctnrTyp","3"); // 容器类型2 |
| | | jsonObject.put("stgBinCode",staMap); // 仓位编号,根据客仓编号转换 |
| | | jsonObject.put("indBind","1"); // 1绑定,0解绑 |
| | | |