Commit 1c70fb6d by landerliang@163.com

修复自动签章上传的检测报告没有签章的问题

parent d169d576
......@@ -180,15 +180,15 @@ public class ReportService {
AssertUtil.isTrue(responseEntity.getStatusCode() == HttpStatus.OK && responseEntity.getBody().getData()!=null,responseEntity.getBody().getErrMsg());
//更新数据库的报告详情
ReportPdfVo reportPdfVos = JSONUtil.toBean(JSONUtil.toJsonPrettyStr(responseEntity.getBody().getData()), ReportPdfVo.class);
reportPdfMapper.updateById(reportPdfVos);
ReportPdfVo signatureReport = JSONUtil.toBean(JSONUtil.toJsonPrettyStr(responseEntity.getBody().getData()), ReportPdfVo.class);
reportPdfMapper.updateById(signatureReport);
//上传文件 (连同检测报告全部文件)
Integer success = carReportUtil.autoUploadReportPost(account, password, reportPdfVo, signatureVo1.getDeptId());
Integer success = carReportUtil.autoUploadReportPost(account, password, signatureReport, signatureVo1.getDeptId());
//上传成功的文件小于2个则视为上传失败,清除下载记录
if(success < 2){
deleteReportPdf(reportPdfVos.getReportNum());
deleteReportPdf(signatureReport.getReportNum());
}
......
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