| | |
| | | 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()); |
| | |
| | | } else { |
| | | mat.setTagId(tag.getId()); |
| | | syncMat(mat,param); |
| | | System.out.println(mat.getMaktx().length()); |
| | | if (matService.updateById(mat)) { |
| | | callApiLogSave(mat, "/open/asrs/mat/v1", "接收ERP下发商品信息成功!添加商品信息成功!", true); |
| | | } else { |
| | |
| | | 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.setDocType(docType.getDocId()); |
| | | //单据日期 |
| | | order.setOrderTime(param.getDdate()); |
| | | |
| | | //供应商编码 |
| | | order.setSalesman(param.getCVenCode()); |
| | | |
| | | order.setMemo(param.getCMemo()); |
| | | //制单人 |
| | |
| | | |
| | | od.setLength(odParam.getINum()); |
| | | |
| | | od.setSource(order.getDocType().intValue()); |
| | | od.setStatus(1); |
| | | od.setQty(0.0D); |
| | | od.setCreateBy(9999L); |