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
771d4eb6
Commit
771d4eb6
authored
Aug 13, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
创新基地查询待办列表 See merge request
!420
parents
2e13c43f
531c429d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
1 deletion
+97
-1
ReviewSceneChangeTask.java
...src/main/java/com/ruoyi/domain/ReviewSceneChangeTask.java
+9
-0
ReviewSceneChangeTaskMapper.java
...in/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
+6
-0
ReviewSceneChangeTaskService.java
.../java/com/ruoyi/service/ReviewSceneChangeTaskService.java
+6
-0
ReviewSceneChangeTaskServiceImpl.java
.../ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
+39
-1
ReviewSceneChangeTaskController.java
...n/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
+13
-0
ReviewSceneChangeTaskResponse.java
...com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
+3
-0
ReviewSceneChangeTaskMapper.xml
...src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
+21
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/ReviewSceneChangeTask.java
View file @
771d4eb6
...
@@ -60,6 +60,12 @@ public class ReviewSceneChangeTask {
...
@@ -60,6 +60,12 @@ public class ReviewSceneChangeTask {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
Long
REVIEW_ROLE_ID
=
103L
;
public
static
final
Long
REVIEW_ROLE_ID
=
103L
;
/**
* 参与审核的角色
*/
@TableField
(
exist
=
false
)
public
static
final
Long
INNOVATION_BASE_ID
=
113L
;
/**
/**
* 主键
* 主键
*/
*/
...
@@ -219,4 +225,7 @@ public class ReviewSceneChangeTask {
...
@@ -219,4 +225,7 @@ public class ReviewSceneChangeTask {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
reviewer
;
private
String
reviewer
;
@ApiModelProperty
(
"创新基地结果"
)
private
String
innovationBaseResult
;
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
View file @
771d4eb6
...
@@ -48,6 +48,12 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
...
@@ -48,6 +48,12 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
* 根据id查询任务详细信息
* 根据id查询任务详细信息
* */
* */
ReviewSceneChangeTask
findSceneChangeTaskById
(
@Param
(
"id"
)
Long
id
);
ReviewSceneChangeTask
findSceneChangeTaskById
(
@Param
(
"id"
)
Long
id
);
/**
* 创新基地查询待办列表
* @return
*/
List
<
ReviewSceneChangeTaskResponse
>
findPendingList
(
@Param
(
"userId"
)
Long
userId
,
@Param
(
"request"
)
ReviewSceneChangeTaskFindPendingRequest
request
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/ReviewSceneChangeTaskService.java
View file @
771d4eb6
...
@@ -78,4 +78,10 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
...
@@ -78,4 +78,10 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
List
<
ReviewSceneChangeTask
>
findCreateListByUserId
(
Long
userId
,
ReviewSceneChangeTaskFindCreateRequest
request
);
List
<
ReviewSceneChangeTask
>
findCreateListByUserId
(
Long
userId
,
ReviewSceneChangeTaskFindCreateRequest
request
);
ReviewSceneChangeTask
getBySceneChangeTaskId
(
Long
id
);
ReviewSceneChangeTask
getBySceneChangeTaskId
(
Long
id
);
/**
* 创新基地查询待办列表
* @return
*/
List
<
ReviewSceneChangeTaskResponse
>
findPendingList
(
Long
userId
,
ReviewSceneChangeTaskFindPendingRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
View file @
771d4eb6
...
@@ -77,6 +77,20 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -77,6 +77,20 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
// 保存任务
// 保存任务
save
(
reviewSceneChangeTask
);
save
(
reviewSceneChangeTask
);
// 绑定创新基地人员
List
<
SysUser
>
InnovationSysUsers
=
sysUserService
.
selectUserListByRoleId
(
ReviewSceneChangeTask
.
INNOVATION_BASE_ID
);
List
<
ReviewSceneChangeTaskUserRelation
>
InnovationRelations
=
new
ArrayList
();
for
(
SysUser
sysUser
:
InnovationSysUsers
)
{
ReviewSceneChangeTaskUserRelation
relation
=
new
ReviewSceneChangeTaskUserRelation
()
.
setTaskId
(
reviewSceneChangeTask
.
getId
())
.
setUserId
(
sysUser
.
getUserId
())
.
setName
(
sysUser
.
getNickName
())
.
setDept
(
sysUser
.
getDept
().
getDeptName
());
InnovationRelations
.
add
(
relation
);
}
reviewSceneChangeTaskUserRelationService
.
saveBatch
(
InnovationRelations
);
// 绑定审核人
// 绑定审核人
List
<
SysUser
>
sysUsers
=
sysUserService
.
selectUserListByRoleId
(
ReviewSceneChangeTask
.
REVIEW_ROLE_ID
);
List
<
SysUser
>
sysUsers
=
sysUserService
.
selectUserListByRoleId
(
ReviewSceneChangeTask
.
REVIEW_ROLE_ID
);
List
<
ReviewSceneChangeTaskUserRelation
>
relations
=
new
ArrayList
();
List
<
ReviewSceneChangeTaskUserRelation
>
relations
=
new
ArrayList
();
...
@@ -223,7 +237,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -223,7 +237,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
List
<
ReviewSceneChangeTaskResponse
>
reviewSceneChangeTask
=
reviewSceneChangeTaskMapper
.
findPendingListByUserId
(
userId
,
request
);
List
<
ReviewSceneChangeTaskResponse
>
reviewSceneChangeTask
=
reviewSceneChangeTaskMapper
.
findPendingListByUserId
(
userId
,
request
);
//查询审核人员
//查询审核人员
List
<
Long
>
reviewerIdList
=
sysUserRoleMapper
.
selectReviewerIdByRoleId
(
103L
);
List
<
Long
>
reviewerIdList
=
sysUserRoleMapper
.
selectReviewerIdByRoleId
(
ReviewSceneChangeTask
.
REVIEW_ROLE_ID
);
List
<
SysUser
>
reviewerList
=
sysUserService
.
selectUserListByIds
(
reviewerIdList
);
List
<
SysUser
>
reviewerList
=
sysUserService
.
selectUserListByIds
(
reviewerIdList
);
Set
<
String
>
reviewerNameSet
=
new
HashSet
<>();
Set
<
String
>
reviewerNameSet
=
new
HashSet
<>();
for
(
SysUser
reviewer
:
reviewerList
){
for
(
SysUser
reviewer
:
reviewerList
){
...
@@ -306,6 +320,30 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -306,6 +320,30 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
return
reviewSceneChangeTask
;
return
reviewSceneChangeTask
;
}
}
/**
* 创新基地查询待办列表
* @return
*/
@Override
public
List
<
ReviewSceneChangeTaskResponse
>
findPendingList
(
Long
userId
,
ReviewSceneChangeTaskFindPendingRequest
request
)
{
List
<
ReviewSceneChangeTaskResponse
>
reviewSceneChangeTask
=
reviewSceneChangeTaskMapper
.
findPendingList
(
userId
,
request
);
//查询审核人员
List
<
Long
>
reviewerIdList
=
sysUserRoleMapper
.
selectReviewerIdByRoleId
(
ReviewSceneChangeTask
.
INNOVATION_BASE_ID
);
List
<
SysUser
>
reviewerList
=
sysUserService
.
selectUserListByIds
(
reviewerIdList
);
Set
<
String
>
reviewerNameSet
=
new
HashSet
<>();
for
(
SysUser
reviewer
:
reviewerList
){
reviewerNameSet
.
add
(
reviewer
.
getNickName
());
}
//生成创新基地人员名字字符串
String
reviewerNames
=
String
.
join
(
"、"
,
reviewerNameSet
);
for
(
ReviewSceneChangeTaskResponse
taskResponse
:
reviewSceneChangeTask
){
taskResponse
.
setReviewer
(
reviewerNames
);
}
return
reviewSceneChangeTask
;
}
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
View file @
771d4eb6
...
@@ -103,4 +103,17 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -103,4 +103,17 @@ public class ReviewSceneChangeTaskController extends BaseController {
return
R
.
ok
(
reviewSceneChangeTaskService
.
getBySceneChangeTaskId
(
request
.
getId
()));
return
R
.
ok
(
reviewSceneChangeTaskService
.
getBySceneChangeTaskId
(
request
.
getId
()));
}
}
/**
* 创新基地查询待办列表
* @return
*/
@ApiOperation
(
"创新基地查询待办列表"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/innovationBaseFindPending"
)
public
TableDataInfo
<
ReviewSceneChangeTaskResponse
>
innovationBaseFindPending
(
@Validated
@RequestBody
ReviewSceneChangeTaskFindPendingRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
reviewSceneChangeTaskService
.
findPendingList
(
getUserId
(),
request
));
}
}
}
quality-review/src/main/java/com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
View file @
771d4eb6
...
@@ -166,4 +166,7 @@ public class ReviewSceneChangeTaskResponse {
...
@@ -166,4 +166,7 @@ public class ReviewSceneChangeTaskResponse {
@ApiModelProperty
(
"评审人员"
)
@ApiModelProperty
(
"评审人员"
)
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
reviewer
;
private
String
reviewer
;
@ApiModelProperty
(
"创新基地结果"
)
private
String
innovationBaseResult
;
}
}
quality-review/src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
View file @
771d4eb6
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<result
property=
"taskEndTime"
column=
"task_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"taskEndTime"
column=
"task_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"inspectStandardId"
column=
"inspect_standard_id"
jdbcType=
"BIGINT"
/>
<result
property=
"inspectStandardId"
column=
"inspect_standard_id"
jdbcType=
"BIGINT"
/>
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"innovationBaseResult"
column=
"innovation_base_result"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<resultMap
id=
"ResponseResultMap"
type=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
<resultMap
id=
"ResponseResultMap"
type=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
...
@@ -47,6 +48,7 @@
...
@@ -47,6 +48,7 @@
<result
property=
"decision"
column=
"decision"
jdbcType=
"VARCHAR"
/>
<result
property=
"decision"
column=
"decision"
jdbcType=
"VARCHAR"
/>
<result
property=
"inspectStandardId"
column=
"inspect_standard_id"
jdbcType=
"BIGINT"
/>
<result
property=
"inspectStandardId"
column=
"inspect_standard_id"
jdbcType=
"BIGINT"
/>
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"inspectStandardNo"
column=
"inspect_standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"innovationBaseResult"
column=
"innovation_base_result"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<select
id=
"findLastChangeByTaskId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
<select
id=
"findLastChangeByTaskId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
...
@@ -60,6 +62,7 @@
...
@@ -60,6 +62,7 @@
SELECT sct.*, sctu.decision FROM t_review_scene_change_task sct
SELECT sct.*, sctu.decision FROM t_review_scene_change_task sct
LEFT JOIN t_review_scene_change_task_user_relation sctu ON sct.id = sctu.task_id
LEFT JOIN t_review_scene_change_task_user_relation sctu ON sct.id = sctu.task_id
WHERE sctu.user_id = #{userId} and sctu.decision IS NULL
WHERE sctu.user_id = #{userId} and sctu.decision IS NULL
and sct.innovation_base_result = 'PASS'
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
and sct.operation_sort = #{request.operationSort}
and sct.operation_sort = #{request.operationSort}
</if>
</if>
...
@@ -78,6 +81,7 @@
...
@@ -78,6 +81,7 @@
SELECT sct.*, sctu.decision FROM t_review_scene_change_task sct
SELECT sct.*, sctu.decision FROM t_review_scene_change_task sct
LEFT JOIN t_review_scene_change_task_user_relation sctu ON sct.id = sctu.task_id
LEFT JOIN t_review_scene_change_task_user_relation sctu ON sct.id = sctu.task_id
WHERE sctu.user_id = #{userId} and sctu.decision IS NOT NULL
WHERE sctu.user_id = #{userId} and sctu.decision IS NOT NULL
and sct.innovation_base_result = 'PASS'
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
and sct.operation_sort = #{request.operationSort}
and sct.operation_sort = #{request.operationSort}
</if>
</if>
...
@@ -114,5 +118,22 @@
...
@@ -114,5 +118,22 @@
<select
id=
"findSceneChangeTaskById"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
<select
id=
"findSceneChangeTaskById"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
select * from t_review_scene_change_task where id = #{id}
select * from t_review_scene_change_task where id = #{id}
</select>
</select>
<select
id=
"findPendingList"
resultType=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
SELECT sct.*, sctu.decision FROM t_review_scene_change_task sct
LEFT JOIN t_review_scene_change_task_user_relation sctu ON sct.id = sctu.task_id
WHERE sctu.user_id = #{userId} and sctu.decision IS NULL
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
and sct.operation_sort = #{request.operationSort}
</if>
<if
test=
"request.type != null and request.type != ''"
>
and sct.type = #{request.type}
</if>
<if
test=
"request.keyword != null and request.keyword != ''"
>
and (sct.old_text like concat('%',#{request.keyword},'%') || sct.new_text like concat('%',#{request.keyword},'%'))
</if>
<if
test=
"request.inspectStandardId != null and request.inspectStandardId != ''"
>
and inspect_standard_id = #{request.inspectStandardId}
</if>
</select>
</mapper>
</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