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
1ceebbd2
Commit
1ceebbd2
authored
Jan 09, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据任务ID 查询小组成员
parent
bafa9d00
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
0 deletions
+83
-0
ReviewTaskUserRelationMapper.java
...n/java/com/ruoyi/mapper/ReviewTaskUserRelationMapper.java
+10
-0
ReviewTaskUserRelationService.java
...java/com/ruoyi/service/ReviewTaskUserRelationService.java
+10
-0
ReviewTaskUserRelationServiceImpl.java
...ruoyi/service/impl/ReviewTaskUserRelationServiceImpl.java
+17
-0
ReviewTaskUserRelationController.java
.../java/com/ruoyi/web/ReviewTaskUserRelationController.java
+38
-0
ReviewTaskUserRelationMapper.xml
...rc/main/resources/mapper/ReviewTaskUserRelationMapper.xml
+8
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewTaskUserRelationMapper.java
View file @
1ceebbd2
...
...
@@ -2,8 +2,11 @@ package com.ruoyi.mapper;
import
com.ruoyi.domain.ReviewTaskUserRelation
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author wangfei
* @description 针对表【t_system_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Mapper
...
...
@@ -13,6 +16,13 @@ import org.springframework.stereotype.Repository;
@Repository
public
interface
ReviewTaskUserRelationMapper
extends
BaseMapper
<
ReviewTaskUserRelation
>
{
/**
* 根据任务id查询小组成员
* @param taskId
* @return
*/
List
<
ReviewTaskUserRelation
>
selectQTeamMembers
(
@Param
(
"taskId"
)
Long
taskId
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/ReviewTaskUserRelationService.java
View file @
1ceebbd2
...
...
@@ -2,6 +2,9 @@ package com.ruoyi.service;
import
com.ruoyi.domain.ReviewTaskUserRelation
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* @author wangfei
...
...
@@ -10,4 +13,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public
interface
ReviewTaskUserRelationService
extends
IService
<
ReviewTaskUserRelation
>
{
/**
* 根据任务id查询小组成员
* @param taskId
* @return
*/
List
<
ReviewTaskUserRelation
>
selectQTeamMembers
(
Long
taskId
);
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewTaskUserRelationServiceImpl.java
View file @
1ceebbd2
...
...
@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.domain.ReviewTaskUserRelation
;
import
com.ruoyi.service.ReviewTaskUserRelationService
;
import
com.ruoyi.mapper.ReviewTaskUserRelationMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* @author wangfei
* @description 针对表【t_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Service实现
...
...
@@ -15,6 +19,19 @@ import org.springframework.stereotype.Service;
public
class
ReviewTaskUserRelationServiceImpl
extends
ServiceImpl
<
ReviewTaskUserRelationMapper
,
ReviewTaskUserRelation
>
implements
ReviewTaskUserRelationService
{
@Autowired
ReviewTaskUserRelationMapper
reviewTaskUserRelationMapper
;
/**
* 根据任务id查询小组成员
* @param taskId
* @return
*/
@Override
public
List
<
ReviewTaskUserRelation
>
selectQTeamMembers
(
Long
taskId
){
return
reviewTaskUserRelationMapper
.
selectQTeamMembers
(
taskId
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewTaskUserRelationController.java
0 → 100644
View file @
1ceebbd2
package
com
.
ruoyi
.
web
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.domain.ReviewTaskUserRelation
;
import
com.ruoyi.service.impl.ReviewTaskUserRelationServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tags
;
import
org.apache.skywalking.apm.toolkit.trace.Trace
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
(
"体系审查任务组成员"
)
@RestController
@RequestMapping
(
"/review/Task/User"
)
public
class
ReviewTaskUserRelationController
extends
BaseController
{
@Autowired
ReviewTaskUserRelationServiceImpl
reviewTaskUserRelationService
;
@ApiOperation
(
"根据任务Id查询任务组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/members/{taskId}"
)
public
R
<
List
<
ReviewTaskUserRelation
>>
selectQTeamMemberList
(
@PathVariable
Long
taskId
){
List
<
ReviewTaskUserRelation
>
list
=
reviewTaskUserRelationService
.
selectQTeamMembers
(
taskId
);
return
R
.
ok
(
list
);
}
}
quality-review/src/main/resources/mapper/ReviewTaskUserRelationMapper.xml
View file @
1ceebbd2
...
...
@@ -14,4 +14,12 @@
<sql
id=
"Base_Column_List"
>
task_id,user_id,is_leader,name
</sql>
<select
id=
"selectQTeamMembers"
parameterType=
"Long"
resultMap=
"BaseResultMap"
>
<include
refid=
"Base_Column_List"
/>
where
<if
test=
"taskId != null and taskId != ''"
>
task_id = #{taskId}
</if>
</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