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
5011229b
Commit
5011229b
authored
Dec 28, 2023
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询任务列表返回结果修改
parent
02966698
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
144 additions
and
4 deletions
+144
-4
ReviewSceneChangeTaskResponse.java
...com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
+121
-0
ReviewSceneChangeTaskMapper.xml
...src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
+23
-4
No files found.
quality-review/src/main/java/com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
0 → 100644
View file @
5011229b
package
com
.
ruoyi
.
web
.
response
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
ReviewSceneChangeTaskResponse
{
/**
* 主键
*/
private
Long
id
;
/**
* 任务编号
*/
private
String
taskNo
;
/**
* 章节
*/
private
String
chapter
;
/**
* 审查标准id
*/
private
Long
standardId
;
/**
* 审查标准
*/
private
String
standard
;
/**
* 审查要点id
*/
private
Long
keypointId
;
/**
* 审查要点
*/
private
String
keypoint
;
/**
* 审查细则id
*/
private
Long
detailsId
;
/**
* 审查细则
*/
private
String
details
;
/**
* 操作(ADD DELETE UPDATE)
*/
private
String
operation
;
/**
* 当 operation 为 ADD 时该字段为空
*/
private
String
oldText
;
/**
* 当 operation 为 DELETE 时该字段为空
*/
private
String
newText
;
/**
* 任务发起人姓名
*/
private
String
taskInitiator
;
/**
* 任务发起人部门
*/
private
String
taskInitiatorDept
;
/**
* 任务发起人Id
*/
private
Long
taskInitiatorId
;
/**
* 任务状态(PENDING、FINISH、CLOSE)
*/
private
String
taskStatus
;
/**
* 任务结果(PASS、REJECT)
*/
private
String
taskResult
;
/**
* 任务开始时间
*/
private
Date
taskBeginTime
;
/**
* 任务结束时间
*/
private
Date
taskEndTime
;
/**
* 备注
*/
private
String
remark
;
/**
* 审查场景id
* 若为修改、删除任务时,此id在创建任务时赋值
* 若为新增任务时,此id在审批通过并保存新场景后赋值
*/
private
Long
reviewSceneId
;
/**
* 本人审核意见(PASS、REJECT)
*/
private
String
decision
;
}
quality-review/src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
View file @
5011229b
...
...
@@ -22,6 +22,25 @@
<result
property=
"taskEndTime"
column=
"task_end_time"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<resultMap
id=
"ResponseResultMap"
type=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"taskNo"
column=
"no"
jdbcType=
"VARCHAR"
/>
<result
property=
"chapter"
column=
"chapter"
jdbcType=
"VARCHAR"
/>
<result
property=
"standard"
column=
"standard"
jdbcType=
"VARCHAR"
/>
<result
property=
"keypoint"
column=
"keypoint"
jdbcType=
"VARCHAR"
/>
<result
property=
"details"
column=
"details"
jdbcType=
"VARCHAR"
/>
<result
property=
"operation"
column=
"operation"
jdbcType=
"VARCHAR"
/>
<result
property=
"oldText"
column=
"old_text"
jdbcType=
"VARCHAR"
/>
<result
property=
"newText"
column=
"new_text"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskInitiator"
column=
"task_initiator"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskInitiatorDept"
column=
"task_initiator_dept"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskStatus"
column=
"task_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskResult"
column=
"task_result"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskBeginTime"
column=
"task_begin_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"taskEndTime"
column=
"task_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"decision"
column=
"decision"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"findLastChangeByTaskId"
resultType=
"com.ruoyi.domain.ReviewSceneChangeTask"
>
SELECT * FROM t_review_scene_change_task WHERE id IN
(
...
...
@@ -29,14 +48,14 @@
)
</select>
<select
id=
"findPendingListByUserId"
resultType=
"com.ruoyi.
domain.ReviewSceneChangeTask
"
>
SELECT sct.* FROM t_review_scene_change_task sct
<select
id=
"findPendingListByUserId"
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
</select>
<select
id=
"findFinishListByUserId"
resultType=
"com.ruoyi.
domain.ReviewSceneChangeTask
"
>
SELECT sct.* FROM t_review_scene_change_task sct
<select
id=
"findFinishListByUserId"
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 NOT NULL
</select>
...
...
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