1/20 上货增加批次号1.0

dev_fifo_z
wangwei 6 months ago
parent b053b6774c
commit 1a3bd7085e

@ -127,6 +127,9 @@ public class IoCodeTempController extends BaseController {
@Autowired
SysWorkplaceFreightService sysWorkplaceFreightService;
@Autowired
IoCollectOrderCodeManService ioCollectOrderCodeManService;
/**
* PDA-----
@ -1618,6 +1621,15 @@ public class IoCodeTempController extends BaseController {
codeEnttity.setPrice(udiRelevanceResponse.getPrice());
codeEnttity.setProductType(2);
codeEnttity.setCount(1);
//如果是阿里拉的单据会有批次号
IoCollectOrderCodeMan codeMan = ioCollectOrderCodeManService.getOne(new LambdaQueryWrapper<IoCollectOrderCodeMan>().eq(IoCollectOrderCodeMan::getUdiCode, code));
if (codeMan != null){
codeEnttity.setBatchNo(codeMan.getBatchNo());
codeEnttity.setProduceDate(codeMan.getProductDate());
codeEnttity.setExpireDate(codeMan.getExpireDate());
}
RelCodeDetailResponse codeRelEntity = relCodeDetailService.findByCode(code);
if (codeRelEntity != null) {
codeEnttity.setParentCode(codeRelEntity.getParentCode());

Loading…
Cancel
Save