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
cbcd53db
Commit
cbcd53db
authored
Jan 05, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建体系审查任务
parent
9e6848ee
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
1 deletion
+30
-1
StandardMapper.java
...review/src/main/java/com/ruoyi/mapper/StandardMapper.java
+3
-0
StandardService.java
...view/src/main/java/com/ruoyi/service/StandardService.java
+3
-0
StandardServiceImpl.java
...main/java/com/ruoyi/service/impl/StandardServiceImpl.java
+10
-0
SystemReviewTaskServiceImpl.java
...a/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
+9
-1
StandardMapper.xml
quality-review/src/main/resources/mapper/StandardMapper.xml
+5
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/StandardMapper.java
View file @
cbcd53db
...
...
@@ -13,4 +13,7 @@ public interface StandardMapper extends BaseMapper<Standard> {
// 分页查询
List
<
Standard
>
findList
(
@Param
(
"params"
)
StandardListRequest
request
);
// 根据id查询
Standard
findListById
(
@Param
(
"id"
)
Long
Id
);
}
quality-review/src/main/java/com/ruoyi/service/StandardService.java
View file @
cbcd53db
...
...
@@ -13,4 +13,7 @@ public interface StandardService extends IService<Standard> {
// 分页查询
List
<
Standard
>
findList
(
StandardListRequest
request
);
//根据id查询
Standard
findListById
(
Long
id
);
}
quality-review/src/main/java/com/ruoyi/service/impl/StandardServiceImpl.java
View file @
cbcd53db
...
...
@@ -25,4 +25,14 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
public
List
<
Standard
>
findList
(
StandardListRequest
request
)
{
return
standardMapper
.
findList
(
request
);
}
/**
* 根据id查询
* @param id
* @return
*/
@Override
public
Standard
findListById
(
Long
id
)
{
return
standardMapper
.
findListById
(
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
View file @
cbcd53db
...
...
@@ -42,6 +42,9 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
@Autowired
private
ISysUserService
sysUserService
;
@Autowired
private
StandardService
standardService
;
@Override
public
void
createTaskTest
(
SystemReviewTaskCreateRequest
request
)
{
...
...
@@ -49,6 +52,7 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
// 构建任务创建者
LoginUser
loginUser
=
SecurityUtils
.
getLoginUser
();
SysUser
initiator
=
sysUserService
.
selectUserById
(
loginUser
.
getUserId
());
Standard
standard
=
standardService
.
findListById
(
request
.
getStandardId
());
// 找到审查组长
SystemReviewTaskUserRelation
leader
=
null
;
...
...
@@ -69,7 +73,11 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
.
setBizInfo
(
request
.
getBizInfo
())
.
setLeaderId
(
leader
.
getUserId
())
.
setLeader
(
leader
.
getName
())
.
setCreateTime
(
new
Date
());
.
setCreateTime
(
new
Date
())
.
setStandardId
(
standard
.
getId
())
.
setName
(
standard
.
getName
())
.
setStandardNo
(
standard
.
getStandardNo
())
.
setFile
(
standard
.
getFile
());
systemReviewTaskService
.
save
(
task
);
...
...
quality-review/src/main/resources/mapper/StandardMapper.xml
View file @
cbcd53db
...
...
@@ -24,4 +24,9 @@
</where>
</select>
<select
id=
"findListById"
resultMap=
"BaseResultMap"
>
SELECT id, name, standard_no, file
FROM t_standard WHERE id = #{id}
</select>
</mapper>
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