Exchangepack, Pack DTO 및 테스트 반영
parent
6a0c6fa51c
commit
058211770c
@ -0,0 +1,188 @@
|
||||
package cokr.xit.adds.inf.mois.model;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.stream.XMLOutputFactory;
|
||||
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
|
||||
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||
|
||||
import cokr.xit.foundation.data.XML;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* description :
|
||||
*
|
||||
* packageName : cokr.xit.adds.inf.mois.model
|
||||
* fileName : ExchangeDtoTest
|
||||
* author : limju
|
||||
* date : 2024-03-14
|
||||
* ======================================================================
|
||||
* 변경일 변경자 변경 내용
|
||||
* ----------------------------------------------------------------------
|
||||
* 2024-03-14 limju 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@ExtendWith(SpringExtension.class)
|
||||
public class ExchangepackDtoTest {
|
||||
String exchangeXml = """
|
||||
<?xml version='1.1' encoding='UTF-8'?>
|
||||
<exchangepack filename="filename">
|
||||
<header>
|
||||
<server>
|
||||
<sendserverid>ADM131000040</sendserverid>
|
||||
<receiveserverid>hongkildong</receiveserverid>
|
||||
</server>
|
||||
<sender>
|
||||
<organ>
|
||||
<orgname orgcode="hongkildong">orgname-value</orgname>
|
||||
<deptname deptcode="deptcode">deptname-value</deptname>
|
||||
</organ>
|
||||
<sendkey>sendkey</sendkey>
|
||||
<username>username</username>
|
||||
</sender>
|
||||
<receiver>
|
||||
<organ>
|
||||
<orgname orgcode="hongkildong">orgname-value</orgname>
|
||||
<deptname deptcode="deptcode">deptname-value</deptname>
|
||||
</organ>
|
||||
</receiver>
|
||||
<sendersystemname>sendersystemname</sendersystemname>
|
||||
<doctype>doctype</doctype>
|
||||
<date>date</date>
|
||||
<administrativenum>administrativenum</administrativenum>
|
||||
<title>title</title>
|
||||
</header>
|
||||
<contents>
|
||||
<content content-role="contentRole" sub-role="content" content-transfer-encoding="base64" content-type="constentType" charset="utf8" modify="modified">content-value</content>
|
||||
</contents>
|
||||
</exchangepack>
|
||||
""";
|
||||
|
||||
@DisplayName("전자결재 exchangepack xml read 테스트")
|
||||
@Test
|
||||
public void exchangepackXmlReadTest() throws IOException {
|
||||
// JacksonXmlModule jacksonXmlModule = new JacksonXmlModule();
|
||||
// jacksonXmlModule.setDefaultUseWrapper(false);
|
||||
// //ObjectMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
// XmlMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
// xmlMapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
//
|
||||
// ExchangepackDto dto
|
||||
// = xmlMapper.readValue(exchangeXml, ExchangepackDto.class);
|
||||
//
|
||||
// assertNotNull(dto);
|
||||
//
|
||||
// xmlMapper.writeValue(System.out, dto);
|
||||
|
||||
XML xml = new XML();
|
||||
ExchangepackDto dto = xml.parse(exchangeXml, new TypeReference<ExchangepackDto>() {});
|
||||
log.info("dto: {}", dto);
|
||||
xml.write(System.out, dto, true);
|
||||
}
|
||||
|
||||
@DisplayName("전자결재 exchangepack xml write 테스트")
|
||||
@Test
|
||||
public void exchangepackXmlWriteTest() throws IOException {
|
||||
ExchangepackDto dto = getExchangepackDto();
|
||||
|
||||
JacksonXmlModule module = new JacksonXmlModule();
|
||||
module.setDefaultUseWrapper(true);
|
||||
XmlMapper mapper = new XmlMapper(module);
|
||||
|
||||
XMLOutputFactory factory = mapper.getFactory().getXMLOutputFactory();
|
||||
|
||||
String dtd = """
|
||||
<!DOCTYPE EXCHANGE SYSTEM "exchange.dtd">
|
||||
""";
|
||||
// FIXME: 파일명 생성
|
||||
try (FileOutputStream fos = new FileOutputStream("exchangepack.xml");) {
|
||||
XML xml = new XML();
|
||||
xml.write(fos, dto, true);
|
||||
fos.flush();
|
||||
|
||||
}catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static ExchangepackDto getExchangepackDto() {
|
||||
ExchangepackDto.Server server = ExchangepackDto.Server.builder()
|
||||
.sendserverid("ADM131000040")
|
||||
.receiveserverid("hongkildong")
|
||||
.build();
|
||||
|
||||
|
||||
|
||||
|
||||
ExchangepackDto.Orgname orgname = ExchangepackDto.Orgname.builder()
|
||||
//.orgid("ADM131000040")
|
||||
.orgcode("hongkildong")
|
||||
.value("orgname-value")
|
||||
.build();
|
||||
ExchangepackDto.Deptname deptname = ExchangepackDto.Deptname.builder()
|
||||
//.orgid("ADM131000040")
|
||||
.deptcode("deptcode")
|
||||
.value("deptname-value")
|
||||
.build();
|
||||
|
||||
ExchangepackDto.Organ organ = ExchangepackDto.Organ.builder()
|
||||
.orgname(orgname)
|
||||
.deptname(deptname)
|
||||
.build();
|
||||
|
||||
|
||||
ExchangepackDto.Sender sender = ExchangepackDto.Sender.builder()
|
||||
.organ(organ)
|
||||
.sendkey("sendkey")
|
||||
.username("username")
|
||||
.build();
|
||||
|
||||
ExchangepackDto.Receiver receiver = ExchangepackDto.Receiver.builder()
|
||||
.organ(organ)
|
||||
.build();
|
||||
|
||||
ExchangepackDto.Header header = ExchangepackDto.Header.builder()
|
||||
.server(server)
|
||||
.sender(sender)
|
||||
.receiver(receiver)
|
||||
.sendersystemname("sendersystemname")
|
||||
.exchangetype(null)
|
||||
.doctype("doctype")
|
||||
.date("date")
|
||||
.administrativenum("administrativenum")
|
||||
.title("title")
|
||||
//.addenda(null)
|
||||
.build();
|
||||
|
||||
ExchangepackDto.Content content = ExchangepackDto.Content.builder()
|
||||
.contentRole("contentRole")
|
||||
.contentType("constentType")
|
||||
.charset("utf8")
|
||||
.modify("modified")
|
||||
.value("content-value")
|
||||
.build();
|
||||
|
||||
ExchangepackDto exchangepackDto = ExchangepackDto.builder()
|
||||
.header(header)
|
||||
.contents(ExchangepackDto.Contents.builder()
|
||||
.content(List.of(content))
|
||||
.build())
|
||||
.filename("filename")
|
||||
.build();
|
||||
|
||||
|
||||
return exchangepackDto;
|
||||
}
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
package cokr.xit.adds.inf.mois.model;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.stream.XMLOutputFactory;
|
||||
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
|
||||
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||
|
||||
import cokr.xit.foundation.data.XML;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* description :
|
||||
*
|
||||
* packageName : cokr.xit.adds.inf.mois.model
|
||||
* fileName : ExchangeDtoTest
|
||||
* author : limju
|
||||
* date : 2024-03-14
|
||||
* ======================================================================
|
||||
* 변경일 변경자 변경 내용
|
||||
* ----------------------------------------------------------------------
|
||||
* 2024-03-14 limju 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@ExtendWith(SpringExtension.class)
|
||||
public class PackDtoTest {
|
||||
String packXml = """
|
||||
<?xml version='1.1' encoding='UTF-8'?>
|
||||
<pack filename="filename">
|
||||
<header>
|
||||
<type doc-type="docType"/>
|
||||
<date>2024-03-14</date>
|
||||
<sender>sender</sender>
|
||||
<receiver>receiver</receiver>
|
||||
<sender_userid>senderUserid</sender_userid>
|
||||
<receiver_userid>receiverUserid</receiver_userid>
|
||||
<sender_email>senderEmail</sender_email>
|
||||
<sender_orgname>senderOrgname</sender_orgname>
|
||||
<sender_systemname>senderSystemname</sender_systemname>
|
||||
<administrative_num>administrativeNum</administrative_num>
|
||||
</header>
|
||||
<contents>
|
||||
<content content-role="contentRole" content-type="constentType" charset="utf8">content-value</content>
|
||||
</contents>
|
||||
</pack>
|
||||
""";
|
||||
|
||||
@DisplayName("전자결재 pack xml read 테스트")
|
||||
@Test
|
||||
public void packXmlReadTest() throws IOException {
|
||||
// JacksonXmlModule jacksonXmlModule = new JacksonXmlModule();
|
||||
// jacksonXmlModule.setDefaultUseWrapper(false);
|
||||
// //ObjectMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
// XmlMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
// xmlMapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
//
|
||||
// PackDto dto
|
||||
// = xmlMapper.readValue(packXml, PackDto.class);
|
||||
//
|
||||
// assertNotNull(dto);
|
||||
//
|
||||
// xmlMapper.writeValue(System.out, dto);
|
||||
|
||||
XML xml = new XML();
|
||||
PackDto dto = xml.parse(packXml, new TypeReference<PackDto>() {});
|
||||
log.info("dto: {}", dto);
|
||||
xml.write(System.out, dto, true);
|
||||
}
|
||||
|
||||
@DisplayName("전자결재 pack xml write 테스트")
|
||||
@Test
|
||||
public void packXmlWriteTest() throws IOException {
|
||||
PackDto dto = getPackDto();
|
||||
|
||||
JacksonXmlModule module = new JacksonXmlModule();
|
||||
module.setDefaultUseWrapper(true);
|
||||
XmlMapper mapper = new XmlMapper(module);
|
||||
|
||||
XMLOutputFactory factory = mapper.getFactory().getXMLOutputFactory();
|
||||
|
||||
String dtd = """
|
||||
<!DOCTYPE EXCHANGE SYSTEM "exchange.dtd">
|
||||
""";
|
||||
// FIXME: 파일명 생성
|
||||
try (FileOutputStream fos = new FileOutputStream("pack.xml");) {
|
||||
XML xml = new XML();
|
||||
xml.write(fos, dto, true);
|
||||
fos.flush();
|
||||
|
||||
}catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static PackDto getPackDto() {
|
||||
|
||||
PackDto.Header header = PackDto.Header.builder()
|
||||
.type(PackDto.Type.builder()
|
||||
.docType("docType")
|
||||
.build())
|
||||
.date("2024-03-14")
|
||||
.sender("sender")
|
||||
.receiver("receiver")
|
||||
.senderUserid("senderUserid")
|
||||
.receiverUserid("receiverUserid")
|
||||
.senderEmail("senderEmail")
|
||||
.senderOrgname("senderOrgname")
|
||||
.senderSystemname("senderSystemname")
|
||||
.administrativeNum("administrativeNum")
|
||||
.build();
|
||||
|
||||
PackDto.Content content = PackDto.Content.builder()
|
||||
.contentRole("contentRole")
|
||||
.contentType("constentType")
|
||||
.charset("utf8")
|
||||
.value("content-value")
|
||||
.build();
|
||||
|
||||
PackDto packDto = PackDto.builder()
|
||||
.header(header)
|
||||
.contents(PackDto.Contents.builder()
|
||||
.content(List.of(content))
|
||||
.build())
|
||||
.filename("filename")
|
||||
.build();
|
||||
|
||||
|
||||
return packDto;
|
||||
}
|
||||
}
|
@ -1,138 +1,138 @@
|
||||
package cokr.xit.adds.inf.nims.model;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
|
||||
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||
import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* description :
|
||||
*
|
||||
* packageName : cokr.xit.adds.inf.nims.model
|
||||
* fileName : AarDtoTest
|
||||
* author : limju
|
||||
* date : 2024-03-26
|
||||
* ======================================================================
|
||||
* 변경일 변경자 변경 내용
|
||||
* ----------------------------------------------------------------------
|
||||
* 2024-03-26 limju 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@ExtendWith(SpringExtension.class)
|
||||
public class AarDtoTest {
|
||||
|
||||
@DisplayName("마약류폐기연계 xml read 테스트")
|
||||
@Test
|
||||
public void aarXmlReadTest() throws IOException {
|
||||
String fileName = "/src/test/resources/test_data/123456789AAR20240326120248_0001.XML";
|
||||
|
||||
JacksonXmlModule jacksonXmlModule = new JacksonXmlModule();
|
||||
jacksonXmlModule.setDefaultUseWrapper(false);
|
||||
XmlMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
xmlMapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
|
||||
Path cur = Paths.get(""); //현재 디렉토리 정보 '상대 경로' 형태로 담긴 인스턴스 생성
|
||||
String cdir;
|
||||
|
||||
if(cur.isAbsolute()) //절대 경로 일 경우.
|
||||
cdir=cur.toString();
|
||||
else
|
||||
cdir = cur.toAbsolutePath().toString();
|
||||
|
||||
Path path = Paths.get(cdir, fileName);
|
||||
Aar dto
|
||||
= xmlMapper.readValue(Files.readString(path), Aar.class);
|
||||
|
||||
assertNotNull(dto);
|
||||
|
||||
xmlMapper.writeValue(System.out, dto);
|
||||
}
|
||||
|
||||
@DisplayName("마약류폐기연계 xml write 테스트")
|
||||
@Test
|
||||
public void aarXmlWriteTest() throws IOException {
|
||||
Aar dto = getAar();
|
||||
|
||||
XmlMapper mapper = new XmlMapper();
|
||||
mapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
|
||||
mapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
|
||||
String xmlString = mapper.writeValueAsString(dto);
|
||||
xmlString = xmlString.replaceFirst("nims\">", "nims\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">");
|
||||
xmlString = xmlString.replaceFirst(" xmlns=\"\"", StringUtils.EMPTY);
|
||||
System.out.println(xmlString);
|
||||
|
||||
// FIXME: 파일명 생성
|
||||
// filename: BSSH_CD + RPT_SE_CD + YYYYMMDDHHMMSS + _ + 0001.XML
|
||||
try (FileWriter w = new FileWriter("aar_001.xml")) {
|
||||
w.write(xmlString);
|
||||
w.flush();
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private static Aar getAar() {
|
||||
Aar.Line line = Aar.Line.builder()
|
||||
.usrRptIdNo("123456789")
|
||||
.usrRptLnIdNo("123456789")
|
||||
.storgeNo("123456789")
|
||||
.mvmnTyCd("123456789")
|
||||
.prductCd("123456789")
|
||||
.build();
|
||||
Aar.Line line2 = Aar.Line.builder()
|
||||
.usrRptIdNo("123456789-1")
|
||||
.usrRptLnIdNo("123456789-1")
|
||||
.storgeNo("123456789-1")
|
||||
.mvmnTyCd("123456789-1")
|
||||
.prductCd("123456789-1")
|
||||
.build();
|
||||
|
||||
Aar.Lines lines = Aar.Lines.builder()
|
||||
.line(List.of(line, line2))
|
||||
.build();
|
||||
|
||||
Aar.AtchFiles atchFiles = Aar.AtchFiles.builder()
|
||||
.atchFileNm(List.of("file-1.txt","file-2.txt"))
|
||||
.build();
|
||||
|
||||
Aar.Header header = Aar.Header.builder()
|
||||
.hdrDe("20240326")
|
||||
.bsshCd("123456789")
|
||||
.lines(lines)
|
||||
.atchFileCo("2")
|
||||
.atchFiles(atchFiles)
|
||||
.build();
|
||||
|
||||
Aar.ReportSet reportSet = Aar.ReportSet.builder()
|
||||
.header(List.of(header))
|
||||
.build();
|
||||
|
||||
Aar dto = Aar.builder()
|
||||
.reportSet(reportSet)
|
||||
.build();
|
||||
return dto;
|
||||
}
|
||||
}
|
||||
// package cokr.xit.adds.inf.nims.model;
|
||||
//
|
||||
// import static org.junit.jupiter.api.Assertions.*;
|
||||
//
|
||||
// import java.io.FileWriter;
|
||||
// import java.io.IOException;
|
||||
// import java.nio.file.Files;
|
||||
// import java.nio.file.Path;
|
||||
// import java.nio.file.Paths;
|
||||
// import java.util.List;
|
||||
//
|
||||
// import org.apache.commons.lang3.StringUtils;
|
||||
// import org.junit.jupiter.api.DisplayName;
|
||||
// import org.junit.jupiter.api.Test;
|
||||
// import org.junit.jupiter.api.extension.ExtendWith;
|
||||
// import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
//
|
||||
// import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
// import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
|
||||
// import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||
// import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator;
|
||||
//
|
||||
// import lombok.extern.slf4j.Slf4j;
|
||||
//
|
||||
// /**
|
||||
// * <pre>
|
||||
// * description :
|
||||
// *
|
||||
// * packageName : cokr.xit.adds.inf.nims.model
|
||||
// * fileName : AarDtoTest
|
||||
// * author : limju
|
||||
// * date : 2024-03-26
|
||||
// * ======================================================================
|
||||
// * 변경일 변경자 변경 내용
|
||||
// * ----------------------------------------------------------------------
|
||||
// * 2024-03-26 limju 최초 생성
|
||||
// *
|
||||
// * </pre>
|
||||
// */
|
||||
// @Slf4j
|
||||
// @ExtendWith(SpringExtension.class)
|
||||
// public class AarDtoTest {
|
||||
//
|
||||
// @DisplayName("마약류폐기연계 xml read 테스트")
|
||||
// @Test
|
||||
// public void aarXmlReadTest() throws IOException {
|
||||
// String fileName = "/src/test/resources/test_data/123456789AAR20240326120248_0001.XML";
|
||||
//
|
||||
// JacksonXmlModule jacksonXmlModule = new JacksonXmlModule();
|
||||
// jacksonXmlModule.setDefaultUseWrapper(false);
|
||||
// XmlMapper xmlMapper = new XmlMapper(jacksonXmlModule);
|
||||
// xmlMapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
//
|
||||
// Path cur = Paths.get(""); //현재 디렉토리 정보 '상대 경로' 형태로 담긴 인스턴스 생성
|
||||
// String cdir;
|
||||
//
|
||||
// if(cur.isAbsolute()) //절대 경로 일 경우.
|
||||
// cdir=cur.toString();
|
||||
// else
|
||||
// cdir = cur.toAbsolutePath().toString();
|
||||
//
|
||||
// Path path = Paths.get(cdir, fileName);
|
||||
// Aar dto
|
||||
// = xmlMapper.readValue(Files.readString(path), Aar.class);
|
||||
//
|
||||
// assertNotNull(dto);
|
||||
//
|
||||
// xmlMapper.writeValue(System.out, dto);
|
||||
// }
|
||||
//
|
||||
// @DisplayName("마약류폐기연계 xml write 테스트")
|
||||
// @Test
|
||||
// public void aarXmlWriteTest() throws IOException {
|
||||
// Aar dto = getAar();
|
||||
//
|
||||
// XmlMapper mapper = new XmlMapper();
|
||||
// mapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
|
||||
// mapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
//
|
||||
// String xmlString = mapper.writeValueAsString(dto);
|
||||
// xmlString = xmlString.replaceFirst("nims\">", "nims\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">");
|
||||
// xmlString = xmlString.replaceFirst(" xmlns=\"\"", StringUtils.EMPTY);
|
||||
// System.out.println(xmlString);
|
||||
//
|
||||
// // FIXME: 파일명 생성
|
||||
// // filename: BSSH_CD + RPT_SE_CD + YYYYMMDDHHMMSS + _ + 0001.XML
|
||||
// try (FileWriter w = new FileWriter("aar_001.xml")) {
|
||||
// w.write(xmlString);
|
||||
// w.flush();
|
||||
//
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
//
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private static Aar getAar() {
|
||||
// Aar.Line line = Aar.Line.builder()
|
||||
// .usrRptIdNo("123456789")
|
||||
// .usrRptLnIdNo("123456789")
|
||||
// .storgeNo("123456789")
|
||||
// .mvmnTyCd("123456789")
|
||||
// .prductCd("123456789")
|
||||
// .build();
|
||||
// Aar.Line line2 = Aar.Line.builder()
|
||||
// .usrRptIdNo("123456789-1")
|
||||
// .usrRptLnIdNo("123456789-1")
|
||||
// .storgeNo("123456789-1")
|
||||
// .mvmnTyCd("123456789-1")
|
||||
// .prductCd("123456789-1")
|
||||
// .build();
|
||||
//
|
||||
// Aar.Lines lines = Aar.Lines.builder()
|
||||
// .line(List.of(line, line2))
|
||||
// .build();
|
||||
//
|
||||
// Aar.AtchFiles atchFiles = Aar.AtchFiles.builder()
|
||||
// .atchFileNm(List.of("file-1.txt","file-2.txt"))
|
||||
// .build();
|
||||
//
|
||||
// Aar.Header header = Aar.Header.builder()
|
||||
// .hdrDe("20240326")
|
||||
// .bsshCd("123456789")
|
||||
// .lines(lines)
|
||||
// .atchFileCo("2")
|
||||
// .atchFiles(atchFiles)
|
||||
// .build();
|
||||
//
|
||||
// Aar.ReportSet reportSet = Aar.ReportSet.builder()
|
||||
// .header(List.of(header))
|
||||
// .build();
|
||||
//
|
||||
// Aar dto = Aar.builder()
|
||||
// .reportSet(reportSet)
|
||||
// .build();
|
||||
// return dto;
|
||||
// }
|
||||
// }
|
||||
|
Loading…
Reference in New Issue