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
fafb39ae
Commit
fafb39ae
authored
Feb 22, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页、按章节排序
parent
07b3916a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
ReviewStandardController.java
...src/main/java/com/ruoyi/web/ReviewStandardController.java
+1
-1
ReviewStandardMapper.xml
...review/src/main/resources/mapper/ReviewStandardMapper.xml
+5
-0
InspectionContentTest.java
...-admin/src/test/java/com/ruoyi/InspectionContentTest.java
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/web/ReviewStandardController.java
View file @
fafb39ae
...
...
@@ -41,7 +41,7 @@ public class ReviewStandardController extends BaseController {
@ApiOperation
(
"分页查询标准(检验内容库)"
)
@PostMapping
(
"/list"
)
public
TableDataInfo
<
ReviewStandardResponse
>
listByPage
(
@Validated
@RequestBody
ReviewStandardListByPageRequest
request
)
{
startPage
();
startPage
(
request
);
List
<
ReviewStandardResponse
>
list
=
reviewStandardService
.
listByPage
(
request
);
return
getDataTable
(
list
);
}
...
...
quality-review/src/main/resources/mapper/ReviewStandardMapper.xml
View file @
fafb39ae
...
...
@@ -44,6 +44,11 @@
<if
test=
"chapter != null and chapter != ''"
>
and chapter like concat('%', #{chapter}, '%')
</if>
<if
test=
"text != null and text != ''"
>
and text like concat('%', #{text}, '%')
</if>
</where>
ORDER BY
CAST(SUBSTRING_INDEX(chapter, '.', 1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 2), '.', -1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 3), '.', -1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 4), '.', -1) AS UNSIGNED)
</select>
...
...
ruoyi-admin/src/test/java/com/ruoyi/InspectionContentTest.java
View file @
fafb39ae
...
...
@@ -31,7 +31,7 @@ public class InspectionContentTest {
@Test
public
void
standardAdd
()
{
ReviewStandard
build
=
ReviewStandard
.
builder
()
.
chapter
(
"7.1.1.
1
"
)
.
chapter
(
"7.1.1.
2
"
)
.
text
(
"车端具备远程控制功能的系统、授权的第三方应用等外部连接系统不应存在由汽车行业权威漏洞平台6个月前公布且未经处置的高危及以上的安全漏洞。\n"
+
"\n"
+
"注1:汽车行业权威漏洞平台如车联网产品专用漏洞库NVDB-CAVD等政府主管部门认可的其他漏洞平台。\n"
+
...
...
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