|
@@ -1,5 +1,6 @@
|
|
|
package com.example.xiaoshiweixinback.service;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -11,6 +12,7 @@ import com.example.xiaoshiweixinback.business.exception.BusinessException;
|
|
|
import com.example.xiaoshiweixinback.business.utils.BatchNoUtil;
|
|
|
import com.example.xiaoshiweixinback.business.utils.CacheUtil;
|
|
|
import com.example.xiaoshiweixinback.business.utils.LoginUtils;
|
|
|
+import com.example.xiaoshiweixinback.business.utils.StringUtils;
|
|
|
import com.example.xiaoshiweixinback.domain.*;
|
|
|
import com.example.xiaoshiweixinback.entity.dto.ticket.*;
|
|
|
import com.example.xiaoshiweixinback.entity.vo.*;
|
|
@@ -26,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -208,6 +211,12 @@ public class TicketService extends ServiceImpl<TicketMapper, Ticket> {
|
|
|
TicketFillIn ticketFillIn = ticketFillInService.getOne(fillInWrapper, false);
|
|
|
if (ticketFillIn != null) {
|
|
|
BeanUtils.copyProperties(ticketFillIn, ticketFillInVO);
|
|
|
+ String patentNoArray = ticketFillIn.getPatentNo();
|
|
|
+ if (patentNoArray != null && StringUtils.isNotEmpty(patentNoArray)) {
|
|
|
+ String[] stringArray = patentNoArray.split(",");
|
|
|
+ List<String> patentNos = new ArrayList<>(Arrays.asList(stringArray));
|
|
|
+ ticketFillInVO.setPatentNos(patentNos);
|
|
|
+ }
|
|
|
}
|
|
|
ticketVO.setTicketFillInVO(ticketFillInVO);
|
|
|
break;
|
|
@@ -217,6 +226,22 @@ public class TicketService extends ServiceImpl<TicketMapper, Ticket> {
|
|
|
rightsProtectionWrapper.eq(TicketRightsProtection::getTicketId, ticketId);
|
|
|
TicketRightsProtection ticketRightsProtection = ticketRightsProtectionService.getOne(rightsProtectionWrapper, false);
|
|
|
if (ticketRightsProtection != null) {
|
|
|
+ String rightProof = ticketRightsProtection.getRightProof();
|
|
|
+ String[] stringArray = rightProof.split(",");
|
|
|
+ List<String> proofGuids = new ArrayList<>(Arrays.asList(stringArray));
|
|
|
+ List<SystemFile> systemFiles = new ArrayList<>();
|
|
|
+ if (proofGuids.size() != 0) {
|
|
|
+ try {
|
|
|
+ String res = fileManagerService.getSystemFileFromFMS(proofGuids);
|
|
|
+ systemFiles = JSONObject.parseArray(res, SystemFile.class);
|
|
|
+ if (systemFiles == null) {
|
|
|
+ systemFiles = new ArrayList<>();
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ rightsProtectionVO.setProofGuids(proofGuids);
|
|
|
+ rightsProtectionVO.setProofFileList(systemFiles);
|
|
|
BeanUtils.copyProperties(ticketRightsProtection, rightsProtectionVO);
|
|
|
}
|
|
|
ticketVO.setTicketRightsProtectionVO(rightsProtectionVO);
|