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
d1e7db2f
Commit
d1e7db2f
authored
Mar 29, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaixiankang' into 'dev'
检验内容 - 标准和用例关系 See merge request
!244
parents
3a6f1bcb
73a8ad0c
Changes
1
Show 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 @
d1e7db2f
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,10 +170,19 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
*/
@Override
public
void
saveStandardUsecase
(
ReviewStandardSaveStandardUsecaseRequest
request
)
{
// 删除之前绑定关系
testUseCaseMapper
.
update
(
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