Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
5a7f5891
Commit
5a7f5891
authored
Sep 05, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'songyuanshuo' into 'master'
修改查询评审列表sql See merge request
!5
parents
f4fe5804
55f19a4e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ReviewSceneChangeTaskServiceImpl.java
.../ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
+2
-0
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+2
-0
ReviewSceneChangeTaskMapper.xml
...src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
+1
-3
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
View file @
5a7f5891
...
@@ -178,6 +178,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -178,6 +178,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
if
(
task
.
getTaskResult
().
equals
(
ReviewSceneChangeTaskUserRelation
.
DECISION_PASS
))
{
if
(
task
.
getTaskResult
().
equals
(
ReviewSceneChangeTaskUserRelation
.
DECISION_PASS
))
{
// 更新审核标准
// 更新审核标准
reviewSceneService
.
change
(
task
);
reviewSceneService
.
change
(
task
);
// TODO 评审通过修改标准版本号,每月第一天次数从1开始
//场景变更时发送信息
//场景变更时发送信息
if
(
Objects
.
equals
(
task
.
getOperationSort
(),
"ADD_SCENE"
)
||
Objects
.
equals
(
task
.
getOperationSort
(),
"DELETE_SCENE"
))
{
if
(
Objects
.
equals
(
task
.
getOperationSort
(),
"ADD_SCENE"
)
||
Objects
.
equals
(
task
.
getOperationSort
(),
"DELETE_SCENE"
))
{
...
@@ -521,6 +522,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -521,6 +522,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
public
List
<
SysUser
>
getReviewList
()
{
public
List
<
SysUser
>
getReviewList
()
{
// 获取用户ID列表
// 获取用户ID列表
List
<
Long
>
reviewerIdList
=
sysUserRoleMapper
.
selectReviewerIdByRoleId
(
ReviewSceneChangeTask
.
REVIEW_ROLE_ID
);
List
<
Long
>
reviewerIdList
=
sysUserRoleMapper
.
selectReviewerIdByRoleId
(
ReviewSceneChangeTask
.
REVIEW_ROLE_ID
);
System
.
out
.
println
(
reviewerIdList
+
"========"
);
// 获取用户列表
// 获取用户列表
List
<
SysUser
>
reviewerList
=
sysUserService
.
selectUserListByIds
(
reviewerIdList
);
List
<
SysUser
>
reviewerList
=
sysUserService
.
selectUserListByIds
(
reviewerIdList
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
5a7f5891
...
@@ -113,6 +113,8 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
...
@@ -113,6 +113,8 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
// 4. 修改任务状态为 SIGNED 待签字
// 4. 修改任务状态为 SIGNED 待签字
systemReviewTask
.
setTaskStatus
(
SystemReviewTask
.
STATUS_SIGNED
);
systemReviewTask
.
setTaskStatus
(
SystemReviewTask
.
STATUS_SIGNED
);
// TODO setsystemReviewTask.version的值,根据任务的standardId从t_standard表查到current_version的值
// 5. 设置问卷结果
// 5. 设置问卷结果
if
(
reviewDetailsResultMapper
.
findNotPass
(
systemReviewTask
.
getId
())
>
0
)
{
if
(
reviewDetailsResultMapper
.
findNotPass
(
systemReviewTask
.
getId
())
>
0
)
{
systemReviewTask
.
setTaskResult
(
"REJECT"
);
systemReviewTask
.
setTaskResult
(
"REJECT"
);
...
...
quality-review/src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
View file @
5a7f5891
...
@@ -62,7 +62,6 @@
...
@@ -62,7 +62,6 @@
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 and sctu.role_id = 103
WHERE sctu.user_id = #{userId} and sctu.decision IS NULL and sctu.role_id = 103
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>
...
@@ -82,7 +81,6 @@
...
@@ -82,7 +81,6 @@
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 and sctu.role_id = 103
WHERE sctu.user_id = #{userId} and sctu.decision IS NOT NULL and sctu.role_id = 103
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>
...
@@ -101,7 +99,7 @@
...
@@ -101,7 +99,7 @@
<select
id=
"findCreateListByUserId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
<select
id=
"findCreateListByUserId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
SELECT * FROM t_review_scene_change_task
SELECT * FROM t_review_scene_change_task
WHERE task_initiator_id = #{userId}
and innovation_base_result = 'PASS'
WHERE task_initiator_id = #{userId}
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
<if
test=
"request.operationSort != null and request.operationSort != ''"
>
and operation_sort = #{request.operationSort}
and operation_sort = #{request.operationSort}
</if>
</if>
...
...
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