|
@@ -190,7 +190,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
}
|
|
|
|
|
|
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=" + batchId + "";
|
|
|
+ "SELECT " + id + " as id,task_parallel_id,json_data,create_user,create_dept,create_time,update_user,SYSDATE(),status,is_deleted,nick_name,sign_format,2 as sign_type from u_task_batch where id=" + batchId + "";
|
|
|
jdbcTemplate.execute(sql2);
|
|
|
}
|
|
|
}
|
|
@@ -445,24 +445,14 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
|
|
|
} else if (taskApp.getApprovalType() == 5) {
|
|
|
map = this.jdbcTemplate.queryForMap("select * from s_interim_pay_certificate where is_deleted=0 and contract_period_id = " + taskApp.getFormDataId());
|
|
|
- String pdfUrl=map.get("raw_url") + "";
|
|
|
+ String pdfUrl = "";
|
|
|
//中间计量用逗号拼接pagePdfUrl
|
|
|
- /* String pageUrl = map.get("page_pdf_url")+"";
|
|
|
- if(StringUtils.isNotEmpty(pageUrl) && pageUrl.length()>=20 ){
|
|
|
- String jsonStr=map.get("page_pdf_url")+"";
|
|
|
- ObjectMapper mapper = new ObjectMapper();
|
|
|
- JsonNode jsonNode = mapper.readTree(jsonStr);
|
|
|
- StringBuilder result = new StringBuilder();
|
|
|
- Iterator<Map.Entry<String, JsonNode>> fields = jsonNode.fields();
|
|
|
- while (fields.hasNext()) {
|
|
|
- Map.Entry<String, JsonNode> entry = fields.next();
|
|
|
- result.append(entry.getValue().asText());
|
|
|
- if (fields.hasNext()) {
|
|
|
- result.append(",");
|
|
|
- }
|
|
|
- }
|
|
|
- pdfUrl=result.toString();
|
|
|
- }*/
|
|
|
+ String pageUrl = map.get("page_pdf_url")+"";
|
|
|
+ if(StringUtils.isNotEmpty(pageUrl) && pageUrl.length()>=20 ) {
|
|
|
+ pageUrl = pageUrl.replaceAll(" ", "");
|
|
|
+ }else{
|
|
|
+ pdfUrl=map.get("raw_url") + "";
|
|
|
+ }
|
|
|
taskApp.setSignPdfUrl(pdfUrl);
|
|
|
} else if (taskApp.getApprovalType() == 6 || taskApp.getApprovalType() == 7) {
|
|
|
map = this.jdbcTemplate.queryForMap("select * from s_material_start_statement where is_deleted=0 and meter_period_id = " + taskApp.getFormDataId());
|
|
@@ -906,7 +896,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
int i = SignFtpUtil.uploadFile(locPdfUrl, inputStream);
|
|
|
if (i == 1) {
|
|
|
result = eVisaService.signPdfByAXQZ(pdfVO, locPdfUrl, OutPdfUrl);
|
|
|
- if(result!=null){
|
|
|
+ if(result!=null && result[0]!=null){
|
|
|
int i1 = SignFtpUtil.downloadFile(dataFileUrl, OutPdfUrl);
|
|
|
fileUrl = dataFileUrl;
|
|
|
SignFtpUtil.FTPDeleteDir(locPdfUrl);
|
|
@@ -921,7 +911,7 @@ public class EVDataServiceImpl implements EVDataService {
|
|
|
} else {
|
|
|
result = eVisaService.signPdfByAXQZ(pdfVO, fileByte);
|
|
|
//执行电签
|
|
|
- if (result != null) {
|
|
|
+ if(result!=null && result[0]!=null){
|
|
|
try {
|
|
|
//对文件流做判断
|
|
|
byte[] bytes = (byte[]) result[0];
|