responseSerialNo(int) 적용

master
mjkhan21 9 months ago
parent 46945a08b6
commit ac3c5c1c01

@ -140,7 +140,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB01.B01RespDetail resp = resps.get(i); LntrisB01.B01RespDetail resp = resps.get(i);
resp.setB01Id(b01Id); resp.setB01Id(b01Id);
resp.setB01Sn(Integer.toString(i + 1)); resp.setB01Sn(LntrisB01.responseSerialNo(i + 1));
} }
return insertB01Resps(params().set("resps", resps)); return insertB01Resps(params().set("resps", resps));
@ -284,7 +284,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB02.B02RespDetail resp = resps.get(i); LntrisB02.B02RespDetail resp = resps.get(i);
resp.setB02Id(b02Id); resp.setB02Id(b02Id);
resp.setB02Sn(Integer.toString(i + 1)); resp.setB02Sn(LntrisB02.responseSerialNo(i + 1));
} }
return insertB02Resps(params().set("resps", resps)); return insertB02Resps(params().set("resps", resps));
@ -427,7 +427,7 @@ public interface LntrisB01_03Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB03.B03RespDetail resp = resps.get(i); LntrisB03.B03RespDetail resp = resps.get(i);
resp.setB03Id(b03Id); resp.setB03Id(b03Id);
resp.setB03Sn(Integer.toString(i + 1)); resp.setB03Sn(LntrisB03.responseSerialNo(i + 1));
} }
return insertB03Resps(params().set("resps", resps)); return insertB03Resps(params().set("resps", resps));

@ -140,7 +140,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB04.B04RespDetail resp = resps.get(i); LntrisB04.B04RespDetail resp = resps.get(i);
resp.setB04Id(b04Id); resp.setB04Id(b04Id);
resp.setB04Sn(Integer.toString(i + 1)); resp.setB04Sn(LntrisB04.responseSerialNo(i + 1));
} }
return insertB04Resps(params().set("resps", resps)); return insertB04Resps(params().set("resps", resps));
@ -261,7 +261,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB05.B05RespDetail resp = resps.get(i); LntrisB05.B05RespDetail resp = resps.get(i);
resp.setB05Id(b05Id); resp.setB05Id(b05Id);
resp.setB05Sn(Integer.toString(i + 1)); resp.setB05Sn(LntrisB05.responseSerialNo(i + 1));
} }
return insertB05Resps(params().set("resps", resps)); return insertB05Resps(params().set("resps", resps));
@ -382,7 +382,7 @@ public interface LntrisB04_06Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB06.B06RespDetail resp = resps.get(i); LntrisB06.B06RespDetail resp = resps.get(i);
resp.setB06Id(b06Id); resp.setB06Id(b06Id);
resp.setB06Sn(Integer.toString(i + 1)); resp.setB06Sn(LntrisB06.responseSerialNo(i + 1));
} }
return insertB06Resps(params().set("resps", resps)); return insertB06Resps(params().set("resps", resps));

@ -139,7 +139,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB07.B07RespDetail resp = resps.get(i); LntrisB07.B07RespDetail resp = resps.get(i);
resp.setB07Id(b07Id); resp.setB07Id(b07Id);
resp.setB07Sn(Integer.toString(i + 1)); resp.setB07Sn(LntrisB07.responseSerialNo(i + 1));
} }
return insertB07Resps(params().set("resps", resps)); return insertB07Resps(params().set("resps", resps));
@ -260,7 +260,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB08.B08RespDetail resp = resps.get(i); LntrisB08.B08RespDetail resp = resps.get(i);
resp.setB08Id(b08Id); resp.setB08Id(b08Id);
resp.setB08Sn(Integer.toString(i + 1)); resp.setB08Sn(LntrisB08.responseSerialNo(i + 1));
} }
return insertB08Resps(params().set("resps", resps)); return insertB08Resps(params().set("resps", resps));
@ -403,7 +403,7 @@ public interface LntrisB07_09Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB09.B09RespDetail resp = resps.get(i); LntrisB09.B09RespDetail resp = resps.get(i);
resp.setB09Id(b09Id); resp.setB09Id(b09Id);
resp.setB09Sn(Integer.toString(i + 1)); resp.setB09Sn(LntrisB09.responseSerialNo(i + 1));
} }
return insertB09Resps(params().set("resps", resps)); return insertB09Resps(params().set("resps", resps));

