| | |
| | | throw new CoolException("未指定回库类型!!"); |
| | | } |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",mast.getLocNo())); |
| | | if(mast.getCrnNo() != locMast.getCrnNo()){ //若源库位不在本巷道 |
| | | if((mast.getCrnNo() != locMast.getCrnNo()) && mast.getIsSuplus()!=0){ //若源库位不在本巷道/空板直接回本巷道 |
| | | return workService.backLocOperationV2(mast.getWrkNo() + "", mast.getAppeUser()); |
| | | } |
| | | |
| | |
| | | }else if (params.getMsgType().equals("task_arrive")) { |
| | | //到达目的地 |
| | | //如果出库任务是跨区则需要生成新的入库任务入库 |
| | | if(!Cools.isEmpty(mast.getLocNo())){ |
| | | if(!Cools.isEmpty(mast.getLocNo()) ){ |
| | | mast.setOnlineYn("N");//等待生成跨区入库任务 |
| | | } |
| | | mast.setWrkSts(14L); |