|
|
|
@ -19,10 +19,7 @@ import com.glxp.mipsdl.dao.auth.AuthWarehouseDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.auth.AuthWarehouseUserMapper;
|
|
|
|
|
import com.glxp.mipsdl.dao.basic.BasicBussinessTypeDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.basic.BasicCorpDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.IoCodeDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.IoOrderDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.IoOrderDetailBizDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.IoOrderUploadLogDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.*;
|
|
|
|
|
import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao;
|
|
|
|
|
import com.glxp.mipsdl.entity.auth.AuthUserEntity;
|
|
|
|
@ -48,6 +45,7 @@ import com.glxp.mipsdl.service.auth.AuthWarehouseService;
|
|
|
|
|
import com.glxp.mipsdl.service.thrsys.ThrCorpService;
|
|
|
|
|
import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService;
|
|
|
|
|
import com.glxp.mipsdl.util.DateUtil;
|
|
|
|
|
import com.glxp.mipsdl.util.IntUtil;
|
|
|
|
|
import com.glxp.mipsdl.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.mipsdl.util.SubmitOrderUtil;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -100,6 +98,10 @@ public class ZzzyyClient implements BaseHttpClient {
|
|
|
|
|
private ThrCorpService thrCorpService;
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderDetailBizDao orderDetailBizDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderDetailCodeDao orderDetailCodeDao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderUploadLogDao orderUploadLogDao;
|
|
|
|
|
@Resource
|
|
|
|
@ -447,6 +449,7 @@ public class ZzzyyClient implements BaseHttpClient {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 封装单据详情参数
|
|
|
|
|
*
|
|
|
|
@ -456,11 +459,21 @@ public class ZzzyyClient implements BaseHttpClient {
|
|
|
|
|
*/
|
|
|
|
|
private void setOrderDetailList(List<IoCodeEntity> ioCodeEntities, List<UdiwmsOrderDetailRequest> orderDetailRequests, List<IoOrderDetailBizEntity> detailBizEntities) {
|
|
|
|
|
for (IoOrderDetailBizEntity detailBizEntity : detailBizEntities) {
|
|
|
|
|
UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity);
|
|
|
|
|
if (item != null) {
|
|
|
|
|
//封装条码信息
|
|
|
|
|
submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item);
|
|
|
|
|
orderDetailRequests.add(item);
|
|
|
|
|
|
|
|
|
|
IoOrderDetailCodeEntity orderDetailCodeEntity = orderDetailCodeDao
|
|
|
|
|
.selectOne(new QueryWrapper<IoOrderDetailCodeEntity>()
|
|
|
|
|
.eq("orderIdFk", detailBizEntity.getOrderIdFk())
|
|
|
|
|
.eq("bindRlFk", detailBizEntity.getBindRlFk())
|
|
|
|
|
.eq(StrUtil.isNotEmpty(detailBizEntity.getBatchNo()), "batchNo", detailBizEntity.getBatchNo())
|
|
|
|
|
.isNull(StrUtil.isEmpty(detailBizEntity.getBatchNo()), "batchNo").last("LIMIT 1"));
|
|
|
|
|
if (orderDetailCodeEntity != null && IntUtil.value(orderDetailCodeEntity.getReCount()) > 0) {
|
|
|
|
|
detailBizEntity.setCount(orderDetailCodeEntity.getReCount());
|
|
|
|
|
UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity);
|
|
|
|
|
if (item != null) {
|
|
|
|
|
//封装条码信息
|
|
|
|
|
submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item);
|
|
|
|
|
orderDetailRequests.add(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|