Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-reptiles
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁辉
car-reptiles
Commits
1c70fb6d
Commit
1c70fb6d
authored
Dec 16, 2020
by
landerliang@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复自动签章上传的检测报告没有签章的问题
parent
d169d576
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
car-reptiles-system/src/main/java/me/zhengjie/modules/system/service/ReportService.java
+4
-4
No files found.
car-reptiles-system/src/main/java/me/zhengjie/modules/system/service/ReportService.java
View file @
1c70fb6d
...
@@ -180,15 +180,15 @@ public class ReportService {
...
@@ -180,15 +180,15 @@ public class ReportService {
AssertUtil
.
isTrue
(
responseEntity
.
getStatusCode
()
==
HttpStatus
.
OK
&&
responseEntity
.
getBody
().
getData
()!=
null
,
responseEntity
.
getBody
().
getErrMsg
());
AssertUtil
.
isTrue
(
responseEntity
.
getStatusCode
()
==
HttpStatus
.
OK
&&
responseEntity
.
getBody
().
getData
()!=
null
,
responseEntity
.
getBody
().
getErrMsg
());
//更新数据库的报告详情
//更新数据库的报告详情
ReportPdfVo
reportPdfVos
=
JSONUtil
.
toBean
(
JSONUtil
.
toJsonPrettyStr
(
responseEntity
.
getBody
().
getData
()),
ReportPdfVo
.
class
);
ReportPdfVo
signatureReport
=
JSONUtil
.
toBean
(
JSONUtil
.
toJsonPrettyStr
(
responseEntity
.
getBody
().
getData
()),
ReportPdfVo
.
class
);
reportPdfMapper
.
updateById
(
reportPdfVos
);
reportPdfMapper
.
updateById
(
signatureReport
);
//上传文件 (连同检测报告全部文件)
//上传文件 (连同检测报告全部文件)
Integer
success
=
carReportUtil
.
autoUploadReportPost
(
account
,
password
,
reportPdfVo
,
signatureVo1
.
getDeptId
());
Integer
success
=
carReportUtil
.
autoUploadReportPost
(
account
,
password
,
signatureReport
,
signatureVo1
.
getDeptId
());
//上传成功的文件小于2个则视为上传失败,清除下载记录
//上传成功的文件小于2个则视为上传失败,清除下载记录
if
(
success
<
2
){
if
(
success
<
2
){
deleteReportPdf
(
reportPdfVos
.
getReportNum
());
deleteReportPdf
(
signatureReport
.
getReportNum
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment