From ac3c5c1c012509429820a101b6947a3580a4c6af Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 4 Mar 2024 10:01:44 +0900 Subject: [PATCH] =?UTF-8?q?responseSerialNo(int)=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lntris/special/b/dao/LntrisB01_03Mapper.java | 6 +++--- .../lntris/special/b/dao/LntrisB04_06Mapper.java | 6 +++--- .../lntris/special/b/dao/LntrisB07_09Mapper.java | 6 +++--- .../lntris/special/b/dao/LntrisB10_12Mapper.java | 6 +++--- .../lntris/special/b/dao/LntrisB13_16Mapper.java | 8 ++++---- .../lntris/special/b/service/LntrisBServiceTest.java | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB01_03Mapper.java b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB01_03Mapper.java index e4dba50..160b836 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB01_03Mapper.java +++ b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB01_03Mapper.java @@ -140,7 +140,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB01.B01RespDetail resp = resps.get(i); resp.setB01Id(b01Id); - resp.setB01Sn(Integer.toString(i + 1)); + resp.setB01Sn(LntrisB01.responseSerialNo(i + 1)); } return insertB01Resps(params().set("resps", resps)); @@ -284,7 +284,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB02.B02RespDetail resp = resps.get(i); resp.setB02Id(b02Id); - resp.setB02Sn(Integer.toString(i + 1)); + resp.setB02Sn(LntrisB02.responseSerialNo(i + 1)); } return insertB02Resps(params().set("resps", resps)); @@ -427,7 +427,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB03.B03RespDetail resp = resps.get(i); resp.setB03Id(b03Id); - resp.setB03Sn(Integer.toString(i + 1)); + resp.setB03Sn(LntrisB03.responseSerialNo(i + 1)); } return insertB03Resps(params().set("resps", resps)); diff --git a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB04_06Mapper.java b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB04_06Mapper.java index a13ad81..ea672b1 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB04_06Mapper.java +++ b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB04_06Mapper.java @@ -140,7 +140,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB04.B04RespDetail resp = resps.get(i); resp.setB04Id(b04Id); - resp.setB04Sn(Integer.toString(i + 1)); + resp.setB04Sn(LntrisB04.responseSerialNo(i + 1)); } return insertB04Resps(params().set("resps", resps)); @@ -261,7 +261,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB05.B05RespDetail resp = resps.get(i); resp.setB05Id(b05Id); - resp.setB05Sn(Integer.toString(i + 1)); + resp.setB05Sn(LntrisB05.responseSerialNo(i + 1)); } return insertB05Resps(params().set("resps", resps)); @@ -382,7 +382,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB06.B06RespDetail resp = resps.get(i); resp.setB06Id(b06Id); - resp.setB06Sn(Integer.toString(i + 1)); + resp.setB06Sn(LntrisB06.responseSerialNo(i + 1)); } return insertB06Resps(params().set("resps", resps)); diff --git a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB07_09Mapper.java b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB07_09Mapper.java index e6320d1..e7df91a 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB07_09Mapper.java +++ b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB07_09Mapper.java @@ -139,7 +139,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB07.B07RespDetail resp = resps.get(i); resp.setB07Id(b07Id); - resp.setB07Sn(Integer.toString(i + 1)); + resp.setB07Sn(LntrisB07.responseSerialNo(i + 1)); } return insertB07Resps(params().set("resps", resps)); @@ -260,7 +260,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB08.B08RespDetail resp = resps.get(i); resp.setB08Id(b08Id); - resp.setB08Sn(Integer.toString(i + 1)); + resp.setB08Sn(LntrisB08.responseSerialNo(i + 1)); } return insertB08Resps(params().set("resps", resps)); @@ -403,7 +403,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB09.B09RespDetail resp = resps.get(i); resp.setB09Id(b09Id); - resp.setB09Sn(Integer.toString(i + 1)); + resp.setB09Sn(LntrisB09.responseSerialNo(i + 1)); } return insertB09Resps(params().set("resps", resps)); diff --git a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB10_12Mapper.java b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB10_12Mapper.java index d188226..b1f3fd3 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB10_12Mapper.java +++ b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB10_12Mapper.java @@ -142,7 +142,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB10.B10RespDetail resp = resps.get(i); resp.setB10Id(b10Id); - resp.setB10Sn(Integer.toString(i + 1)); + resp.setB10Sn(LntrisB10.responseSerialNo(i + 1)); } return insertB10Resps(params() @@ -269,7 +269,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB11.B11RespDetail resp = resps.get(i); resp.setB11Id(b11Id); - resp.setB11Sn(Integer.toString(start + i + 1)); + resp.setB11Sn(LntrisB11.responseSerialNo(start + i + 1)); } return insertB11Resps(params().set("resps", resps)); @@ -388,7 +388,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB12.B12RespDetail resp = resps.get(i); resp.setB12Id(b12Id); - resp.setB12Sn(Integer.toString(i + 1)); + resp.setB12Sn(LntrisB12.responseSerialNo(i + 1)); } return insertB12Resps(params().set("resps", resps)); diff --git a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB13_16Mapper.java b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB13_16Mapper.java index 5fded3c..e7e0d01 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB13_16Mapper.java +++ b/src/main/java/cokr/xit/interfaces/lntris/special/b/dao/LntrisB13_16Mapper.java @@ -120,7 +120,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB13.B13RespDetail resp = resps.get(i); resp.setB13Id(b13Id); - resp.setB13Sn(Integer.toString(start + i + 1)); + resp.setB13Sn(LntrisB13.responseSerialNo(start + i + 1)); } return insertB13Resps(params().set("resps", resps)); @@ -237,7 +237,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper { if (isEmpty(b14Id)) return 0; resp.setB14Id(b14Id); - resp.setB14Sn("1"); + resp.setB14Sn(LntrisB14.responseSerialNo(1)); return insertB14Resps(params().set("resp", resp)); } @@ -360,7 +360,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB15.B15RespDetail resp = resps.get(i); resp.setB15Id(b15Id); - resp.setB15Sn(Integer.toString(start + i + 1)); + resp.setB15Sn(LntrisB15.responseSerialNo(start + i + 1)); } return insertB15Resps(params().set("resps", resps)); @@ -479,7 +479,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper { for (int i = 0; i < resps.size(); ++i) { LntrisB16.B16RespDetail resp = resps.get(i); resp.setB16Id(b16Id); - resp.setB16Sn(Integer.toString(i + 1)); + resp.setB16Sn(LntrisB16.responseSerialNo(i + 1)); } return insertB16Resps(params().set("resps", resps)); diff --git a/src/test/java/cokr/xit/interfaces/lntris/special/b/service/LntrisBServiceTest.java b/src/test/java/cokr/xit/interfaces/lntris/special/b/service/LntrisBServiceTest.java index 7a393b2..0644eaf 100644 --- a/src/test/java/cokr/xit/interfaces/lntris/special/b/service/LntrisBServiceTest.java +++ b/src/test/java/cokr/xit/interfaces/lntris/special/b/service/LntrisBServiceTest.java @@ -70,7 +70,7 @@ public class LntrisBServiceTest extends TestSupport { for (int i = 0; i < 3; ++i) { LntrisB01.B01RespDetail resp = new LntrisB01.B01RespDetail(); resp.setLvyNo("231102"); - resp.setItmSn(Integer.toString(i + 1)); + resp.setItmSn(LntrisB01.responseSerialNo(i + 1)); b01.getTargetMessage().getBody().getResVo1().add(resp); } @@ -331,7 +331,7 @@ public class LntrisBServiceTest extends TestSupport { for (int i = 0; i < 3; ++i) { LntrisB04.B04RespDetail resp = new LntrisB04.B04RespDetail(); resp.setLvyKey("231102"); - resp.setSn(Integer.toString(i + 1)); + resp.setSn(LntrisB04.responseSerialNo(i + 1)); b04.getTargetMessage().getBody().getResVo1().add(resp); }