|
|
@@ -29,6 +29,8 @@ import org.springblade.los.edi.dto.*;
|
|
|
import org.springblade.los.edi.service.IEDISenderService;
|
|
|
import org.springblade.los.Util.RegularUtils;
|
|
|
import org.springblade.los.Util.Regular_ONE;
|
|
|
+import org.springblade.los.basic.lines.entity.BLines;
|
|
|
+import org.springblade.los.basic.lines.service.IBLinesService;
|
|
|
|
|
|
/**
|
|
|
* @author :jixinyuan
|
|
|
@@ -38,6 +40,7 @@ import org.springblade.los.Util.Regular_ONE;
|
|
|
@AllArgsConstructor
|
|
|
public class EDISenderServiceImpl implements IEDISenderService {
|
|
|
private final IBPackagesService bPackagesService;
|
|
|
+ private final IBLinesService bLinesService;
|
|
|
|
|
|
public static boolean createDir(String folder) {
|
|
|
if (!folder.endsWith(File.separator)) {
|
|
|
@@ -2624,7 +2627,15 @@ public class EDISenderServiceImpl implements IEDISenderService {
|
|
|
// wfg
|
|
|
writer.write("11:" + oneSoDto.getVesselCode() + ":" + oneSoDto.getVesselName() + ":" + oneSoDto.getVoyageNo() + "::::");
|
|
|
// 亿通 航线代码 lineNo
|
|
|
- writer.write(oneSoDto.getEtd() + ":lineNo:lineNo:::'");
|
|
|
+ String lineNo = "";
|
|
|
+ if(ObjectUtils.isNotNull(oneSoDto.getLineId())) {
|
|
|
+ BLines bLines = bLinesService.getOne(new LambdaQueryWrapper<BLines>()
|
|
|
+ .eq(BLines::getId, oneSoDto.getLineId()));
|
|
|
+ if (bLines != null) {
|
|
|
+ lineNo = RegularUtils.getEdiCode(carrierCode, bLines.getExtendedData());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ writer.write(oneSoDto.getEtd() + ":" + lineNo + ":" + lineNo + ":::'");
|
|
|
writer.newLine();
|
|
|
count++;
|
|
|
|