Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
860c2515
Commit
860c2515
authored
1 year ago
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.91isoft.com:90/wangfei/vehicle-quality-review
into wangdingyi
parents
d88ae6e7
5858ef40
dev
gaixiankang
gaoying
master
songyuanshuo
wangdingyi
wangfei
19.0
18.0
17.0
16.0
15.0
14.0
13.0
12.0
11.0
10.0
9.0
8.0
7.0
6.0
5.0
4.0
3.0
2.0
1.0
2 merge requests
!275
dev - master 4.0
,
!260
任务概览、部门管理查看详情
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
PdfTemplateManagementServiceImpl.java
.../ruoyi/service/impl/PdfTemplateManagementServiceImpl.java
+9
-9
StatisticsHomeServiceImpl.java
...ava/com/ruoyi/service/impl/StatisticsHomeServiceImpl.java
+3
-3
receipt_template_04_02.pdf
...ew/src/main/resources/template/receipt_template_04_02.pdf
+0
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/PdfTemplateManagementServiceImpl.java
View file @
860c2515
...
...
@@ -140,8 +140,7 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe
document
.
writeBottomCell
(
"共 10 页"
,
Element
.
ALIGN_RIGHT
,
1
,
1
,
signTable
).
setRightIndent
(
30
f
);
document
.
writeBottomCell
(
"第 10 页"
,
Element
.
ALIGN_RIGHT
,
1
,
1
,
signTable
);
document
.
addContent
(
signTable
);
document
.
setParagraph
(
"7.附录"
,
10.5f
,
Element
.
ALIGN_LEFT
,
45
,
1
f
,
0
f
);
document
.
setParagraph
(
"图 1 样品照片"
,
10.5f
,
Element
.
ALIGN_CENTER
,
0
,
20
f
,
0
f
);
document
.
setParagraph
(
"7.附录"
,
10.5f
,
Element
.
ALIGN_LEFT
,
45
,
1
f
,
10
f
);
// 添加内容到新页面
PdfPTable
pictureTable
=
new
PdfPTable
(
new
float
[]{
25
,
25
,
25
,
25
});
pictureTable
.
setWidthPercentage
(
90
);
...
...
@@ -168,6 +167,7 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe
pictureTable
.
addCell
(
cell
);
}
document
.
addContent
(
pictureTable
);
document
.
setParagraph
(
"图 1 样品照片"
,
10.5f
,
Element
.
ALIGN_CENTER
,
0
,
20
f
,
0
f
);
document
.
setParagraph
(
"图 2 试验照片"
,
10.5f
,
Element
.
ALIGN_CENTER
,
0
,
20
f
,
0
f
);
// 关闭PDF
document
.
close
();
...
...
@@ -348,13 +348,13 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe
}
// 图片域
// 样品
String
url
=
inspectionReportPdfVO
.
getBrandImage
();
if
(
StrUtil
.
isNotBlank
(
url
))
{
if
(
url
.
startsWith
(
","
))
{
url
=
inspectionReportPdfVO
.
getBrandImage
().
substring
(
1
);
}
addImageToPdf
(
"brand"
,
fields
,
ps
,
"http://49.232.167.247:22038"
+
url
.
split
(
","
)[
0
]);
}
//
String url = inspectionReportPdfVO.getBrandImage();
//
if (StrUtil.isNotBlank(url)) {
//
if (url.startsWith(",")) {
//
url = inspectionReportPdfVO.getBrandImage().substring(1);
//
}
//
addImageToPdf("brand", fields, ps, "http://49.232.167.247:22038" + url.split(",")[0]);
//
}
}
...
...
This diff is collapsed.
Click to expand it.
quality-review/src/main/java/com/ruoyi/service/impl/StatisticsHomeServiceImpl.java
View file @
860c2515
...
...
@@ -50,15 +50,15 @@ public class StatisticsHomeServiceImpl implements StatisticsHomeService {
InspectionItemPassedNumVO
inspectionItemPassedNumVO
=
statisticsHomeMapper
.
selectInspectionItemPassedNum
();
List
<
AverageInspectionRateVO
>
list
=
new
ArrayList
<>();
AverageInspectionRateVO
averageInspectionRateOne
=
new
AverageInspectionRateVO
();
averageInspectionRateOne
.
setInspectionItems
(
"
汽车
信息安全管理体系要求"
);
averageInspectionRateOne
.
setInspectionItems
(
"信息安全管理体系要求"
);
averageInspectionRateOne
.
setPassingRate
(
proportionCalculation
(
inspectionItemPassedNumVO
.
getSysReviewPassedNum
(),
inspectionItemPassedNumVO
.
getSysReviewcompletedNum
()));
list
.
add
(
averageInspectionRateOne
);
AverageInspectionRateVO
averageInspectionRateTwo
=
new
AverageInspectionRateVO
();
averageInspectionRateTwo
.
setInspectionItems
(
"
汽车
信息安全一般要求"
);
averageInspectionRateTwo
.
setInspectionItems
(
"信息安全一般要求"
);
averageInspectionRateTwo
.
setPassingRate
(
proportionCalculation
(
inspectionItemPassedNumVO
.
getCarReviewPassedNum
(),
inspectionItemPassedNumVO
.
getCarReviewcompletedNum
()));
list
.
add
(
averageInspectionRateTwo
);
AverageInspectionRateVO
averageInspectionRateThree
=
new
AverageInspectionRateVO
();
averageInspectionRateThree
.
setInspectionItems
(
"
汽车
信息安全技术要求"
);
averageInspectionRateThree
.
setInspectionItems
(
"信息安全技术要求"
);
averageInspectionRateThree
.
setPassingRate
(
proportionCalculation
(
inspectionItemPassedNumVO
.
getModelTestPassedNum
(),
inspectionItemPassedNumVO
.
getModelTestCompletedNum
()));
list
.
add
(
averageInspectionRateThree
);
for
(
AverageInspectionRateVO
averageInspectionRate:
list
){
...
...
This diff is collapsed.
Click to expand it.
quality-review/src/main/resources/template/receipt_template_04_02.pdf
View file @
860c2515
No preview for this file type
This diff is collapsed.
Click to expand it.
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