Commit 52ecd47a authored by xuzhang's avatar xuzhang

[feat][DOC]迁移类缺失问题修改/DEX4.1升级补丁

parent 1a5fc527
...@@ -159,6 +159,10 @@ ...@@ -159,6 +159,10 @@
<artifactId>itext-asian</artifactId> <artifactId>itext-asian</artifactId>
<version>5.2.0</version> <version>5.2.0</version>
</dependency> </dependency>
<dependency>
<groupId>com.yonde.dex</groupId>
<artifactId>dex-wfc-common</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -89,13 +89,13 @@ public class ExtAutoTaskController { ...@@ -89,13 +89,13 @@ public class ExtAutoTaskController {
public ApiResult updatePdf(@PathVariable Long id) { public ApiResult updatePdf(@PathVariable Long id) {
DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(id); DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(id);
//重新生成设计图册签名 //重新生成设计图册签名
autoTaskService.generateQHTechDoc(String.valueOf(id), null); autoTaskService.generateQHTechDoc(id, null);
if (Constants.OUTDATED_NOTIFY.equals(documentVO.getSubTypeName())) { if (Constants.OUTDATED_NOTIFY.equals(documentVO.getSubTypeName())) {
//特殊处理过时文件通知单 //特殊处理过时文件通知单
autoTaskService.generateOutdatedDocNotify(documentVO); autoTaskService.generateOutdatedDocNotify(documentVO);
} else { } else {
//重新生成单据签名 //重新生成单据签名
autoTaskService.generateDocWordSign(String.valueOf(id), null, "二"); autoTaskService.generateDocWordSign(id, null, "二");
} }
return ApiResult.ok("更新成功!"); return ApiResult.ok("更新成功!");
} }
...@@ -167,13 +167,13 @@ public class ExtAutoTaskController { ...@@ -167,13 +167,13 @@ public class ExtAutoTaskController {
@ApiOperation(value = "生成NCR审查单word", notes = "生成NCR审查单word", httpMethod = "POST") @ApiOperation(value = "生成NCR审查单word", notes = "生成NCR审查单word", httpMethod = "POST")
@PostMapping(value = "/generateNcrReviewWord") @PostMapping(value = "/generateNcrReviewWord")
public void generateNcrReviewWord(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext) { public void generateNcrReviewWord(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext) {
autoTaskService.generateNcrReviewWord(documentId, wfTaskContext); autoTaskService.generateNcrReviewWord(documentId, wfTaskContext);
} }
@ApiOperation(value = "生成word签字", notes = "生成word签字", httpMethod = "POST") @ApiOperation(value = "生成word签字", notes = "生成word签字", httpMethod = "POST")
@PostMapping(value = "/generateDocWordSign") @PostMapping(value = "/generateDocWordSign")
public void generateDocWordSign(@RequestParam("documentId") String documentId, public void generateDocWordSign(@RequestParam("documentId") Long documentId,
@RequestBody Map<String, Object> wfTaskContext, @RequestBody Map<String, Object> wfTaskContext,
@RequestParam("fileName") String fileName) { @RequestParam("fileName") String fileName) {
autoTaskService.generateDocWordSign(documentId, wfTaskContext, fileName); autoTaskService.generateDocWordSign(documentId, wfTaskContext, fileName);
...@@ -181,7 +181,7 @@ public class ExtAutoTaskController { ...@@ -181,7 +181,7 @@ public class ExtAutoTaskController {
@ApiOperation(value = "内部接口-保存内部接口信息的总体室、审核签审信息值", notes = "内部接口-保存内部接口信息的总体室、审核签审信息值", httpMethod = "POST") @ApiOperation(value = "内部接口-保存内部接口信息的总体室、审核签审信息值", notes = "内部接口-保存内部接口信息的总体室、审核签审信息值", httpMethod = "POST")
@PostMapping(value = "/savedInterfaceWf") @PostMapping(value = "/savedInterfaceWf")
public void savedInterfaceWf(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext) { public void savedInterfaceWf(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext) {
autoTaskService.savedInterfaceWf(documentId, wfTaskContext); autoTaskService.savedInterfaceWf(documentId, wfTaskContext);
} }
...@@ -199,7 +199,7 @@ public class ExtAutoTaskController { ...@@ -199,7 +199,7 @@ public class ExtAutoTaskController {
@ApiOperation(value = "自动任务-生成QH技术文件签审页", notes = "自动任务-生成QH技术文件签审页", httpMethod = "POST") @ApiOperation(value = "自动任务-生成QH技术文件签审页", notes = "自动任务-生成QH技术文件签审页", httpMethod = "POST")
@PostMapping(value = "/generateQHTechDoc") @PostMapping(value = "/generateQHTechDoc")
public void generateQHTechDoc(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext) { public void generateQHTechDoc(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext) {
autoTaskService.generateQHTechDoc(documentId, wfTaskContext); autoTaskService.generateQHTechDoc(documentId, wfTaskContext);
} }
...@@ -219,13 +219,13 @@ public class ExtAutoTaskController { ...@@ -219,13 +219,13 @@ public class ExtAutoTaskController {
@ApiOperation(value = "申请内容 签名", notes = "申请内容 签名", httpMethod = "POST") @ApiOperation(value = "申请内容 签名", notes = "申请内容 签名", httpMethod = "POST")
@PostMapping(value = "/autoApplicantSign") @PostMapping(value = "/autoApplicantSign")
public void autoApplicantSign(@RequestParam("applicantId") String applicantId, @RequestBody Map<String, Object> wfTaskContext) { public void autoApplicantSign(@RequestParam("applicantId") Long applicantId, @RequestBody Map<String, Object> wfTaskContext) {
autoTaskService.autoApplicantSign(applicantId, wfTaskContext); autoTaskService.autoApplicantSign(applicantId, wfTaskContext);
} }
@ApiOperation(value = "接口单签名", notes = "接口单签名", httpMethod = "POST") @ApiOperation(value = "接口单签名", notes = "接口单签名", httpMethod = "POST")
@PostMapping(value = "/autoInterFaceSign") @PostMapping(value = "/autoInterFaceSign")
public void autoInterFaceSign(@RequestParam("extInterfaceId") String extInterfaceId, @RequestBody Map<String, Object> wfTaskContext) { public void autoInterFaceSign(@RequestParam("extInterfaceId") Long extInterfaceId, @RequestBody Map<String, Object> wfTaskContext) {
autoTaskService.autoInterFaceSign(extInterfaceId, wfTaskContext); autoTaskService.autoInterFaceSign(extInterfaceId, wfTaskContext);
} }
......
...@@ -69,11 +69,9 @@ public class DocTransactionEvent { ...@@ -69,11 +69,9 @@ public class DocTransactionEvent {
private void refreshInContractAmount(Long contractId) { private void refreshInContractAmount(Long contractId) {
//已到款 //已到款
//待拨付 //待拨付
//todo feign添加 extIncomeContractService.calculateIncome(contractId);
// extIncomeContractService.calculateIncome(contractId);
//XXX年到款 //XXX年到款
//todo feign添加 extIncomeContractService.reCalculIncomeById(contractId);
// extIncomeContractService.reCalculIncomeById(contractId);
} }
/** /**
...@@ -85,7 +83,6 @@ public class DocTransactionEvent { ...@@ -85,7 +83,6 @@ public class DocTransactionEvent {
//已付金额 //已付金额
//未付金额 //未付金额
//付款比例 //付款比例
//todo feign添加 extSpendingContractService.calculateSpending(contractId);
// extSpendingContractService.calculateSpending(contractId);
} }
} }
...@@ -4,16 +4,20 @@ import cn.hutool.core.io.FileUtil; ...@@ -4,16 +4,20 @@ import cn.hutool.core.io.FileUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.yonde.dcs.core.constants.Constants; import com.yonde.dcs.core.constants.Constants;
import com.yonde.dcs.core.constants.SignConstants;
import com.yonde.dcs.core.service.ExtDocService; import com.yonde.dcs.core.service.ExtDocService;
import com.yonde.dcs.core.util.DateUtils; import com.yonde.dcs.core.util.DateUtils;
import com.yonde.dcs.core.util.WorkFlowUtil; import com.yonde.dcs.core.util.WorkFlowUtil;
import com.yonde.dcs.core.word.ImportWordService; import com.yonde.dcs.core.word.ImportWordService;
import com.yonde.dcs.document.common.entity.vo.DxDocumentVO; import com.yonde.dcs.document.common.entity.vo.DxDocumentVO;
import com.yonde.dex.wfc.common.vo.DxWfActivityVO;
import com.yonde.dex.wfc.common.vo.DxWfProcessInfoVO; import com.yonde.dex.wfc.common.vo.DxWfProcessInfoVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
...@@ -71,12 +75,12 @@ public class OutdatedDocNotifyUtils { ...@@ -71,12 +75,12 @@ public class OutdatedDocNotifyUtils {
//页数 //页数
jsonObject.put("page", pages); jsonObject.put("page", pages);
//todo 获取参与者 //todo 获取参与者
// List<WfTaskDefinitionVO> activities = wfProcessInfoVO.getActivityInfo(); List<DxWfActivityVO> activities = wfProcessInfoVO.getActivityInfo();
// if (!CollectionUtils.isEmpty(activities)) { if (!CollectionUtils.isEmpty(activities)) {
// //写入签名数据(总体室) //写入签名数据(总体室)
// jsonObject.put("bmfzr_photo", workFlowUtil.getSignImage(activities, SignConstants.ZTSSignTaskList)); jsonObject.put("bmfzr_photo", workFlowUtil.getSignImage(activities, SignConstants.ZTSSignTaskList));
// jsonObject.put("bmfzr_date", workFlowUtil.getEndDate(activities, SignConstants.ZTSSignTaskList)); jsonObject.put("bmfzr_date", workFlowUtil.getEndDate(activities, SignConstants.ZTSSignTaskList));
// } }
//模板名称 //模板名称
importWordService.getWordAllTable(jsonObject, path + file + ".docx", outFilePath + "outFile.docx"); importWordService.getWordAllTable(jsonObject, path + file + ".docx", outFilePath + "outFile.docx");
return jsonObject; return jsonObject;
......
...@@ -97,7 +97,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -97,7 +97,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
/** /**
* 生成NCR审查单word * 生成NCR审查单word
*/ */
void generateNcrReviewWord(String documentId, Map<String, Object> wfTaskContext); void generateNcrReviewWord(Long documentId, Map<String, Object> wfTaskContext);
/** /**
* 生成word签字 * 生成word签字
...@@ -106,12 +106,12 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -106,12 +106,12 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
* @param wfTaskContext * @param wfTaskContext
* @param fileName 同室审核完生成签名附件为(附件1),签审流程走完后生成签名附件为(附件2),没有是为""。 * @param fileName 同室审核完生成签名附件为(附件1),签审流程走完后生成签名附件为(附件2),没有是为""。
*/ */
void generateDocWordSign(String documentId, Map<String, Object> wfTaskContext, String fileName); void generateDocWordSign(Long documentId, Map<String, Object> wfTaskContext, String fileName);
/** /**
* 内部接口-保存内部接口信息的总体室、审核签审信息值 * 内部接口-保存内部接口信息的总体室、审核签审信息值
*/ */
void savedInterfaceWf(String documentId, Map<String, Object> wfTaskContext); void savedInterfaceWf(Long documentId, Map<String, Object> wfTaskContext);
/** /**
...@@ -127,7 +127,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -127,7 +127,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
/** /**
* 自动任务-生成QH技术文件签审页 * 自动任务-生成QH技术文件签审页
*/ */
void generateQHTechDoc(String documentId, Map<String, Object> wfTaskContext); void generateQHTechDoc(Long documentId, Map<String, Object> wfTaskContext);
/** /**
* 结束流程实例 * 结束流程实例
...@@ -157,7 +157,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -157,7 +157,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
* @param wfTaskContext * @param wfTaskContext
*/ */
@SneakyThrows @SneakyThrows
void autoApplicantSign(String applicantId, Map<String, Object> wfTaskContext); void autoApplicantSign(Long applicantId, Map<String, Object> wfTaskContext);
/** /**
* 接口单签名 * 接口单签名
...@@ -165,7 +165,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign { ...@@ -165,7 +165,7 @@ public interface ExtAutoTaskService extends ExtAutoTaskServiceFeign {
* @param extInterfaceId * @param extInterfaceId
* @param wfTaskContext * @param wfTaskContext
*/ */
void autoInterFaceSign(String extInterfaceId, Map<String, Object> wfTaskContext); void autoInterFaceSign(Long extInterfaceId, Map<String, Object> wfTaskContext);
/** /**
* 签审对象 关联的接口单 状态置为已终止 (签审对象的终止流程) * 签审对象 关联的接口单 状态置为已终止 (签审对象的终止流程)
......
...@@ -777,8 +777,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -777,8 +777,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
* @param wfTaskContext * @param wfTaskContext
*/ */
@Override @Override
public void generateNcrReviewWord(String documentId, Map<String, Object> wfTaskContext) { public void generateNcrReviewWord(Long documentId, Map<String, Object> wfTaskContext) {
DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(Long.valueOf(documentId)); DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(documentId);
try { try {
String templatePath = Constants.MTEMPLATE_ABSOLUTE_PATH; String templatePath = Constants.MTEMPLATE_ABSOLUTE_PATH;
String templateName = "NCRReview.docx"; String templateName = "NCRReview.docx";
...@@ -883,9 +883,9 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -883,9 +883,9 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
} }
@Override @Override
public void generateDocWordSign(String documentId, Map<String, Object> wfTaskContext, String fileName) { public void generateDocWordSign(Long documentId, Map<String, Object> wfTaskContext, String fileName) {
//深度查询展开ObjLink //深度查询展开ObjLink
DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(Long.valueOf(documentId)); DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(documentId);
log.info("自动任务======生成word签名开始"); log.info("自动任务======生成word签名开始");
// TODO: 2024/7/31 4.1返回对象不匹对 WfProcessInstVO // TODO: 2024/7/31 4.1返回对象不匹对 WfProcessInstVO
// WfProcessInstVO wfProcessInstVO = workFlowUtil.getWfProcessInst(documentVO); // WfProcessInstVO wfProcessInstVO = workFlowUtil.getWfProcessInst(documentVO);
...@@ -931,8 +931,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -931,8 +931,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
* @param wfTaskContext * @param wfTaskContext
*/ */
@Override @Override
public void savedInterfaceWf(String documentId, Map<String, Object> wfTaskContext) { public void savedInterfaceWf(Long documentId, Map<String, Object> wfTaskContext) {
DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(Long.valueOf(documentId)); DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(documentId);
DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context"); DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context");
String processId = context.getProcessId(); String processId = context.getProcessId();
// TODO: 2024/7/31 4.1此方法不存在 getProcessInstDetailById(processId) // TODO: 2024/7/31 4.1此方法不存在 getProcessInstDetailById(processId)
...@@ -1058,8 +1058,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -1058,8 +1058,8 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
* 自动任务-生成QH技术文件签审页 * 自动任务-生成QH技术文件签审页
*/ */
@Override @Override
public void generateQHTechDoc(String documentId, Map<String, Object> wfTaskContext) { public void generateQHTechDoc(Long documentId, Map<String, Object> wfTaskContext) {
DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(Long.valueOf(documentId)); DxDocumentVO documentVO = extDocUtil.findDocObjFileLinks(documentId);
if ((Constants.TECHNICAL_FILE.equals(documentVO.getDxDocumentExpand().getOneLevCategory()))) { if ((Constants.TECHNICAL_FILE.equals(documentVO.getDxDocumentExpand().getOneLevCategory()))) {
//TODO: 2024/7/31 4.1 不存在这个方法getWfProcessInst //TODO: 2024/7/31 4.1 不存在这个方法getWfProcessInst
// DxWfProcessVO wfProcessInstVO = workFlowUtil.getWfProcessInst(documentVO); // DxWfProcessVO wfProcessInstVO = workFlowUtil.getWfProcessInst(documentVO);
...@@ -1214,7 +1214,7 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -1214,7 +1214,7 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
*/ */
@SneakyThrows @SneakyThrows
@Override @Override
public void autoApplicantSign(String applicantId, Map<String, Object> wfTaskContext) { public void autoApplicantSign(Long applicantId, Map<String, Object> wfTaskContext) {
DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context"); DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context");
SearchQueryCondition queryCondition = SearchUtil.buildQueryWithOpenAttr("id", SearchItem.Operator.EQ, applicantId, "objFileLinks.target"); SearchQueryCondition queryCondition = SearchUtil.buildQueryWithOpenAttr("id", SearchItem.Operator.EQ, applicantId, "objFileLinks.target");
DxPageImpl<ExtApplicantVO> recursion = extApplicantService.findRecursion(queryCondition); DxPageImpl<ExtApplicantVO> recursion = extApplicantService.findRecursion(queryCondition);
...@@ -1378,7 +1378,7 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService { ...@@ -1378,7 +1378,7 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
*/ */
@SneakyThrows @SneakyThrows
@Override @Override
public void autoInterFaceSign(String extInterfaceId, Map<String, Object> wfTaskContext) { public void autoInterFaceSign(Long extInterfaceId, Map<String, Object> wfTaskContext) {
//TODO //TODO
// DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context"); // DxWfTaskContext context = (DxWfTaskContext) wfTaskContext.get("context");
// SearchQueryCondition queryCondition = SearchUtil.buildQueryWithOpenAttr("id", SearchItem.Operator.EQ, extInterfaceId, "objFileLinks.target"); // SearchQueryCondition queryCondition = SearchUtil.buildQueryWithOpenAttr("id", SearchItem.Operator.EQ, extInterfaceId, "objFileLinks.target");
......
...@@ -2,17 +2,22 @@ package com.yonde.dcs.core.util; ...@@ -2,17 +2,22 @@ package com.yonde.dcs.core.util;
import com.yonde.dcs.core.constants.SignConstants;
import com.yonde.dcs.document.common.entity.vo.DxDocumentVO; import com.yonde.dcs.document.common.entity.vo.DxDocumentVO;
import com.yonde.dex.user.common.vo.DxUserInfoVO; import com.yonde.dex.user.common.vo.DxUserInfoVO;
import com.yonde.dex.user.feign.DxUserInfoFeign; import com.yonde.dex.user.feign.DxUserInfoFeign;
import com.yonde.dex.wfc.common.vo.DxWfProcessTaskVO; import com.yonde.dex.wfc.common.enums.TaskStateEnum;
import com.yonde.dex.wfc.common.vo.*;
import com.yonde.dex.wfc.feign.api.WfcProcessFeign; import com.yonde.dex.wfc.feign.api.WfcProcessFeign;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.List; import java.text.SimpleDateFormat;
import java.util.Map; import java.util.*;
import java.util.stream.Collectors;
/** /**
* @program: inet-pdm-service * @program: inet-pdm-service
...@@ -34,12 +39,12 @@ public class WorkFlowUtil { ...@@ -34,12 +39,12 @@ public class WorkFlowUtil {
* @param iterationVO * @param iterationVO
* @return * @return
*/ */
// TODO: 2024/8/1 DxIterationVO不存在 //TODO
// public WfProcessInstVO getWfProcessInst(DxIterationVO iterationVO) { // public DxWfProcessVO getWfProcessInst(DxIterationVO iterationVO) {
// DxWfProcessSearchVO wfProcessInstSearchVO = new DxWfProcessSearchVO(); // DxWfProcessSearchVO wfProcessInstSearchVO = new DxWfProcessSearchVO();
// wfProcessInstSearchVO.setPboClass(iterationVO.getClass().getName()); // wfProcessInstSearchVO.setPboClass(iterationVO.getClass().getName());
// wfProcessInstSearchVO.setPboId(iterationVO.getVersionId()); // wfProcessInstSearchVO.setPboId(iterationVO.getVersionId());
// Page<WfProcessInstVO> wfProcessInstVOPage = this.instanceService.getProcessList(wfProcessInstSearchVO, 1, 10); // Page<DxWfProcessVO> wfProcessInstVOPage = this.instanceService.getProcessList(wfProcessInstSearchVO, 1, 10);
// if (!CollectionUtils.isEmpty(wfProcessInstVOPage.getContent())) { // if (!CollectionUtils.isEmpty(wfProcessInstVOPage.getContent())) {
// return wfProcessInstVOPage.getContent().get(0); // return wfProcessInstVOPage.getContent().get(0);
// } // }
...@@ -52,12 +57,12 @@ public class WorkFlowUtil { ...@@ -52,12 +57,12 @@ public class WorkFlowUtil {
* @param doc * @param doc
* @return * @return
*/ */
// TODO: 2024/8/1 getProcessInstList方法不存在 //TODO
// public WfProcessInstVO getWfProcessInst(DxDocumentVO doc) { // public DxWfProcessVO getWfProcessInst(DxDocumentVO doc) {
// WfProcessInstSearchVO wfProcessInstSearchVO = new WfProcessInstSearchVO(); // WfProcessInstSearchVO wfProcessInstSearchVO = new WfProcessInstSearchVO();
// wfProcessInstSearchVO.setPboClass(DxDocumentVO.class.getName()); // wfProcessInstSearchVO.setPboClass(DxDocumentVO.class.getName());
// wfProcessInstSearchVO.setPboId(doc.getVersionId()); // wfProcessInstSearchVO.setPboId(doc.getVersionId());
// Page<WfProcessInstVO> wfProcessInstVOPage = this.instanceService.getProcessInstList(wfProcessInstSearchVO, 1, 10); // Page<DxWfProcessVO> wfProcessInstVOPage = this.instanceService.getProcessInstList(wfProcessInstSearchVO, 1, 10);
// if (!CollectionUtils.isEmpty(wfProcessInstVOPage.getContent())) { // if (!CollectionUtils.isEmpty(wfProcessInstVOPage.getContent())) {
// return wfProcessInstVOPage.getContent().get(0); // return wfProcessInstVOPage.getContent().get(0);
// } // }
...@@ -69,17 +74,17 @@ public class WorkFlowUtil { ...@@ -69,17 +74,17 @@ public class WorkFlowUtil {
* *
* @param doc * @param doc
*/ */
// TODO: 2024/8/1 getProcessInstList方法不存在 //TODO
public Map<String, List<DxWfProcessTaskVO>> getWfInfo(DxDocumentVO doc) { public Map<String, List<DxWfProcessTaskVO>> getWfInfo(DxDocumentVO doc) {
// WfProcessInstVO wfProcessInstVO = getWfProcessInst(doc); // DxWfProcessVO wfProcessInstVO = getWfProcessInst(doc);
// if (!ObjectUtils.isEmpty(wfProcessInstVO)) { // if (!ObjectUtils.isEmpty(wfProcessInstVO)) {
// WfProcessInfoVO wfProcessInfo = this.instanceService.getProcessInstSimpleDetailById(wfProcessInstVO.getId()); // DxWfProcessInfoVO wfProcessInfo = this.instanceService.getProcessInstSimpleDetailById(wfProcessInstVO.getId());
// List<WfProcessTaskVO> historyInfoList = wfProcessInfo.getHistoryInfo(); // List<DxWfProcessTaskVO> historyInfoList = wfProcessInfo.getHistoryInfo();
// //
// List<String> checkResult = Arrays.asList("提交", "通过"); // List<String> checkResult = Arrays.asList("提交", "通过");
// Map<String, List<WfProcessTaskVO>> wfHistoryMap = historyInfoList.stream().filter(p -> TaskStateEnum.COMPLETE.name().equals(p.getState()) && checkResult.contains(p.getResult())) // Map<String, List<DxWfProcessTaskVO>> wfHistoryMap = historyInfoList.stream().filter(p -> TaskStateEnum.COMPLETE.name().equals(p.getState()) && checkResult.contains(p.getResult()))
// .sorted(Comparator.comparing(WfProcessTaskVO::getEndTime).reversed()) // .sorted(Comparator.comparing(DxWfProcessTaskVO::getEndTime).reversed())
// .collect(Collectors.groupingBy(WfProcessTaskVO::getName)); // .collect(Collectors.groupingBy(DxWfProcessTaskVO::getName));
// //
// return wfHistoryMap; // return wfHistoryMap;
// } // }
...@@ -125,34 +130,32 @@ public class WorkFlowUtil { ...@@ -125,34 +130,32 @@ public class WorkFlowUtil {
* @param activityName * @param activityName
* @return * @return
*/ */
// TODO: 2024/8/1 WfTaskDefinitionVO类不存在 public String getSignImage(List<DxWfActivityVO> activities, List<String> activityName) {
// public String getSignImage(List<WfTaskDefinitionVO> activities, List<String> activityName) { for (DxWfActivityVO wf : activities) {
// for (WfTaskDefinitionVO wf : activities) { if (activityName.contains(wf.getTaskName())) {
// if (activityName.contains(wf.getTaskName())) { return getActivityUserName(wf);
// return getActivityUserName(wf); }
// } }
// } return " ";
// return " "; }
// }
/** /**
* 获取用户名称及用户id * 获取用户名称及用户id
*/ */
// TODO: 2024/8/1 WfTaskDefinitionVO类不存在 public String getActivityUserName(DxWfActivityVO activity) {
// public String getActivityUserName(WfTaskDefinitionVO activity) { String str = " ";
// String str = " "; List<DxWfProcessTaskVO> taskList = activity.getTaskList();
// List<WfProcessTaskVO> taskList = activity.getTaskList(); for (DxWfProcessTaskVO wf : taskList) {
// for (WfProcessTaskVO wf : taskList) { if (wf.getState().equals(TaskStateEnum.COMPLETE.name()) && (SignConstants.WfResultList.contains(wf.getResult()))) {
// if (wf.getState().equals(TaskStateEnum.COMPLETE.name()) && (SignConstants.WfResultList.contains(wf.getResult()))) { //获取用户名称和id
// //获取用户名称和id String userName = wf.getAssigneeName();
// String userName = wf.getAssigneeName(); String userId = wf.getAssignee();
// String userId = wf.getAssignee(); DxUserInfoVO userVO = (DxUserInfoVO) userService.get(Long.parseLong(userId));
// UserVO userVO = userService.get(Long.parseLong(userId)); str = userVO.getUserAccount() + ".png";
// str = userVO.getUserAccount() + ".png"; }
// } }
// } return str;
// return str; }
// }
/** /**
* 获取某个环节结束时间 * 获取某个环节结束时间
...@@ -161,15 +164,14 @@ public class WorkFlowUtil { ...@@ -161,15 +164,14 @@ public class WorkFlowUtil {
* @param activityName * @param activityName
* @return * @return
*/ */
// TODO: 2024/8/1 WfTaskDefinitionVO类不存在 public String getEndDate(List<DxWfActivityVO> activities, List<String> activityName) {
// public String getEndDate(List<WfTaskDefinitionVO> activities, List<String> activityName) { for (DxWfActivityVO wf : activities) {
// for (WfTaskDefinitionVO wf : activities) { if (activityName.contains(wf.getTaskName())) {
// if (activityName.contains(wf.getTaskName())) { return Optional.ofNullable(getActiveEndDate(wf)).orElse("");
// return Optional.ofNullable(getActiveEndDate(wf)).orElse(""); }
// } }
// } return " ";
// return " "; }
// }
/** /**
* 修改后的处理获取日期 * 修改后的处理获取日期
...@@ -177,18 +179,17 @@ public class WorkFlowUtil { ...@@ -177,18 +179,17 @@ public class WorkFlowUtil {
* @param activity * @param activity
* @return * @return
*/ */
// TODO: 2024/8/1 WfTaskDefinitionVO类不存在 private String getActiveEndDate(DxWfActivityVO activity) {
// private String getActiveEndDate(WfTaskDefinitionVO activity) { List<DxWfProcessTaskVO> taskList = activity.getTaskList();
// List<WfProcessTaskVO> taskList = activity.getTaskList(); String date = "";
// String date = ""; SimpleDateFormat dateFm = new SimpleDateFormat("yyyy-MM-dd");
// SimpleDateFormat dateFm = new SimpleDateFormat("yyyy-MM-dd"); if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(taskList)) {
// if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(taskList)) { for (DxWfProcessTaskVO wf : taskList) {
// for (WfProcessTaskVO wf : taskList) { if (wf.getState().equals(TaskStateEnum.COMPLETE.name()) && (SignConstants.WfResultList.contains(wf.getResult()))) {
// if (wf.getState().equals(TaskStateEnum.COMPLETE.name()) && (SignConstants.WfResultList.contains(wf.getResult()))) { return dateFm.format(wf.getEndTime()).replace(".", "-");
// return dateFm.format(wf.getEndTime()).replace(".", "-"); }
// } }
// } }
// } return date;
// return date; }
// }
} }
...@@ -24,8 +24,8 @@ import java.util.Map; ...@@ -24,8 +24,8 @@ import java.util.Map;
@Api(tags = "ExtAutoTask-FEIGN") @Api(tags = "ExtAutoTask-FEIGN")
@FeignClient(value = "${dcs.feign.DCS-DOC}", path = "/task") @FeignClient(value = "${dcs.feign.DCS-DOC}", path = "/task")
public interface ExtAutoTaskServiceFeign { public interface ExtAutoTaskServiceFeign {
@ApiOperation(value = "客户化文档修改状态", notes = "客户化文档修改状态", httpMethod = "PUT") @ApiOperation(value = "客户化文档修改状态", notes = "客户化文档修改状态", httpMethod = "POST")
@PutMapping(value = "/extChangeDocState") @PostMapping(value = "/extChangeDocState")
void extChangeDocState(@RequestBody DxDocumentVO documentVO, @RequestParam(name = "state") String state); void extChangeDocState(@RequestBody DxDocumentVO documentVO, @RequestParam(name = "state") String state);
@ApiOperation(value = "给选择的提资方人员发放通知", notes = "给选择的提资方人员发放通知", httpMethod = "POST") @ApiOperation(value = "给选择的提资方人员发放通知", notes = "给选择的提资方人员发放通知", httpMethod = "POST")
...@@ -71,15 +71,15 @@ public interface ExtAutoTaskServiceFeign { ...@@ -71,15 +71,15 @@ public interface ExtAutoTaskServiceFeign {
@ApiOperation(value = "生成NCR审查单word", notes = "生成NCR审查单word", httpMethod = "POST") @ApiOperation(value = "生成NCR审查单word", notes = "生成NCR审查单word", httpMethod = "POST")
@PostMapping(value = "/generateNcrReviewWord") @PostMapping(value = "/generateNcrReviewWord")
void generateNcrReviewWord(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext); void generateNcrReviewWord(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext);
@ApiOperation(value = "生成word签字", notes = "生成word签字", httpMethod = "POST") @ApiOperation(value = "生成word签字", notes = "生成word签字", httpMethod = "POST")
@PostMapping(value = "/generateDocWordSign") @PostMapping(value = "/generateDocWordSign")
void generateDocWordSign(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext, @RequestParam("fileName") String fileName); void generateDocWordSign(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext, @RequestParam("fileName") String fileName);
@ApiOperation(value = "内部接口-保存内部接口信息的总体室、审核签审信息值", notes = "内部接口-保存内部接口信息的总体室、审核签审信息值", httpMethod = "POST") @ApiOperation(value = "内部接口-保存内部接口信息的总体室、审核签审信息值", notes = "内部接口-保存内部接口信息的总体室、审核签审信息值", httpMethod = "POST")
@PostMapping(value = "/savedInterfaceWf") @PostMapping(value = "/savedInterfaceWf")
void savedInterfaceWf(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext); void savedInterfaceWf(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext);
@ApiOperation(value = "自动任务-编制节点后生成word方法", notes = "自动任务-编制节点后生成word方法", httpMethod = "POST") @ApiOperation(value = "自动任务-编制节点后生成word方法", notes = "自动任务-编制节点后生成word方法", httpMethod = "POST")
@PostMapping(value = "/generateWordByAutoMethod") @PostMapping(value = "/generateWordByAutoMethod")
...@@ -91,7 +91,7 @@ public interface ExtAutoTaskServiceFeign { ...@@ -91,7 +91,7 @@ public interface ExtAutoTaskServiceFeign {
@ApiOperation(value = "自动任务-生成QH技术文件签审页", notes = "自动任务-生成QH技术文件签审页", httpMethod = "POST") @ApiOperation(value = "自动任务-生成QH技术文件签审页", notes = "自动任务-生成QH技术文件签审页", httpMethod = "POST")
@PostMapping(value = "/generateQHTechDoc") @PostMapping(value = "/generateQHTechDoc")
void generateQHTechDoc(@RequestParam("documentId") String documentId, @RequestBody Map<String, Object> wfTaskContext); void generateQHTechDoc(@RequestParam("documentId") Long documentId, @RequestBody Map<String, Object> wfTaskContext);
//endProcess //endProcess
...@@ -105,11 +105,11 @@ public interface ExtAutoTaskServiceFeign { ...@@ -105,11 +105,11 @@ public interface ExtAutoTaskServiceFeign {
@ApiOperation(value = "申请内容 签名", notes = "申请内容 签名", httpMethod = "POST") @ApiOperation(value = "申请内容 签名", notes = "申请内容 签名", httpMethod = "POST")
@PostMapping(value = "/autoApplicantSign") @PostMapping(value = "/autoApplicantSign")
void autoApplicantSign(@RequestParam("applicantId") String applicantId, @RequestBody Map<String, Object> wfTaskContext); void autoApplicantSign(@RequestParam("applicantId") Long applicantId, @RequestBody Map<String, Object> wfTaskContext);
@ApiOperation(value = "接口单签名", notes = "接口单签名", httpMethod = "POST") @ApiOperation(value = "接口单签名", notes = "接口单签名", httpMethod = "POST")
@PostMapping(value = "/autoInterFaceSign") @PostMapping(value = "/autoInterFaceSign")
void autoInterFaceSign(@RequestParam("extInterfaceId") String extInterfaceId, @RequestBody Map<String, Object> wfTaskContext); void autoInterFaceSign(@RequestParam("extInterfaceId") Long extInterfaceId, @RequestBody Map<String, Object> wfTaskContext);
@ApiOperation(value = "签审对象的终止流程", notes = "签审对象的终止流程", httpMethod = "POST") @ApiOperation(value = "签审对象的终止流程", notes = "签审对象的终止流程", httpMethod = "POST")
@PostMapping(value = "/autoInterfaceEnd") @PostMapping(value = "/autoInterfaceEnd")
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.yonde.dcs</groupId> <groupId>com.yonde.dcs</groupId>
<artifactId>dcs-integration-dependences</artifactId> <artifactId>dcs-integration-dependences</artifactId>
<version>4.1-RELEASE</version> <version>4.1-20240809-RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging> <packaging>pom</packaging>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment