| | |
| | | @ManagerAuth(memo = "站点修改") |
| | | public R update(AgvBasDevp basDevp){ |
| | | if (Cools.isEmpty(basDevp) || null==basDevp.getDevNo()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | basDevp.setModiUser(getUserId()); |
| | | basDevp.setModiTime(new Date()); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<AgvBasDevp> list = JSONArray.parseArray(param, AgvBasDevp.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (AgvBasDevp entity : list){ |
| | | agvBasDevpService.delete(new EntityWrapper<>(entity)); |
| | |
| | | @ManagerAuth(memo = "站点解绑") |
| | | public R unbind(@RequestParam String param){ |
| | | AgvBasDevp agvBasDevp = JSONArray.parseObject(param,AgvBasDevp.class); |
| | | |
| | | if (agvBasDevp==null){ |
| | | return R.error("参数缺失"); |
| | | } |
| | | //若当前站点货位状态不为F.在库状态,则返回错误 |
| | | if(!agvBasDevp.getLocSts().equals("F")){ |
| | | return R.error("当前站点货位状态不为在库,无法解除绑定"); |
| | |
| | | |
| | | String barcode = map.get("barcode").toString(); |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts",205L)); |
| | | if (agvWrkMast == null){ |
| | | R.error("工作档不存在"); |
| | | } |
| | | if(agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110){ |
| | | throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。"); |
| | | } |
| | |
| | | |
| | | String barcode = map.get("barcode").toString(); |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts",205L)); |
| | | if (agvWrkMast == null){ |
| | | return R.error("工作档不存在"); |
| | | } |
| | | if(agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110){ |
| | | throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。"); |
| | | } |