| | |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.utils.MatUtils; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.model.LocDetlDto; |
| | | import com.zy.common.utils.NodeUtils; |
| | | import lombok.Synchronized; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | } |
| | | OrderDetl orderDetl = new OrderDetl(); |
| | | orderDetl.sync(mat); |
| | | if (!Cools.isEmpty(detlDto.getCFree1())){ |
| | | orderDetl.setSpecs(detlDto.getCFree1()); |
| | | } |
| | | orderDetl.setBatch(detlDto.getBatch()); |
| | | orderDetl.setAnfme(detlDto.getAnfme()); |
| | | orderDetl.setOrderId(order.getId()); |
| | |
| | | throw new CoolException("库位号不存在"); |
| | | } |
| | | |
| | | if(!Cools.eq("O",agvLocMast.getLocSts()) && !Cools.eq("F",agvLocMast.getLocSts())){ |
| | | throw new CoolException("当前库位正在作业中,无法盘点调整"); |
| | | } |
| | | |
| | | if(Cools.isEmpty(params.getLocDetls())){ |
| | | agvLocMast.setLocSts("O"); |
| | | }else { |
| | | agvLocMast.setLocSts("F"); |
| | | } |
| | | |
| | | agvLocMastService.updateById(agvLocMast); |
| | | |
| | | //删除旧库存 |
| | | agvLocDetlService.delete(new EntityWrapper<AgvLocDetl>().eq("loc_no",params.getLocNo())); |
| | | |
| | |
| | | //单据日期 |
| | | order.setOrderTime(param.getDdate()); |
| | | |
| | | //供应商编码 |
| | | order.setSalesman(param.getCVenCode()); |
| | | |
| | | order.setMemo(param.getCMemo()); |
| | | //制单人 |
| | | order.setShipCode(param.getCPersonCode()); |