|
|
@@ -340,7 +340,40 @@ public class EVisaTaskCheckController {
|
|
|
@ApiImplicitParam(name = "theLogPrimaryKeyId", value = "日志左侧所选的填报类型ID"),
|
|
|
@ApiImplicitParam(name = "firstId", value = "首件记录ID,列表批量上报时传任意一个即可")
|
|
|
})
|
|
|
- public R<IPage<FixedFlowVO>> queryFixedFlow(@RequestBody JSONObject json) {
|
|
|
+ public R<List<FixedFlowVO>> queryFixedFlow(@RequestBody JSONObject json) {
|
|
|
+ ExecutionTime executionTime = new ExecutionTime();
|
|
|
+ List<FixedFlowVO> flowList = this.fixedFlowService.getFixedFlowList(json.getLong("contractId"), json.getLong("projectId"));
|
|
|
+ //获取对应表格的所有电签配置
|
|
|
+ String tableOwner = json.getString("tableOwner");
|
|
|
+ if (StringUtils.isBlank(tableOwner)) {
|
|
|
+ tableOwner = json.getString("classifyType"); //1 施工方 2监理 3 业主
|
|
|
+ }
|
|
|
+ Long contractId=0L;
|
|
|
+ if(json.getLong("contractIdRelation")!=null){
|
|
|
+ contractId=json.getLong("contractIdRelation");
|
|
|
+ }else {
|
|
|
+ contractId=json.getLong("contractId");
|
|
|
+ }
|
|
|
+ //查询当前节点的PDF
|
|
|
+ InformationQuery node = informationQueryService.getOne(new LambdaQueryWrapper<InformationQuery>()
|
|
|
+ .eq(InformationQuery::getWbsId, json.getString("nodeId"))
|
|
|
+ .eq(InformationQuery::getContractId, contractId)
|
|
|
+ .eq(InformationQuery::getClassify, tableOwner).last("ORDER BY id DESC limit 1"));
|
|
|
+
|
|
|
+ if (node == null || StringUtils.isBlank(node.getPdfUrl())) {
|
|
|
+ return R.fail(300, "当前节点还未生成PDF,不能上报");
|
|
|
+ }
|
|
|
+ List<JSONObject> jsonList = this.queryTableEVisaConfig(json, node.getPdfUrl());
|
|
|
+
|
|
|
+ if (jsonList == null || jsonList.size() == 0) {
|
|
|
+ return R.fail(300, "未找到符合电签配置的相关流程,请重新保存再上报");
|
|
|
+ }
|
|
|
+
|
|
|
+ executionTime.info("d第一阶段结束");
|
|
|
+ return R.data(flowList);
|
|
|
+ }
|
|
|
+
|
|
|
+ public R<IPage<FixedFlowVO>> queryFixedFlowOld(@RequestBody JSONObject json) {
|
|
|
//获取所有流程
|
|
|
ExecutionTime executionTime = new ExecutionTime();
|
|
|
FixedFlowVO vo = new FixedFlowVO();
|