|
|
|
@ -164,7 +164,7 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
|
|
|
|
|
Map<String, List<LntrisB14.B14RespDetail>> byB14Id = resps.stream().collect(Collectors.groupingBy(LntrisB14.B14RespDetail::getB14Id));
|
|
|
|
|
b14s.forEach(b14 -> {
|
|
|
|
|
List<LntrisB14.B14RespDetail> details = byB14Id.get(b14.getB14Id());
|
|
|
|
|
b14.getResponse().setResVo1(details.get(0));
|
|
|
|
|
b14.getResponse().setResVo1(details);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -229,13 +229,16 @@ public interface LntrisB13_16Mapper extends AbstractMapper {
|
|
|
|
|
*/
|
|
|
|
|
default int insertB14Resps(LntrisB14 b14) {
|
|
|
|
|
String b14Id = b14.getB14Id();
|
|
|
|
|
LntrisB14.B14RespDetail resp = b14.getResponse().getResVo1();
|
|
|
|
|
if (isEmpty(b14Id)) return 0;
|
|
|
|
|
List<LntrisB14.B14RespDetail> resps = b14.getResponse().getResVo1();
|
|
|
|
|
if (isEmpty(b14Id) || resps.isEmpty()) return 0;
|
|
|
|
|
|
|
|
|
|
resp.setB14Id(b14Id);
|
|
|
|
|
resp.setB14Sn("1");
|
|
|
|
|
for (int i = 0; i < resps.size(); ++i) {
|
|
|
|
|
LntrisB14.B14RespDetail resp = resps.get(i);
|
|
|
|
|
resp.setB14Id(b14Id);
|
|
|
|
|
resp.setB14Sn(Integer.toString(i + 1));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return insertB14Resps(params().set("resp", resp));
|
|
|
|
|
return insertB14Resps(params().set("resps", resps));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**주정차위반 과태료대장 상세 목록 조회 요청/응답을 등록한다.
|
|
|
|
|