From da365568e25956655f7157e28c7e3ae462f2484a 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, 28 Jun 2023 16:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A5=A8=E6=8D=AE=E5=AE=89?= =?UTF-8?q?=E6=8E=AA=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TicketMatterGroupServiceImpl.java | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 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 9a5dec6..e4fec21 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 @@ -6,9 +6,7 @@ import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.IdWorker; -import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; import com.google.common.collect.Lists; -import com.hnac.hzims.common.logs.utils.StringUtils; import com.hnac.hzims.ticket.constants.TicketConstants; import com.hnac.hzims.ticket.constants.WorkTicketConstants; import com.hnac.hzims.ticket.library.dto.TicketMatterGroupDTO; @@ -21,20 +19,17 @@ import com.hnac.hzims.ticket.standardTicket.service.OperationTicketService; import com.hnac.hzims.ticket.standardTicket.utils.OperationWordHelper; import com.hnac.hzims.ticket.standardTicket.vo.StandardTicketInfoVO; import com.hnac.hzims.ticket.twoTicket.constant.TicketConstant; -import com.hnac.hzims.ticket.twoTicket.entity.TicketInfoDanger; import com.hnac.hzims.ticket.twoTicket.entity.WorkTicketFinish; import com.hnac.hzims.ticket.twoTicket.service.TicketProcessService; import com.hnac.hzims.ticket.twoTicket.utils.WordHelper; import com.hnac.hzims.ticket.twoTicket.utils.WordMapUtils; import com.hnac.hzims.ticket.twoTicket.vo.operation.StandardTicketInfoVo; -import com.hnac.hzims.ticket.twoTicket.vo.process.WorkTicketVo; import com.hnac.hzims.ticket.utils.ExcelUtil; import com.hnac.hzims.ticket.utils.PdfUtils; import com.hnac.hzims.ticket.workTicket.entity.*; import com.hnac.hzims.ticket.workTicket.service.ITwoTicketMatterLibraryService; import com.hnac.hzims.ticket.workTicket.vo.*; import com.hnac.hzims.ticket.workTicket.wrapper.TwoTicketMatterLibraryWrapper; -import com.spire.pdf.PdfNewDocument; import lombok.RequiredArgsConstructor; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; @@ -47,8 +42,6 @@ import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.*; -import org.springblade.system.user.cache.UserCache; -import org.springblade.system.user.entity.User; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -521,11 +514,15 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl> collect = groupVO.getMatterLibraryListOne().stream().map(library -> { try { Map map = PdfUtils.objectToMap(library); map.put("status", " "); + map.put("index", index[0]); + index[0]++; return map; } catch (Exception e) { e.printStackTrace(); @@ -536,11 +533,16 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl> collect = groupVO.getMatterLibraryListTwo().stream().map(library -> { try { Map map = PdfUtils.objectToMap(library); map.put("status", " "); + map.put("index", index[0]); + index[0]++; return map; } catch (Exception e) { e.printStackTrace(); @@ -550,12 +552,16 @@ public class TicketMatterGroupServiceImpl extends BaseServiceImpl> collect = groupVO.getMatterLibraryListThree().stream().map(library -> { try { Map map = PdfUtils.objectToMap(library); map.put("status", " "); + map.put("index", index[0]); + index[0]++; return map; } catch (Exception e) { e.printStackTrace();