| | |
| | | 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 { |
| | |
| | | //单据日期 |
| | | order.setOrderTime(param.getDdate()); |
| | | |
| | | //供应商编码 |
| | | order.setSalesman(param.getCVenCode()); |
| | | |
| | | order.setMemo(param.getCMemo()); |
| | | //制单人 |
| | | order.setShipCode(param.getCPersonCode()); |
| | |
| | | |
| | | od.setLength(odParam.getINum()); |
| | | |
| | | od.setSource(order.getDocType().intValue()); |
| | | od.setStatus(1); |
| | | od.setQty(0.0D); |
| | | od.setCreateBy(9999L); |