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
4ed11507
Commit
4ed11507
authored
Mar 29, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检验内容 - 标准和用例关系
parent
4af815ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
ReviewStandardServiceImpl.java
...ava/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
+12
-2
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
View file @
4ed11507
package
com
.
ruoyi
.
service
.
impl
;
import
cn.hutool.core.collection.CollUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
...
@@ -169,9 +170,18 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
*/
@Override
public
void
saveStandardUsecase
(
ReviewStandardSaveStandardUsecaseRequest
request
)
{
// 删除之前绑定关系
testUseCaseMapper
.
update
(
TestUseCase
.
builder
().
reviewStandardId
(
request
.
getStandardId
()).
build
(),
new
UpdateWrapper
<
TestUseCase
>().
in
(
"id"
,
request
.
getUsecaseIdList
()));
null
,
new
UpdateWrapper
<
TestUseCase
>()
.
set
(
"review_standard_id"
,
null
)
.
in
(
"review_standard_id"
,
request
.
getStandardId
()));
if
(
CollUtil
.
isNotEmpty
(
request
.
getUsecaseIdList
()))
{
// 绑定现在的
testUseCaseMapper
.
update
(
TestUseCase
.
builder
().
reviewStandardId
(
request
.
getStandardId
()).
build
(),
new
UpdateWrapper
<
TestUseCase
>().
in
(
"id"
,
request
.
getUsecaseIdList
()));
}
}
/**
...
...
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