@ -142,7 +142,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB10.B10RespDetail resp = resps.get(i); LntrisB10.B10RespDetail resp = resps.get(i);
resp.setB10Id(b10Id); resp.setB10Id(b10Id);
resp.setB10Sn(Integer.toString(i + 1)); resp.setB10Sn(LntrisB10.responseSerialNo(i + 1));
} }
return insertB10Resps(params() return insertB10Resps(params()
@ -269,7 +269,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB11.B11RespDetail resp = resps.get(i); LntrisB11.B11RespDetail resp = resps.get(i);
resp.setB11Id(b11Id); resp.setB11Id(b11Id);
resp.setB11Sn(Integer.toString(start + i + 1)); resp.setB11Sn(LntrisB11.responseSerialNo(start + i + 1));
} }
return insertB11Resps(params().set("resps", resps)); return insertB11Resps(params().set("resps", resps));
@ -388,7 +388,7 @@ public interface LntrisB10_12Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB12.B12RespDetail resp = resps.get(i); LntrisB12.B12RespDetail resp = resps.get(i);
resp.setB12Id(b12Id); resp.setB12Id(b12Id);
resp.setB12Sn(Integer.toString(i + 1)); resp.setB12Sn(LntrisB12.responseSerialNo(i + 1));
} }
return insertB12Resps(params().set("resps", resps)); return insertB12Resps(params().set("resps", resps));

@ -120,7 +120,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB13.B13RespDetail resp = resps.get(i); LntrisB13.B13RespDetail resp = resps.get(i);
resp.setB13Id(b13Id); resp.setB13Id(b13Id);
resp.setB13Sn(Integer.toString(start + i + 1)); resp.setB13Sn(LntrisB13.responseSerialNo(start + i + 1));
} }
return insertB13Resps(params().set("resps", resps)); return insertB13Resps(params().set("resps", resps));
@ -237,7 +237,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
if (isEmpty(b14Id)) return 0; if (isEmpty(b14Id)) return 0;
resp.setB14Id(b14Id); resp.setB14Id(b14Id);
resp.setB14Sn("1"); resp.setB14Sn(LntrisB14.responseSerialNo(1));
return insertB14Resps(params().set("resp", resp)); return insertB14Resps(params().set("resp", resp));
} }
@ -360,7 +360,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB15.B15RespDetail resp = resps.get(i); LntrisB15.B15RespDetail resp = resps.get(i);
resp.setB15Id(b15Id); resp.setB15Id(b15Id);
resp.setB15Sn(Integer.toString(start + i + 1)); resp.setB15Sn(LntrisB15.responseSerialNo(start + i + 1));
} }
return insertB15Resps(params().set("resps", resps)); return insertB15Resps(params().set("resps", resps));
@ -479,7 +479,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
for (int i = 0; i < resps.size(); ++i) { for (int i = 0; i < resps.size(); ++i) {
LntrisB16.B16RespDetail resp = resps.get(i); LntrisB16.B16RespDetail resp = resps.get(i);
resp.setB16Id(b16Id); resp.setB16Id(b16Id);
resp.setB16Sn(Integer.toString(i + 1)); resp.setB16Sn(LntrisB16.responseSerialNo(i + 1));
} }
return insertB16Resps(params().set("resps", resps)); return insertB16Resps(params().set("resps", resps));

@ -70,7 +70,7 @@ public class LntrisBServiceTest extends TestSupport {
for (int i = 0; i < 3; ++i) { for (int i = 0; i < 3; ++i) {
LntrisB01.B01RespDetail resp = new LntrisB01.B01RespDetail(); LntrisB01.B01RespDetail resp = new LntrisB01.B01RespDetail();
resp.setLvyNo("231102"); resp.setLvyNo("231102");
resp.setItmSn(Integer.toString(i + 1)); resp.setItmSn(LntrisB01.responseSerialNo(i + 1));
b01.getTargetMessage().getBody().getResVo1().add(resp); b01.getTargetMessage().getBody().getResVo1().add(resp);
} }
@ -331,7 +331,7 @@ public class LntrisBServiceTest extends TestSupport {
for (int i = 0; i < 3; ++i) { for (int i = 0; i < 3; ++i) {
LntrisB04.B04RespDetail resp = new LntrisB04.B04RespDetail(); LntrisB04.B04RespDetail resp = new LntrisB04.B04RespDetail();
resp.setLvyKey("231102"); resp.setLvyKey("231102");
resp.setSn(Integer.toString(i + 1)); resp.setSn(LntrisB04.responseSerialNo(i + 1));
b04.getTargetMessage().getBody().getResVo1().add(resp); b04.getTargetMessage().getBody().getResVo1().add(resp);
} }

Loading…
Cancel
Save