|
@@ -15,6 +15,7 @@ import org.springblade.common.constant.CommonConstant;
|
|
import org.springblade.common.constant.EVisaConstant;
|
|
import org.springblade.common.constant.EVisaConstant;
|
|
import org.springblade.common.utils.CommonUtil;
|
|
import org.springblade.common.utils.CommonUtil;
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
|
|
+import org.springblade.common.utils.SystemUtils;
|
|
import org.springblade.core.launch.StartEventListener;
|
|
import org.springblade.core.launch.StartEventListener;
|
|
import org.springblade.core.oss.model.BladeFile;
|
|
import org.springblade.core.oss.model.BladeFile;
|
|
import org.springblade.core.tool.utils.DateUtil;
|
|
import org.springblade.core.tool.utils.DateUtil;
|
|
@@ -75,66 +76,83 @@ public class EVDataServiceImpl implements EVDataService {
|
|
public void signTaskBatch(TaskSignInfoVO taskApp) {
|
|
public void signTaskBatch(TaskSignInfoVO taskApp) {
|
|
//获取pdf 文件
|
|
//获取pdf 文件
|
|
this.getSignPdfInfo(taskApp);
|
|
this.getSignPdfInfo(taskApp);
|
|
|
|
+ this.addSignatureTaskBatch(taskApp);
|
|
if (taskApp.getSigState() != 1) {
|
|
if (taskApp.getSigState() != 1) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- String sql = "SELECT a.* from u_task_parallel a where a.process_instance_id=(SELECT process_instance_id from u_task_parallel b where b.parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "') and is_deleted=0 and initiative<>2 ";
|
|
|
|
|
|
+
|
|
String fileUrl = CommonUtil.replaceOssUrl(taskApp.getSignPdfUrl());
|
|
String fileUrl = CommonUtil.replaceOssUrl(taskApp.getSignPdfUrl());
|
|
- List<String> eVisaConfigList = PDFUtils.getPdfSignIds(fileUrl,taskApp);
|
|
|
|
- String ids = String.join(",", eVisaConfigList);
|
|
|
|
- List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
|
|
- if(maps!=null && maps.size()>=1) {
|
|
|
|
- if (eVisaConfigList == null || eVisaConfigList.size() == 0) {
|
|
|
|
- //没有电签配置,默认当前任务为不签字审批,返回成功
|
|
|
|
- taskApp.setSigState(2);
|
|
|
|
- taskApp.setSignSmg("pdf未获取到关键字Id");
|
|
|
|
|
|
+ List<String> eVisaConfigList = PDFUtils.getPdfSignIds(fileUrl, taskApp);
|
|
|
|
+ String ids = String.join(",", eVisaConfigList);
|
|
|
|
+
|
|
|
|
+ if (eVisaConfigList == null || eVisaConfigList.size() == 0) {
|
|
|
|
+ //没有电签配置,默认当前任务为不签字审批,返回成功
|
|
|
|
+ taskApp.setSigState(2);
|
|
|
|
+ taskApp.setSignSmg("pdf未获取到关键字Id");
|
|
|
|
+ SignBackPdfInfo(taskApp);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (taskApp.getRemarkType().equals("1")) { //安心签
|
|
|
|
+ //添加电签策略
|
|
|
|
+ List<SealStrategyVO> strategyListByAXQ = getStrategyListByAXQ(taskApp, ids);
|
|
|
|
+ if(strategyListByAXQ==null || Func.isEmpty(strategyListByAXQ) || strategyListByAXQ.size()==0){
|
|
|
|
+ List<Map<String, Object>> mapList = jdbcTemplate.queryForList("SELECT * from m_textdict_info where type=6 and is_deleted=0 and id in(" + ids + ")");
|
|
|
|
+ if(mapList!=null && mapList.size()>0){
|
|
|
|
+ taskApp.setSigState(2);
|
|
|
|
+ taskApp.setSignSmg("未获取到签字证书信息");
|
|
|
|
+ }else{
|
|
|
|
+ if(taskApp.getSigType()==1){
|
|
|
|
+ taskApp.setSigState(2);
|
|
|
|
+ taskApp.setSignSmg("未获取到签字证书信息");
|
|
|
|
+ }else if(taskApp.getSigType()==2){
|
|
|
|
+ taskApp.setSigState(1);
|
|
|
|
+ taskApp.setSignSmg("签字成功");
|
|
|
|
+ taskApp.setLastFilePdfUrl(taskApp.getSignPdfUrl());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
SignBackPdfInfo(taskApp);
|
|
SignBackPdfInfo(taskApp);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //调用签字逻辑
|
|
|
|
+ signTaskBatchByAXQZ(strategyListByAXQ, taskApp);
|
|
|
|
+ if (taskApp.getSigState() != 1) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (taskApp.getRemarkType().equals("1")) { //安心签
|
|
|
|
- //添加电签策略
|
|
|
|
- List<SealStrategyVO> strategyListByAXQ = getStrategyListByAXQ(taskApp, ids);
|
|
|
|
- if (taskApp.getSigState() != 1) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- //调用签字逻辑
|
|
|
|
- signTaskBatchByAXQZ(strategyListByAXQ, taskApp);
|
|
|
|
- if (taskApp.getSigState() != 1) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- // 回归处理
|
|
|
|
- SignBackPdfInfo(taskApp);
|
|
|
|
- if (taskApp.getSigState() != 1) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- } else if (taskApp.getRemarkType().equals("2")) { //东方中讯
|
|
|
|
- //添加电签策略
|
|
|
|
- List<Map<String, Object>> strategyListByDFZX = getStrategyListByDFZX(taskApp, ids);
|
|
|
|
- //调用签字逻辑
|
|
|
|
- signTaskBatchByDFZX(strategyListByDFZX, fileUrl);
|
|
|
|
- // 回归处理
|
|
|
|
|
|
+ // 回归处理
|
|
|
|
+ SignBackPdfInfo(taskApp);
|
|
|
|
+ if (taskApp.getSigState() != 1) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ } else if (taskApp.getRemarkType().equals("2")) { //东方中讯
|
|
|
|
+ //添加电签策略
|
|
|
|
+ List<Map<String, Object>> strategyListByDFZX = getStrategyListByDFZX(taskApp, ids);
|
|
|
|
+ //调用签字逻辑
|
|
|
|
+ String s = signTaskBatchByDFZX(strategyListByDFZX, fileUrl);
|
|
|
|
+ if (s.contains("sucess")) {
|
|
|
|
+ taskApp.setLastFilePdfUrl(s.split("@@@@")[1]);
|
|
|
|
+ taskApp.setSigState(1);
|
|
|
|
+ taskApp.setSignSmg("电签成功");
|
|
|
|
+ } else {
|
|
|
|
+ taskApp.setSigState(2);
|
|
|
|
+ taskApp.setSignSmg("电签中失败");
|
|
SignBackPdfInfo(taskApp);
|
|
SignBackPdfInfo(taskApp);
|
|
}
|
|
}
|
|
|
|
+ // 回归处理
|
|
|
|
+ SignBackPdfInfo(taskApp);
|
|
}
|
|
}
|
|
- // 判断签章信息
|
|
|
|
- maps = jdbcTemplate.queryForList(sql);
|
|
|
|
- if (maps == null || maps.size() == 0) {
|
|
|
|
- taskApp.setSigType(2);
|
|
|
|
- if (taskApp.getRemarkType().equals("1")) { //安心签
|
|
|
|
- //添加电签策略
|
|
|
|
- List<SealStrategyVO> strategyListByAXQ = getStrategyListByAXQ(taskApp, ids);
|
|
|
|
- //调用签字逻辑
|
|
|
|
- signTaskBatchByAXQZ(strategyListByAXQ, taskApp);
|
|
|
|
- // 回归处理
|
|
|
|
- SignBackPdfInfo(taskApp);
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- } else if (taskApp.getRemarkType().equals("2")) { //东方中讯
|
|
|
|
- //添加电签策略
|
|
|
|
- List<Map<String, Object>> strategyListByDFZX = getStrategyListByDFZX(taskApp, ids);
|
|
|
|
- //调用签字逻辑
|
|
|
|
- signTaskBatchByDFZX(strategyListByDFZX, taskApp.getLastFilePdfUrl());
|
|
|
|
- // 回归处理
|
|
|
|
- SignBackPdfInfo(taskApp);
|
|
|
|
|
|
+
|
|
|
|
+ public void addSignatureTaskBatch(TaskSignInfoVO taskApp) {
|
|
|
|
+ if(taskApp.getSigType()==1){
|
|
|
|
+ String sql = "SELECT * from u_task_batch where JSON_EXTRACT(json_data, '$.taskId')="+taskApp.getTaskId()+" and sign_type=2";
|
|
|
|
+ List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
|
|
|
|
+ String id = SnowFlakeUtil.getId()+"";
|
|
|
|
+ if(maps==null || maps.size()==0){
|
|
|
|
+ String sql2 ="INSERT into u_task_batch(id,task_parallel_id,json_data,create_user,create_dept,create_time,update_user,update_time,status,is_deleted,nick_name,sign_format,sign_type)" +
|
|
|
|
+ "SELECT "+id+" as id,task_parallel_id,json_data,create_user,create_dept,create_time,update_user,update_time,status,is_deleted,nick_name,sign_format,2 as sign_type from u_task_batch where id="+taskApp.getId()+"";
|
|
|
|
+ jdbcTemplate.execute(sql2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -142,7 +160,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
// 获取pdf 文件
|
|
// 获取pdf 文件
|
|
@Transactional
|
|
@Transactional
|
|
public void SignBackPdfInfo(TaskSignInfoVO taskApp) {
|
|
public void SignBackPdfInfo(TaskSignInfoVO taskApp) {
|
|
- Integer totalCount= this.jdbcTemplate.queryForObject("select exe_count from u_task_parallel where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'",Integer.class);
|
|
|
|
|
|
+ Integer totalCount = this.jdbcTemplate.queryForObject("select exe_count from u_task_parallel where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'", Integer.class);
|
|
//上报类型: 1填报资料,2工程文件,3日志资料
|
|
//上报类型: 1填报资料,2工程文件,3日志资料
|
|
//档案:4档案数据 ,
|
|
//档案:4档案数据 ,
|
|
//计量: 5中间计量申请,6材料计量单 ,7开工预付款计量单, 8变更令
|
|
//计量: 5中间计量申请,6材料计量单 ,7开工预付款计量单, 8变更令
|
|
@@ -150,15 +168,15 @@ public class EVDataServiceImpl implements EVDataService {
|
|
//电签成功
|
|
//电签成功
|
|
if (taskApp.getSigState() == 1) { //签字成功
|
|
if (taskApp.getSigState() == 1) { //签字成功
|
|
String updateSql = "";
|
|
String updateSql = "";
|
|
- if(taskApp.getApprovalType() == 1 ){ //
|
|
|
|
|
|
+ if (taskApp.getApprovalType() == 1) { //
|
|
//
|
|
//
|
|
String sys_isonline = ParamCache.getValue(CommonConstant.SYS_ISONLINE);
|
|
String sys_isonline = ParamCache.getValue(CommonConstant.SYS_ISONLINE);
|
|
- String pdfPage = "";
|
|
|
|
|
|
+ String pdfPage = "0";
|
|
Long pdfSize = 0L;
|
|
Long pdfSize = 0L;
|
|
String nodePdfUrl = "";
|
|
String nodePdfUrl = "";
|
|
|
|
|
|
- List<Map<String, Object>> mapList = jdbcTemplate.queryForList("select *,domain_url as url from m_table_file where is_deleted = 0 and type in (10,11,12) and tab_id = (select wbs_id from u_information_query WHERE id = + "+taskApp.getFormDataId()+")");
|
|
|
|
- if(Func.isNotEmpty(mapList)&&mapList.size()>=1) {
|
|
|
|
|
|
+ List<Map<String, Object>> mapList = jdbcTemplate.queryForList("select *,domain_url as url from m_table_file where is_deleted = 0 and type in (10,11,12) and tab_id = (select wbs_id from u_information_query WHERE id = + " + taskApp.getFormDataId() + ")");
|
|
|
|
+ if (Func.isNotEmpty(mapList) && mapList.size() >= 1) {
|
|
String file_path = FileUtils.getSysLocalFileUrl();
|
|
String file_path = FileUtils.getSysLocalFileUrl();
|
|
List<String> datainfo = new ArrayList<>();
|
|
List<String> datainfo = new ArrayList<>();
|
|
datainfo.add(taskApp.getLastFilePdfUrl());
|
|
datainfo.add(taskApp.getLastFilePdfUrl());
|
|
@@ -172,7 +190,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
|
|
|
|
FileUtils.mergePdfPublicMethods(datainfo, listPdf);
|
|
FileUtils.mergePdfPublicMethods(datainfo, listPdf);
|
|
- if (sys_isonline.equals("20")) {
|
|
|
|
|
|
+ if("20".equals(sys_isonline) || SystemUtils.isWindows() || SystemUtils.isMacOs()){
|
|
BladeFile bladeFile = this.newIOSSClient.uploadFile(taskApp.getFormDataId() + ".pdf", listPdf);
|
|
BladeFile bladeFile = this.newIOSSClient.uploadFile(taskApp.getFormDataId() + ".pdf", listPdf);
|
|
if (bladeFile != null && Func.isNotEmpty(bladeFile.getLink())) {
|
|
if (bladeFile != null && Func.isNotEmpty(bladeFile.getLink())) {
|
|
nodePdfUrl = bladeFile.getLink();
|
|
nodePdfUrl = bladeFile.getLink();
|
|
@@ -181,7 +199,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
nodePdfUrl = FileUtils.getNetUrl(listPdf);
|
|
nodePdfUrl = FileUtils.getNetUrl(listPdf);
|
|
}
|
|
}
|
|
|
|
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
nodePdfUrl = taskApp.getLastFilePdfUrl();
|
|
nodePdfUrl = taskApp.getLastFilePdfUrl();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -190,23 +208,23 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
|
|
|
// 实验时
|
|
// 实验时
|
|
String pdfTrialUrlPosition = "";
|
|
String pdfTrialUrlPosition = "";
|
|
- if("2".equals(taskApp.getPdfDataType())){
|
|
|
|
|
|
+ if ("2".equals(taskApp.getPdfDataType())) {
|
|
String taskStatus = "";
|
|
String taskStatus = "";
|
|
- if(taskApp.getSigState()==1){
|
|
|
|
|
|
+ if (taskApp.getSigState() == 1) {
|
|
taskStatus = "待审批";
|
|
taskStatus = "待审批";
|
|
- } else if (taskApp.getSigState()==2) {
|
|
|
|
|
|
+ } else if (taskApp.getSigState() == 2) {
|
|
taskStatus = "已审批";
|
|
taskStatus = "已审批";
|
|
- } else if (taskApp.getSigState()==3) {
|
|
|
|
|
|
+ } else if (taskApp.getSigState() == 3) {
|
|
taskStatus = "已废除";
|
|
taskStatus = "已废除";
|
|
}
|
|
}
|
|
- String updTrial = "update u_trial_self_inspection_record set task_status="+taskStatus +",pdf_url='"+taskApp.getLastFilePdfUrl()+"' where id=(select b.trial_self_inspection_record_id from u_task b,u_task_parallel c where b.process_instance_id=c.process_instance_id and b.is_deleted=0 and c.is_deleted=0 and b.status in(1,2) and parallel_process_instance_id="+taskApp.getParallelProcessInstanceId()+")";
|
|
|
|
|
|
+ String updTrial = "update u_trial_self_inspection_record set task_status='" + taskStatus + "',pdf_url='" + taskApp.getLastFilePdfUrl() + "' where id=(select b.trial_self_inspection_record_id from u_task b,u_task_parallel c where b.process_instance_id=c.process_instance_id and b.is_deleted=0 and c.is_deleted=0 and b.status in(1,2) and parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "')";
|
|
jdbcTemplate.execute(updTrial);
|
|
jdbcTemplate.execute(updTrial);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 在资料填报工序-预览全部pdf时再拼接合并显示,当前只做储存(如果当前资料填报工序节点有其他多个试验记录pdf关联信息,那么合并存储,否则直接存储)
|
|
|
|
- */
|
|
|
|
|
|
+ * 在资料填报工序-预览全部pdf时再拼接合并显示,当前只做储存(如果当前资料填报工序节点有其他多个试验记录pdf关联信息,那么合并存储,否则直接存储)
|
|
|
|
+ */
|
|
|
|
|
|
- String redoe = " select * from u_trial_self_inspection_record where id=(select b.trial_self_inspection_record_id from u_task b,u_task_parallel c where b.process_instance_id=c.process_instance_id and b.is_deleted=0 and c.is_deleted=0 and b.status in(1,2) and parallel_process_instance_id="+taskApp.getParallelProcessInstanceId()+")";
|
|
|
|
|
|
+ String redoe = " select * from u_trial_self_inspection_record where id=(select b.trial_self_inspection_record_id from u_task b,u_task_parallel c where b.process_instance_id=c.process_instance_id and b.is_deleted=0 and c.is_deleted=0 and b.status in(1,2) and parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "')";
|
|
TrialSelfInspectionRecord record = jdbcTemplate.query(redoe, new BeanPropertyRowMapper<>(TrialSelfInspectionRecord.class)).stream().findAny().orElse(null);
|
|
TrialSelfInspectionRecord record = jdbcTemplate.query(redoe, new BeanPropertyRowMapper<>(TrialSelfInspectionRecord.class)).stream().findAny().orElse(null);
|
|
if (("已审批").equals(record.getTaskStatus()) && (new Integer(1)).equals(record.getDetectionResult()) && (new Integer(1)).equals(record.getDetectionCategory())) {
|
|
if (("已审批").equals(record.getTaskStatus()) && (new Integer(1)).equals(record.getDetectionResult()) && (new Integer(1)).equals(record.getDetectionCategory())) {
|
|
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(record.getProjectPosition())) {
|
|
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(record.getProjectPosition())) {
|
|
@@ -215,25 +233,25 @@ public class EVDataServiceImpl implements EVDataService {
|
|
List<Long> collect = jdbcTemplate.query(sqlNodeAll, new BeanPropertyRowMapper<>(InformationQuery.class)).stream().map(InformationQuery::getWbsId).collect(Collectors.toList());
|
|
List<Long> collect = jdbcTemplate.query(sqlNodeAll, new BeanPropertyRowMapper<>(InformationQuery.class)).stream().map(InformationQuery::getWbsId).collect(Collectors.toList());
|
|
if (collect.size() > 0) {
|
|
if (collect.size() > 0) {
|
|
//删除当前记录关联记录
|
|
//删除当前记录关联记录
|
|
- jdbcTemplate.execute("delete from u_trial_self_quality_project where self_id = "+record.getId()+"");
|
|
|
|
|
|
+ jdbcTemplate.execute("delete from u_trial_self_quality_project where self_id = " + record.getId() + "");
|
|
for (Long pKeyId : collect) {
|
|
for (Long pKeyId : collect) {
|
|
//新增当前记录关联信息
|
|
//新增当前记录关联信息
|
|
- jdbcTemplate.execute("insert into u_trial_self_quality_project(id,self_id,quality_node_id) values("+SnowFlakeUtil.getId()+","+record.getId()+","+pKeyId+") ");
|
|
|
|
|
|
+ jdbcTemplate.execute("insert into u_trial_self_quality_project(id,self_id,quality_node_id) values(" + SnowFlakeUtil.getId() + "," + record.getId() + "," + pKeyId + ") ");
|
|
|
|
|
|
//获取当前工程部位节点最新的关联试验记录ids
|
|
//获取当前工程部位节点最新的关联试验记录ids
|
|
- String sqlIds = "select self_id from u_trial_self_quality_project where quality_node_id = "+pKeyId+"";
|
|
|
|
|
|
+ String sqlIds = "select self_id from u_trial_self_quality_project where quality_node_id = '" + pKeyId + "'";
|
|
List<Map<String, Object>> trialRecordIds = jdbcTemplate.queryForList(sqlNodeAll);
|
|
List<Map<String, Object>> trialRecordIds = jdbcTemplate.queryForList(sqlNodeAll);
|
|
|
|
|
|
|
|
|
|
//如果当前工程部位节点的关联试验记录id只有一条,且等于当前关联试验记录id,那么不合并,直接存储该条试验记录的pdf
|
|
//如果当前工程部位节点的关联试验记录id只有一条,且等于当前关联试验记录id,那么不合并,直接存储该条试验记录的pdf
|
|
if (trialRecordIds.size() == 1 && (trialRecordIds.get(0).get("self_id")).equals(record.getId().toString())) {
|
|
if (trialRecordIds.size() == 1 && (trialRecordIds.get(0).get("self_id")).equals(record.getId().toString())) {
|
|
//修改当前试验pdf到质检树节点的pdf_trial_url_position上存储
|
|
//修改当前试验pdf到质检树节点的pdf_trial_url_position上存储
|
|
- pdfTrialUrlPosition = record.getPdfUrl() ;
|
|
|
|
|
|
+ pdfTrialUrlPosition = record.getPdfUrl();
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
//如果当前工程部位节点的关联试验记录id有多条,那么合并
|
|
//如果当前工程部位节点的关联试验记录id有多条,那么合并
|
|
- String dataSql = "select * from u_trial_self_inspection_record where id in(select self_id from u_trial_self_quality_project where quality_node_id = "+pKeyId+")";
|
|
|
|
|
|
+ String dataSql = "select * from u_trial_self_inspection_record where id in(select self_id from u_trial_self_quality_project where quality_node_id = '" + pKeyId + "')";
|
|
List<TrialSelfInspectionRecord> pdfUrlList = jdbcTemplate.queryForList(redoe, TrialSelfInspectionRecord.class);
|
|
List<TrialSelfInspectionRecord> pdfUrlList = jdbcTemplate.queryForList(redoe, TrialSelfInspectionRecord.class);
|
|
List<String> pdfS = pdfUrlList.stream().filter(f -> com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(f.getPdfUrl())).map(TrialSelfInspectionRecord::getPdfUrl).collect(Collectors.toList());
|
|
List<String> pdfS = pdfUrlList.stream().filter(f -> com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(f.getPdfUrl())).map(TrialSelfInspectionRecord::getPdfUrl).collect(Collectors.toList());
|
|
if (ObjectUtil.isNotEmpty(pdfS) && pdfS.size() > 0) {
|
|
if (ObjectUtil.isNotEmpty(pdfS) && pdfS.size() > 0) {
|
|
@@ -256,16 +274,16 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- updateSql = "update u_information_query set pdf_trial_url_position='"+pdfTrialUrlPosition+"',business_time='"+taskApp.getPdfDate()+"',node_pdf_url='"+nodePdfUrl+"',e_visa_pdf_page="+pdfPage+",e_visa_pdf_size="+pdfSize+",e_visa_pdf_url='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' " ;
|
|
|
|
|
|
+ updateSql = "update u_information_query set pdf_trial_url_position='" + pdfTrialUrlPosition + "',business_time='" + taskApp.getPdfDate() + "',node_pdf_url='" + nodePdfUrl + "',e_visa_pdf_page=" + pdfPage + ",e_visa_pdf_size=" + pdfSize + ",e_visa_pdf_url='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' ";
|
|
} else if (taskApp.getApprovalType() == 2) {
|
|
} else if (taskApp.getApprovalType() == 2) {
|
|
- updateSql = "update u_archive_file set e_visa_file='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' " ;
|
|
|
|
|
|
+ updateSql = "update u_archive_file set e_visa_file='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' ";
|
|
} else if (taskApp.getApprovalType() == 3) { // 日志
|
|
} else if (taskApp.getApprovalType() == 3) { // 日志
|
|
- updateSql = "update u_contract_log set e_visa_pdf_url='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' " ;
|
|
|
|
|
|
+ updateSql = "update u_contract_log set e_visa_pdf_url='" + taskApp.getLastFilePdfUrl() + "',status='" + taskApp.getSigType() + "',update_time=SYSDATE() where id='" + taskApp.getFormDataId() + "' ";
|
|
} else if (taskApp.getApprovalType() == 5) { //中期计量支付证书
|
|
} else if (taskApp.getApprovalType() == 5) { //中期计量支付证书
|
|
updateSql = "update s_interim_pay_certificate set approve_status=" + taskApp.getSigType() + ",update_time=SYSDATE(), raw_url='" + taskApp.getLastFilePdfUrl() + "' where contract_period_id = " + taskApp.getFormDataId();
|
|
updateSql = "update s_interim_pay_certificate set approve_status=" + taskApp.getSigType() + ",update_time=SYSDATE(), raw_url='" + taskApp.getLastFilePdfUrl() + "' where contract_period_id = " + taskApp.getFormDataId();
|
|
} else if (taskApp.getApprovalType() == 6 || taskApp.getApprovalType() == 7) {
|
|
} else if (taskApp.getApprovalType() == 6 || taskApp.getApprovalType() == 7) {
|
|
updateSql = "update s_material_start_statement set raw_url='" + taskApp.getLastFilePdfUrl() + "' where meter_period_id = " + taskApp.getFormDataId();
|
|
updateSql = "update s_material_start_statement set raw_url='" + taskApp.getLastFilePdfUrl() + "' where meter_period_id = " + taskApp.getFormDataId();
|
|
- } else if (taskApp.getApprovalType() == 8){
|
|
|
|
|
|
+ } else if (taskApp.getApprovalType() == 8) {
|
|
if (taskApp.getSigType() == 2) {
|
|
if (taskApp.getSigType() == 2) {
|
|
this.jdbcTemplate.execute("update u_entrust_info set sample_status=2,status=" + (taskApp.getSigType() + 1) + ",entrust_e_pdf='" + taskApp.getLastFilePdfUrl() + "' where id=(SELECT wbs_id from u_information_query where id='" + taskApp.getFormDataId() + "')");
|
|
this.jdbcTemplate.execute("update u_entrust_info set sample_status=2,status=" + (taskApp.getSigType() + 1) + ",entrust_e_pdf='" + taskApp.getLastFilePdfUrl() + "' where id=(SELECT wbs_id from u_information_query where id='" + taskApp.getFormDataId() + "')");
|
|
}
|
|
}
|
|
@@ -274,15 +292,15 @@ public class EVDataServiceImpl implements EVDataService {
|
|
this.jdbcTemplate.execute(updateSql);
|
|
this.jdbcTemplate.execute(updateSql);
|
|
this.jdbcTemplate.execute("update u_task_parallel set e_visa_status=1,e_visa_content='" + taskApp.getSignSmg() + "' , status=2 , initiative=2 ,update_time=SYSDATE() where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'");
|
|
this.jdbcTemplate.execute("update u_task_parallel set e_visa_status=1,e_visa_content='" + taskApp.getSignSmg() + "' , status=2 , initiative=2 ,update_time=SYSDATE() where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'");
|
|
this.jdbcTemplate.execute("update u_task set status=" + taskApp.getSigType() + " ,update_time=SYSDATE() where id='" + taskApp.getTaskId() + "'");
|
|
this.jdbcTemplate.execute("update u_task set status=" + taskApp.getSigType() + " ,update_time=SYSDATE() where id='" + taskApp.getTaskId() + "'");
|
|
- if(taskApp.getSigType()==2){
|
|
|
|
|
|
+ if (taskApp.getSigType() == 2) {
|
|
this.jdbcTemplate.execute("delete from u_task_batch where JSON_EXTRACT(json_data, '$.taskId')=" + taskApp.getTaskId());
|
|
this.jdbcTemplate.execute("delete from u_task_batch where JSON_EXTRACT(json_data, '$.taskId')=" + taskApp.getTaskId());
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.jdbcTemplate.execute("delete from u_task_batch where id=" + taskApp.getId());
|
|
this.jdbcTemplate.execute("delete from u_task_batch where id=" + taskApp.getId());
|
|
}
|
|
}
|
|
- }else{ //签字失败
|
|
|
|
|
|
+ } else { //签字失败
|
|
this.jdbcTemplate.execute("update u_task_parallel set exe_count=(exe_count+1), e_visa_status=99,e_visa_content='" + taskApp.getSignSmg() + "' ,update_time=SYSDATE() where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'");
|
|
this.jdbcTemplate.execute("update u_task_parallel set exe_count=(exe_count+1), e_visa_status=99,e_visa_content='" + taskApp.getSignSmg() + "' ,update_time=SYSDATE() where parallel_process_instance_id='" + taskApp.getParallelProcessInstanceId() + "'");
|
|
this.jdbcTemplate.execute("update u_task set status=1 ,update_time=SYSDATE() where id='" + taskApp.getTaskId() + "'");
|
|
this.jdbcTemplate.execute("update u_task set status=1 ,update_time=SYSDATE() where id='" + taskApp.getTaskId() + "'");
|
|
- if(totalCount>=3){
|
|
|
|
|
|
+ if (totalCount >= 3) {
|
|
this.jdbcTemplate.execute("delete from u_task_batch where id=" + taskApp.getId());
|
|
this.jdbcTemplate.execute("delete from u_task_batch where id=" + taskApp.getId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -300,24 +318,23 @@ public class EVDataServiceImpl implements EVDataService {
|
|
//上报类型: 1填报资料,2工程文件,3日志资料
|
|
//上报类型: 1填报资料,2工程文件,3日志资料
|
|
//档案:4档案数据 ,
|
|
//档案:4档案数据 ,
|
|
//计量: 5中间计量申请,6材料计量单 ,7开工预付款计量单, 8变更令
|
|
//计量: 5中间计量申请,6材料计量单 ,7开工预付款计量单, 8变更令
|
|
- taskApp.setSigType(1);
|
|
|
|
taskApp.setSigState(1);
|
|
taskApp.setSigState(1);
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
try {
|
|
try {
|
|
if (taskApp.getApprovalType() == 1 || taskApp.getApprovalType() == 8) {
|
|
if (taskApp.getApprovalType() == 1 || taskApp.getApprovalType() == 8) {
|
|
map = this.jdbcTemplate.queryForMap("select * from u_information_query where is_deleted=0 and id = " + taskApp.getFormDataId());
|
|
map = this.jdbcTemplate.queryForMap("select * from u_information_query where is_deleted=0 and id = " + taskApp.getFormDataId());
|
|
- String pdfTrialUrlPosition = map.get("pdf_trial_url_position")+""; //关联工程部位信息后合并的pdf路径
|
|
|
|
- String pdfTrialUrl = map.get("pdf_trial_url")+""; //pdf路径,引用试验记录后合并的pdf
|
|
|
|
- String eVisaPdfUrl = map.get("e_visa_pdf_url")+""; //签字的PDF路径
|
|
|
|
- String pdfUrl = map.get("pdf_url")+""; //合并后的PDF路径
|
|
|
|
- String type = map.get("type")+""; //资料类型,1资料填报,2试验,3首件
|
|
|
|
|
|
+ String pdfTrialUrlPosition = map.get("pdf_trial_url_position") + ""; //关联工程部位信息后合并的pdf路径
|
|
|
|
+ String pdfTrialUrl = map.get("pdf_trial_url") + ""; //pdf路径,引用试验记录后合并的pdf
|
|
|
|
+ String eVisaPdfUrl = map.get("e_visa_pdf_url") + ""; //签字的PDF路径
|
|
|
|
+ String pdfUrl = map.get("pdf_url") + ""; //合并后的PDF路径
|
|
|
|
+ String type = map.get("type") + ""; //资料类型,1资料填报,2试验,3首件
|
|
taskApp.setPdfDataType(type);
|
|
taskApp.setPdfDataType(type);
|
|
- if (StringUtils.isNotEmpty(pdfTrialUrlPosition) || StringUtils.isNotEmpty(pdfTrialUrl)|| StringUtils.isNotEmpty(eVisaPdfUrl)|| StringUtils.isNotEmpty(pdfUrl)) {
|
|
|
|
- if("1".equals(type)){
|
|
|
|
- String approvalPdf = eVisaPdfUrl.length()>=10 ? eVisaPdfUrl : pdfUrl;
|
|
|
|
- approvalPdf = pdfTrialUrl.length()>=10 ? pdfTrialUrl : approvalPdf;
|
|
|
|
- approvalPdf = pdfTrialUrl.length()>=10 ? pdfTrialUrlPosition : approvalPdf;
|
|
|
|
- taskApp.setSignPdfUrl(getHppsToHttp(approvalPdf));
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(pdfTrialUrlPosition) || StringUtils.isNotEmpty(pdfTrialUrl) || StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
|
|
+ if ("1".equals(type)) {
|
|
|
|
+ String approvalPdf = eVisaPdfUrl.length() >= 10 ? eVisaPdfUrl : pdfUrl;
|
|
|
|
+ approvalPdf = pdfTrialUrl.length() >= 10 ? pdfTrialUrl : approvalPdf;
|
|
|
|
+ approvalPdf = pdfTrialUrl.length() >= 10 ? pdfTrialUrlPosition : approvalPdf;
|
|
|
|
+ taskApp.setSignPdfUrl(getHppsToHttp(approvalPdf));
|
|
} else if ("2".equals(type)) {
|
|
} else if ("2".equals(type)) {
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
//试验原始pdf
|
|
//试验原始pdf
|
|
@@ -343,17 +360,17 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (taskApp.getApprovalType() == 2) { //档案
|
|
} else if (taskApp.getApprovalType() == 2) { //档案
|
|
- map = this.jdbcTemplate.queryForMap("select * from u_archive_file where is_deleted=0 and id =("+taskApp.getFormDataId()+")");
|
|
|
|
- String eVisaPdfUrl = map.get("pdf_file_url")+""; //签字的PDF路径
|
|
|
|
- String pdfUrl = map.get("file_url")+""; //合并后的PDF路径
|
|
|
|
|
|
+ map = this.jdbcTemplate.queryForMap("select * from u_archive_file where is_deleted=0 and id =(" + taskApp.getFormDataId() + ")");
|
|
|
|
+ String eVisaPdfUrl = map.get("pdf_file_url") + ""; //签字的PDF路径
|
|
|
|
+ String pdfUrl = map.get("file_url") + ""; //合并后的PDF路径
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
String url = StringUtils.isNotEmpty(eVisaPdfUrl) ? eVisaPdfUrl : pdfUrl;
|
|
String url = StringUtils.isNotEmpty(eVisaPdfUrl) ? eVisaPdfUrl : pdfUrl;
|
|
taskApp.setSignPdfUrl(url);
|
|
taskApp.setSignPdfUrl(url);
|
|
}
|
|
}
|
|
} else if (taskApp.getApprovalType() == 3) {
|
|
} else if (taskApp.getApprovalType() == 3) {
|
|
map = this.jdbcTemplate.queryForMap("select * from u_contract_log where is_deleted=0 and id = " + taskApp.getFormDataId());
|
|
map = this.jdbcTemplate.queryForMap("select * from u_contract_log where is_deleted=0 and id = " + taskApp.getFormDataId());
|
|
- String eVisaPdfUrl = map.get("e_visa_pdf_url")+""; //签字的PDF路径
|
|
|
|
- String pdfUrl = map.get("pdf_url")+""; //合并后的PDF路径
|
|
|
|
|
|
+ String eVisaPdfUrl = map.get("e_visa_pdf_url") + ""; //签字的PDF路径
|
|
|
|
+ String pdfUrl = map.get("pdf_url") + ""; //合并后的PDF路径
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
if (StringUtils.isNotEmpty(eVisaPdfUrl) || StringUtils.isNotEmpty(pdfUrl)) {
|
|
String url = StringUtils.isNotEmpty(eVisaPdfUrl) ? eVisaPdfUrl : pdfUrl;
|
|
String url = StringUtils.isNotEmpty(eVisaPdfUrl) ? eVisaPdfUrl : pdfUrl;
|
|
taskApp.setSignPdfUrl(url);
|
|
taskApp.setSignPdfUrl(url);
|
|
@@ -413,10 +430,10 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // 添加电签策略 -- 安心签
|
|
|
|
|
|
+ // 添加电签策略 -- 东方中讯
|
|
public List<Map<String, Object>> getStrategyListByDFZX(TaskSignInfoVO task, String ids) {
|
|
public List<Map<String, Object>> getStrategyListByDFZX(TaskSignInfoVO task, String ids) {
|
|
|
|
|
|
- String sqlinfo = "SELECT * from ( SELECT DISTINCT a.id,a.pyzbx ,a.pyzby,a.project_id,(SELECT signature_file_url from m_sign_pfx_file where is_register=1 and certificate_user_id='" + task.getUserId() + "' and is_deleted=0 ) as signature_file_url from m_textdict_info a where a.type =2 and a.id in (" + ids + ") and sig_role_id in (SELECT DISTINCT c.role_id from m_project_assignment_user c where c.contract_id=" + task.getContractId() + " and user_id=" + task.getUserId() + " and c.is_deleted=0 ) ) x where x.signature_file_url is not null ";
|
|
|
|
|
|
+ String sqlinfo = " SELECT * from ( SELECT a.id as keyWord,a.project_id,a.pyzbx ,a.pyzby,(SELECT acc_code from blade_user where id='" + task.getUserId() + "' and is_deleted=0 ) as sealId from m_textdict_info a where a.type =2 and a.id in (" + ids + ") and sig_role_id in (SELECT DISTINCT c.role_id from m_project_assignment_user c where c.contract_id=" + task.getContractId() + " and user_id=" + task.getUserId() + " and c.is_deleted=0 ) ) x where x.sealId is not null ";
|
|
if (task.getSigType() == 2) {
|
|
if (task.getSigType() == 2) {
|
|
sqlinfo = "SELECT a.id,a.pyzbx,a.pyzby,b.signature_file_url,b.id as sfId,a.project_id,b.certificate_password,b.certificate_user_name,b.certificate_number from m_textdict_info a ,m_sign_pfx_file b where a.sig_role_id = b.pfx_type and b.project_contract_role like '%" + task.getContractId() + "%' and a.is_deleted=0 and b.is_deleted=0 and a.type=6 and a.id in(" + ids + ")";
|
|
sqlinfo = "SELECT a.id,a.pyzbx,a.pyzby,b.signature_file_url,b.id as sfId,a.project_id,b.certificate_password,b.certificate_user_name,b.certificate_number from m_textdict_info a ,m_sign_pfx_file b where a.sig_role_id = b.pfx_type and b.project_contract_role like '%" + task.getContractId() + "%' and a.is_deleted=0 and b.is_deleted=0 and a.type=6 and a.id in(" + ids + ")";
|
|
}
|
|
}
|
|
@@ -453,18 +470,14 @@ public class EVDataServiceImpl implements EVDataService {
|
|
String sqlinfo = "SELECT * from ( SELECT DISTINCT a.id,a.pyzbx ,a.pyzby,a.project_id,(SELECT signature_file_url from m_sign_pfx_file where is_register=1 and certificate_user_id='" + task.getUserId() + "' and is_deleted=0 ) as signature_file_url from m_textdict_info a where a.type =2 and a.id in (" + ids + ") and sig_role_id in (SELECT DISTINCT c.role_id from m_project_assignment_user c where c.contract_id=" + task.getContractId() + " and user_id=" + task.getUserId() + " and c.is_deleted=0 ) ) x where x.signature_file_url is not null ";
|
|
String sqlinfo = "SELECT * from ( SELECT DISTINCT a.id,a.pyzbx ,a.pyzby,a.project_id,(SELECT signature_file_url from m_sign_pfx_file where is_register=1 and certificate_user_id='" + task.getUserId() + "' and is_deleted=0 ) as signature_file_url from m_textdict_info a where a.type =2 and a.id in (" + ids + ") and sig_role_id in (SELECT DISTINCT c.role_id from m_project_assignment_user c where c.contract_id=" + task.getContractId() + " and user_id=" + task.getUserId() + " and c.is_deleted=0 ) ) x where x.signature_file_url is not null ";
|
|
if (task.getSigType() == 2) {
|
|
if (task.getSigType() == 2) {
|
|
sqlinfo = "SELECT a.id,a.pyzbx,a.pyzby,b.signature_file_url,b.id as sfId,a.project_id,b.certificate_password,b.certificate_user_name,b.certificate_number from m_textdict_info a ,m_sign_pfx_file b where a.sig_role_id = b.pfx_type and b.project_contract_role like '%" + task.getContractId() + "%' and a.is_deleted=0 and b.is_deleted=0 and a.type=6 and a.id in(" + ids + ")";
|
|
sqlinfo = "SELECT a.id,a.pyzbx,a.pyzby,b.signature_file_url,b.id as sfId,a.project_id,b.certificate_password,b.certificate_user_name,b.certificate_number from m_textdict_info a ,m_sign_pfx_file b where a.sig_role_id = b.pfx_type and b.project_contract_role like '%" + task.getContractId() + "%' and a.is_deleted=0 and b.is_deleted=0 and a.type=6 and a.id in(" + ids + ")";
|
|
- System.out.println("签字Sql="+sqlinfo);
|
|
|
|
|
|
+ System.out.println("签字Sql=" + sqlinfo);
|
|
}
|
|
}
|
|
|
|
|
|
List<Map<String, Object>> maps2 = jdbcTemplate.queryForList(sqlinfo);
|
|
List<Map<String, Object>> maps2 = jdbcTemplate.queryForList(sqlinfo);
|
|
if (maps2 == null && maps2.size() <= 0) {
|
|
if (maps2 == null && maps2.size() <= 0) {
|
|
- task.setSigState(2);
|
|
|
|
- task.setSignSmg("未查询到电签策略");
|
|
|
|
- SignBackPdfInfo(task);
|
|
|
|
return sealStrategyVOS;
|
|
return sealStrategyVOS;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
List<Map<String, Object>> maps = new ArrayList<>();
|
|
List<Map<String, Object>> maps = new ArrayList<>();
|
|
Map<String, List<Map<String, Object>>> peopleByAge = maps2.stream()
|
|
Map<String, List<Map<String, Object>>> peopleByAge = maps2.stream()
|
|
.collect(Collectors.groupingBy(hada -> (Func.toStr(hada.get("id")))));
|
|
.collect(Collectors.groupingBy(hada -> (Func.toStr(hada.get("id")))));
|
|
@@ -489,9 +502,6 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
|
|
|
|
if (maps == null || maps.size() <= 0) {
|
|
if (maps == null || maps.size() <= 0) {
|
|
- task.setSigState(2);
|
|
|
|
- task.setSignSmg("没有签字体的数据");
|
|
|
|
- SignBackPdfInfo(task);
|
|
|
|
return sealStrategyVOS;
|
|
return sealStrategyVOS;
|
|
}
|
|
}
|
|
//准备签章策略
|
|
//准备签章策略
|
|
@@ -582,6 +592,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
BladeFile bladeFile = this.newIOSSClient.uploadFile(fileUrl.substring(fileUrl.lastIndexOf("/") + 1, fileUrl.length()), fileUrl);
|
|
BladeFile bladeFile = this.newIOSSClient.uploadFile(fileUrl.substring(fileUrl.lastIndexOf("/") + 1, fileUrl.length()), fileUrl);
|
|
if (bladeFile != null) {
|
|
if (bladeFile != null) {
|
|
System.out.println("pdf上传=" + bladeFile.getLink());
|
|
System.out.println("pdf上传=" + bladeFile.getLink());
|
|
|
|
+
|
|
return "sucess@@@@" + bladeFile.getLink();
|
|
return "sucess@@@@" + bladeFile.getLink();
|
|
} else {
|
|
} else {
|
|
return "电签成功";
|
|
return "电签成功";
|
|
@@ -596,7 +607,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
// 安心签 - 关键字策略
|
|
// 安心签 - 关键字策略
|
|
public void signTaskBatchByAXQZ(List<SealStrategyVO> list, TaskSignInfoVO taskApp) {
|
|
public void signTaskBatchByAXQZ(List<SealStrategyVO> list, TaskSignInfoVO taskApp) {
|
|
|
|
|
|
- String pdfUrl = Func.notNull(taskApp.getLastFilePdfUrl())?taskApp.getLastFilePdfUrl():taskApp.getSignPdfUrl();
|
|
|
|
|
|
+ String pdfUrl = Func.notNull(taskApp.getLastFilePdfUrl()) ? taskApp.getLastFilePdfUrl() : taskApp.getSignPdfUrl();
|
|
|
|
|
|
if (Func.isEmpty(pdfUrl) || list == null) {
|
|
if (Func.isEmpty(pdfUrl) || list == null) {
|
|
taskApp.setLastFilePdfUrl(pdfUrl);
|
|
taskApp.setLastFilePdfUrl(pdfUrl);
|
|
@@ -625,7 +636,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
|
|
|
Object[] result = null;
|
|
Object[] result = null;
|
|
String fileUrl = pdfUrl;
|
|
String fileUrl = pdfUrl;
|
|
- if (list.size() >= 15 || fileByte.length > 10 * 1000 * 1000) {
|
|
|
|
|
|
+ if (list.size() >= 10 || fileByte.length > 10 * 1000 * 1000) {
|
|
String inUrl = "/inp/" + DateUtil.today();
|
|
String inUrl = "/inp/" + DateUtil.today();
|
|
String outUrl = "/out/" + DateUtil.today();
|
|
String outUrl = "/out/" + DateUtil.today();
|
|
SignFtpUtil.FTPCreateDir(inUrl);
|
|
SignFtpUtil.FTPCreateDir(inUrl);
|
|
@@ -679,7 +690,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
taskApp.setSignSmg("电签成功");
|
|
taskApp.setSignSmg("电签成功");
|
|
} else {
|
|
} else {
|
|
taskApp.setSigState(2);
|
|
taskApp.setSigState(2);
|
|
- taskApp.setSignSmg("上传OSS失败"+fileUrl);
|
|
|
|
|
|
+ taskApp.setSignSmg("上传OSS失败" + fileUrl);
|
|
SignBackPdfInfo(taskApp);
|
|
SignBackPdfInfo(taskApp);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -693,4 +704,6 @@ public class EVDataServiceImpl implements EVDataService {
|
|
}
|
|
}
|
|
return url;
|
|
return url;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|