| | |
| | | |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wms/taskCreate", 1, "wms任务下发,任务数:"+params.size()); |
| | | deviceErrorService.addDeviceError("wms下发任务", 1, "wms任务下发,任务数:"+params.size()); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if (Cools.isEmpty(param)){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "参数为空,param:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "参数为空,param:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | } else if (Cools.isEmpty(param.getTaskNo())){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "任务号为空,taskNo:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "任务号为空,taskNo:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | } else if (Cools.isEmpty(param.getIoType())){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "任务类型为空,ioType:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "任务类型为空,ioType:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if (Cools.isEmpty(param.getStartPoint()) || Cools.isEmpty(param.getTargetPoint())){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "初始目标或者目标位为空,Point:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "初始目标或者目标位为空,Point:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if(Cools.isEmpty(locMast)){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "初始库位无法找到,locNo:"+JSON.toJSONString(locNo)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "初始库位无法找到,locNo:"+JSON.toJSONString(locNo)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if(Cools.isEmpty(staDesc)){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "入库路劲不存在,param:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "入库路劲不存在,param:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if(Cools.isEmpty(staDesc)){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "出库路劲不存在,param:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "出库路劲不存在,param:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if(Cools.isEmpty(locMast2)){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "目标库位无法找到,locNo:"+JSON.toJSONString(param.getTargetPoint())); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "目标库位无法找到,locNo:"+JSON.toJSONString(param.getTargetPoint())); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |
| | |
| | | if (!locMast2.getCrnNo().equals(locMast.getCrnNo())){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("wmsErr", 1, "起始库位与目标库位不再同一巷道,param:"+JSON.toJSONString(param)); |
| | | deviceErrorService.addDeviceError("wms下发任务异常", 1, "起始库位与目标库位不再同一巷道,param:"+JSON.toJSONString(param)); |
| | | } catch (Exception e2){ |
| | | // log.error("e2:"+e2.getMessage()); |
| | | } |