|
|
|
@ -65,6 +65,7 @@ import org.dom4j.Document;
|
|
|
|
|
import org.dom4j.DocumentException;
|
|
|
|
|
import org.dom4j.DocumentHelper;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -156,6 +157,10 @@ public class CtqyyClient extends CommonHttpClient {
|
|
|
|
|
@Resource
|
|
|
|
|
private RelCodeDetailService relCodeDetailService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${DBTYPE}")
|
|
|
|
|
private String DBTYPE;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 拼接xml请求头
|
|
|
|
|
*
|
|
|
|
@ -1576,7 +1581,7 @@ public class CtqyyClient extends CommonHttpClient {
|
|
|
|
|
.or().like(VYpzsIoInfo::getIO_SORT, keywords)//收货方
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
udiwmsThrOrderRequest.setDatabaseProductName(getDataSourceType());
|
|
|
|
|
udiwmsThrOrderRequest.setDatabaseProductName(DBTYPE);
|
|
|
|
|
|
|
|
|
|
Page<VYpzsIoInfo> page = vYpzsIoInfoMapper.selectGroupedWithPagination(new Page<VYpzsIoInfo>(udiwmsThrOrderRequest.getPage(), udiwmsThrOrderRequest.getLimit()), udiwmsThrOrderRequest);
|
|
|
|
|
|
|
|
|
@ -1612,13 +1617,13 @@ public class CtqyyClient extends CommonHttpClient {
|
|
|
|
|
List<IoCollectOrderBiz> bizList = new ArrayList<>();
|
|
|
|
|
value.forEach(entity -> {
|
|
|
|
|
IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz();
|
|
|
|
|
BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper<BasicUdirelEntity>().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE()).last("limit 1"));
|
|
|
|
|
BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper<BasicUdirelEntity>().eq(BasicUdirelEntity::getMainId, entity.getCOUNTRY_CODE()).last("limit 1"));
|
|
|
|
|
if (basicUdirelEntity != null) {
|
|
|
|
|
collectOrderBiz.setRelId(basicUdirelEntity.getId());
|
|
|
|
|
} else {
|
|
|
|
|
errorMsg.append(entity.getPHYSIC_NAME()).append("字典未对照").append(";");
|
|
|
|
|
}
|
|
|
|
|
collectOrderBiz.setThrCode(entity.getPHYSIC_CODE());
|
|
|
|
|
collectOrderBiz.setThrCode(entity.getCOUNTRY_CODE());
|
|
|
|
|
collectOrderBiz.setCpmctymc(entity.getPHYSIC_NAME());
|
|
|
|
|
collectOrderBiz.setBatchNo(entity.getBATCH_NO());
|
|
|
|
|
collectOrderBiz.setCount(entity.getQUANTITY());
|
|
|
|
|