From 1e675c76d7cfb443f1f5ca5d64ab4b9a2905350f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B5=E9=A3=9E=E5=AE=87?= <2684146481@qq.com> Date: Wed, 19 Jul 2023 19:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A5=A8=E6=8D=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../library/service/impl/TicketMatterGroupServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java index 1bd60fc..2a1c3b6 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java @@ -117,7 +117,13 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl libraryEntityList = new ArrayList<>(); if (CollectionUtil.isNotEmpty(req.getMatterLibraryListOne())) { - libraryEntityList.addAll(req.getMatterLibraryListOne().stream().map(libraryDto -> BeanUtil.copy(libraryDto, TwoTicketMatterLibraryEntity.class)).collect(Collectors.toList())); + libraryEntityList.addAll(req.getMatterLibraryListOne().stream().map(libraryDto -> { + if ("8".equals(groupEntity.getTicketType())){ + libraryDto.setType("8"); + } + BeanUtil.copy(libraryDto, TwoTicketMatterLibraryEntity.class); + return libraryDto; + }).collect(Collectors.toList())); } if (CollectionUtil.isNotEmpty(req.getMatterLibraryListTwo())) { libraryEntityList.addAll(req.getMatterLibraryListTwo().stream().map(libraryDto -> BeanUtil.copy(libraryDto, TwoTicketMatterLibraryEntity.class)).collect(Collectors.toList())); @@ -160,7 +166,7 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl { TwoTicketMatterLibraryEntity libraryEntity = BeanUtil.copy(matterLibrary, TwoTicketMatterLibraryEntity.class); - if ("8" == req.getTicketType()) { + if ("8".equals(req.getTicketType())) { libraryEntity.setType("8"); } libraryEntity.setMatterGroup(groupEntity.getId());