Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
1ad8151c
Commit
1ad8151c
authored
Oct 17, 2024
by
yuanshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改接口/Plan/Record/export Excel导出第一页少显示一行
2.为TestObjectData添加字段remark和notApplicable用于前端页面展示
parent
508680d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
ExcelMultipleSheetsUtil.java
...c/main/java/com/ruoyi/common/ExcelMultipleSheetsUtil.java
+1
-1
TestObjectData.java
...review/src/main/java/com/ruoyi/domain/TestObjectData.java
+6
-0
TestObjectDataController.java
...src/main/java/com/ruoyi/web/TestObjectDataController.java
+2
-0
TestPlanRecordController.java
...src/main/java/com/ruoyi/web/TestPlanRecordController.java
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/common/ExcelMultipleSheetsUtil.java
View file @
1ad8151c
...
...
@@ -52,7 +52,7 @@ public class ExcelMultipleSheetsUtil {
CellRangeAddress
mergeRegion
=
new
CellRangeAddress
(
1
,
2
,
0
,
1
);
// 将合并区域添加到工作表中
sheetFirst
.
addMergedRegion
(
mergeRegion
);
final
int
[]
i
=
{
2
};
final
int
[]
i
=
{
3
};
cover
.
forEach
((
key
,
value
)->{
Row
dataRow
=
sheetFirst
.
createRow
(
i
[
0
]);
dataRow
.
setHeightInPoints
(
20
);
...
...
quality-review/src/main/java/com/ruoyi/domain/TestObjectData.java
View file @
1ad8151c
...
...
@@ -34,4 +34,10 @@ public class TestObjectData {
@ApiModelProperty
(
"分组标识"
)
private
String
flag
;
@ApiModelProperty
(
"注释"
)
private
String
remark
;
@ApiModelProperty
(
"不适用描述"
)
private
String
notApplicable
;
}
quality-review/src/main/java/com/ruoyi/web/TestObjectDataController.java
View file @
1ad8151c
...
...
@@ -42,6 +42,8 @@ public class TestObjectDataController {
Map
mapObj
=
new
HashMap
();
mapObj
.
put
(
"options"
,
value
);
map
.
put
(
"componentProps"
,
mapObj
);
map
.
put
(
"remark"
,
value
.
get
(
0
).
getRemark
());
map
.
put
(
"notApplicable"
,
value
.
get
(
0
).
getNotApplicable
());
list
.
add
(
map
);
sum
[
0
]
=
sum
[
0
]
+
1
;
});
...
...
quality-review/src/main/java/com/ruoyi/web/TestPlanRecordController.java
View file @
1ad8151c
...
...
@@ -182,7 +182,7 @@ public class TestPlanRecordController extends BaseController{
resultDesc
.
put
(
key
,
new
ArrayList
<>());
}
});
ExcelMultipleSheetsUtil
.
excelMultipleSheets
(
resultDesc
,
"检测方案"
+
DateUtil
.
format
(
new
Date
(),
"yyyyMMdd"
),
XLSX_SUFFIX
,
respon
,
cover
);
ExcelMultipleSheetsUtil
.
excelMultipleSheets
(
resultDesc
,
"检测方案"
+
systemReviewExportRequest
.
getCarModel
(
),
XLSX_SUFFIX
,
respon
,
cover
);
}
...
...
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