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