| | |
| | | AgvBasDevp agvBasDevp = JSONArray.parseObject(param,AgvBasDevp.class); |
| | | |
| | | //若当前站点货位状态不为F.在库状态,则返回错误 |
| | | if(!agvBasDevp.getLocSts().equals("F")){ |
| | | if(!agvBasDevp.getLocSts().equals("F") && !agvBasDevp.getLocSts().equals("R")){ |
| | | return R.error("当前站点货位状态不为在库,无法解除绑定"); |
| | | } |
| | | agvBasDevp.setLocSts("O"); |
| | |
| | | }catch (Exception e){ |
| | | String devNo = map.get("devNo").toString(); |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("loc_no", devNo).eq("wrk_sts",205L)); |
| | | if(agvWrkMast.getIoType() == 101){ |
| | | throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型为101.出库,无法执行拣料入库任务,请重新选择站点。"); |
| | | if (agvWrkMast != null) { |
| | | if(agvWrkMast.getIoType() == 101){ |
| | | throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型为101.出库,无法执行拣料入库任务,请重新选择站点。"); |
| | | } |
| | | agvWrkMastList.add(agvWrkMast); |
| | | } |
| | | agvWrkMastList.add(agvWrkMast); |
| | | } |
| | | |
| | | // List<String> devNos = (List<String>) map.get("devNo"); |