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());