Browse Source

修改票据模板

zhongwei
段飞宇 1 year ago
parent
commit
0a057db3be
  1. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/ITicketMatterGroupService.java
  2. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/ITicketMatterGroupService.java

@ -23,7 +23,7 @@ public interface ITicketMatterGroupService extends BaseService<TicketMatterGroup
String TWO_TYPE = "2"; String TWO_TYPE = "2";
String THREE_TYPE = "3"; String THREE_TYPE = "3";
String FOUR_TYPE = "4"; String FOUR_TYPE = "8";
/*** /***
* 分页查询 * 分页查询

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/library/service/impl/TicketMatterGroupServiceImpl.java

@ -98,7 +98,7 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl<TicketMatterGr
Map<String, List<TwoTicketMatterLibraryEntity>> libraryMap = libraryEntityList.stream() Map<String, List<TwoTicketMatterLibraryEntity>> libraryMap = libraryEntityList.stream()
.sorted(Comparator.comparing(TwoTicketMatterLibraryEntity::getType).thenComparing(TwoTicketMatterLibraryEntity::getSort)).collect(Collectors.groupingBy(TwoTicketMatterLibraryEntity::getType)); .sorted(Comparator.comparing(TwoTicketMatterLibraryEntity::getType).thenComparing(TwoTicketMatterLibraryEntity::getSort)).collect(Collectors.groupingBy(TwoTicketMatterLibraryEntity::getType));
libraryMap.forEach((type, list) -> { libraryMap.forEach((type, list) -> {
if (ONE_TYPE.equals(type)) { if (ONE_TYPE.equals(type) || FOUR_TYPE.equals(type)) {
groupVO.setMatterLibraryListOne(TwoTicketMatterLibraryWrapper.build().listVO(list)); groupVO.setMatterLibraryListOne(TwoTicketMatterLibraryWrapper.build().listVO(list));
} else if (TWO_TYPE.equals(type)) { } else if (TWO_TYPE.equals(type)) {
groupVO.setMatterLibraryListTwo(TwoTicketMatterLibraryWrapper.build().listVO(list)); groupVO.setMatterLibraryListTwo(TwoTicketMatterLibraryWrapper.build().listVO(list));

Loading…
Cancel
Save