|
|
|
@ -81,10 +81,9 @@ public class IoOrderUtilsService {
|
|
|
|
|
|
|
|
|
|
//扫码明细表生成
|
|
|
|
|
FilterCompanyProductRelevanceRequest filterCompanyProductRelevanceRequest = new FilterCompanyProductRelevanceRequest();
|
|
|
|
|
IoCodeTempEntity ioCodeTempEntity1 = new IoCodeTempEntity();
|
|
|
|
|
List<IoCodeTempEntity> ioCodeTempEntities = new ArrayList<>();
|
|
|
|
|
for (IoCodeEntity ioCodeTempEntity : ioCodeEntityList) {
|
|
|
|
|
|
|
|
|
|
IoCodeTempEntity ioCodeTempEntity1 = new IoCodeTempEntity();
|
|
|
|
|
//查询物资信息
|
|
|
|
|
filterCompanyProductRelevanceRequest.setCustomerId(Long.valueOf(platformLinkRespons.getUnitId()));
|
|
|
|
|
filterCompanyProductRelevanceRequest.setNameCode(ioCodeTempEntity.getNameCode());
|
|
|
|
@ -97,7 +96,9 @@ public class IoOrderUtilsService {
|
|
|
|
|
map.put(ioCodeTempEntity.getRelId(), udiRlSupEntityList.get(0));
|
|
|
|
|
|
|
|
|
|
ioCodeTempEntity1.setOrderId(billNO);
|
|
|
|
|
ioCodeTempEntity1.setCode(URLDecoder.decode(ioCodeTempEntity.getCode(), StandardCharsets.UTF_8));
|
|
|
|
|
String s=ioCodeTempEntity.getCode();
|
|
|
|
|
String a=URLDecoder.decode(ioCodeTempEntity.getCode(), StandardCharsets.UTF_8);
|
|
|
|
|
ioCodeTempEntity1.setCode(a);
|
|
|
|
|
ioCodeTempEntity1.setMainAction(ioCodeTempEntity.getMainAction());
|
|
|
|
|
ioCodeTempEntity1.setAction(platformLinkRespons.getTargetAction());
|
|
|
|
|
ioCodeTempEntity1.setNameCode(ioCodeTempEntity.getNameCode());
|
|
|
|
@ -153,11 +154,10 @@ public class IoOrderUtilsService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//业务单生成
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity1 = new IoOrderDetailBizEntity();
|
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntities = new ArrayList<>();
|
|
|
|
|
if (ioOrderDetailBizEntityList != null && ioOrderDetailBizEntityList.size() > 0) {
|
|
|
|
|
for (IoOrderDetailBizEntity ioOrderDetailBizEntity : ioOrderDetailBizEntityList) {
|
|
|
|
|
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity1 = new IoOrderDetailBizEntity();
|
|
|
|
|
ioOrderDetailBizEntity1.setOrderIdFk(billNO);
|
|
|
|
|
|
|
|
|
|
ioOrderUploadRequest udiRlSupEntity = map.get(ioOrderDetailBizEntity.getBindRlFk());
|
|
|
|
@ -190,11 +190,10 @@ public class IoOrderUtilsService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//实际单据生成
|
|
|
|
|
IoOrderDetailResultEntity ioOrderDetailResultEntity1 = new IoOrderDetailResultEntity();
|
|
|
|
|
List<IoOrderDetailResultEntity> ioOrderDetailResultEntities = new ArrayList<>();
|
|
|
|
|
if (ioOrderDetailResultEntityList != null && ioOrderDetailResultEntityList.size() > 0) {
|
|
|
|
|
for (IoOrderDetailResultEntity ioOrderDetailResultEntity : ioOrderDetailResultEntityList) {
|
|
|
|
|
|
|
|
|
|
IoOrderDetailResultEntity ioOrderDetailResultEntity1 = new IoOrderDetailResultEntity();
|
|
|
|
|
ioOrderDetailResultEntity1.setOrderIdFk(billNO);
|
|
|
|
|
|
|
|
|
|
ioOrderUploadRequest udiRlSupEntity = map.get(ioOrderDetailResultEntity.getBindRlFk());
|
|
|
|
@ -226,11 +225,10 @@ public class IoOrderUtilsService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//发票生成
|
|
|
|
|
IoOrderInvoiceEntity ioOrderInvoiceEntity1 = new IoOrderInvoiceEntity();
|
|
|
|
|
List<IoOrderInvoiceEntity> ioOrderInvoiceEntities = new ArrayList<>();
|
|
|
|
|
if (ioOrderInvoiceEntityList != null && ioOrderInvoiceEntityList.size() > 0) {
|
|
|
|
|
for (IoOrderInvoiceEntity ioOrderInvoiceEntity : ioOrderInvoiceEntityList) {
|
|
|
|
|
|
|
|
|
|
IoOrderInvoiceEntity ioOrderInvoiceEntity1 = new IoOrderInvoiceEntity();
|
|
|
|
|
ioOrderInvoiceEntity1.setOrderIdFk(billNO);
|
|
|
|
|
ioOrderUploadRequest udiRlSupEntity = map.get(ioOrderInvoiceEntity.getBindRlFk());
|
|
|
|
|
if (udiRlSupEntity != null) {
|
|
|
|
|