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
a223623e
Commit
a223623e
authored
Jan 19, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询待审列表&查询处理中总任务
parent
74ebac6f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
7 deletions
+35
-7
ReviewSceneChangeTaskMapper.java
...in/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
+2
-1
ReviewSceneChangeTaskService.java
.../java/com/ruoyi/service/ReviewSceneChangeTaskService.java
+2
-1
ReviewSceneChangeTaskServiceImpl.java
.../ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
+3
-2
ReviewSceneChangeTaskController.java
...n/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
+1
-1
ReviewSceneChangeTaskFindPendingRequest.java
.../web/request/ReviewSceneChangeTaskFindPendingRequest.java
+13
-1
ReviewSceneChangeTaskResponse.java
...com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
+3
-0
ReviewSceneChangeTaskMapper.xml
...src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
+10
-0
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewSceneChangeTaskMapper.java
View file @
a223623e
...
@@ -2,6 +2,7 @@ package com.ruoyi.mapper;
...
@@ -2,6 +2,7 @@ package com.ruoyi.mapper;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -25,7 +26,7 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
...
@@ -25,7 +26,7 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
* @param userId
* @param userId
* @return
* @return
*/
*/
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
@Param
(
"userId"
)
Long
userId
);
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
@Param
(
"userId"
)
Long
userId
,
@Param
(
"request"
)
ReviewSceneChangeTaskFindPendingRequest
request
);
/**
/**
* 根据用户ID查询已办列表
* 根据用户ID查询已办列表
...
...
quality-review/src/main/java/com/ruoyi/service/ReviewSceneChangeTaskService.java
View file @
a223623e
...
@@ -2,6 +2,7 @@ package com.ruoyi.service;
...
@@ -2,6 +2,7 @@ package com.ruoyi.service;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
...
@@ -58,7 +59,7 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
...
@@ -58,7 +59,7 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
* @param userId
* @param userId
* @return
* @return
*/
*/
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
Long
userId
);
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
Long
userId
,
ReviewSceneChangeTaskFindPendingRequest
request
);
/**
/**
* 根据用户ID查询已办列表
* 根据用户ID查询已办列表
...
...
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
View file @
a223623e
...
@@ -13,6 +13,7 @@ import com.ruoyi.service.ReviewSceneChangeTaskUserRelationService;
...
@@ -13,6 +13,7 @@ import com.ruoyi.service.ReviewSceneChangeTaskUserRelationService;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.service.ReviewTaskInboxService
;
import
com.ruoyi.service.ReviewTaskInboxService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -206,8 +207,8 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
...
@@ -206,8 +207,8 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
* @return
* @return
*/
*/
@Override
@Override
public
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
Long
userId
)
{
public
List
<
ReviewSceneChangeTaskResponse
>
findPendingListByUserId
(
Long
userId
,
ReviewSceneChangeTaskFindPendingRequest
request
)
{
List
<
ReviewSceneChangeTaskResponse
>
reviewSceneChangeTask
=
reviewSceneChangeTaskMapper
.
findPendingListByUserId
(
userId
);
List
<
ReviewSceneChangeTaskResponse
>
reviewSceneChangeTask
=
reviewSceneChangeTaskMapper
.
findPendingListByUserId
(
userId
,
request
);
return
reviewSceneChangeTask
;
return
reviewSceneChangeTask
;
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
View file @
a223623e
...
@@ -67,7 +67,7 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -67,7 +67,7 @@ public class ReviewSceneChangeTaskController extends BaseController {
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findPending"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findPending"
)
public
TableDataInfo
<
ReviewSceneChangeTaskResponse
>
findPending
(
@Validated
@RequestBody
ReviewSceneChangeTaskFindPendingRequest
request
)
{
public
TableDataInfo
<
ReviewSceneChangeTaskResponse
>
findPending
(
@Validated
@RequestBody
ReviewSceneChangeTaskFindPendingRequest
request
)
{
startPage
(
request
);
startPage
(
request
);
return
getDataTable
(
reviewSceneChangeTaskService
.
findPendingListByUserId
(
getUserId
()));
return
getDataTable
(
reviewSceneChangeTaskService
.
findPendingListByUserId
(
getUserId
()
,
request
));
}
}
/**
/**
...
...
quality-review/src/main/java/com/ruoyi/web/request/ReviewSceneChangeTaskFindPendingRequest.java
View file @
a223623e
...
@@ -2,7 +2,19 @@ package com.ruoyi.web.request;
...
@@ -2,7 +2,19 @@ package com.ruoyi.web.request;
import
com.ruoyi.common.core.page.PageDomain
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
@ApiModel
(
value
=
"ReviewSceneChangeTaskFindPendingRequest"
,
description
=
"查询处理中的任务"
)
@Data
public
class
ReviewSceneChangeTaskFindPendingRequest
extends
PageDomain
{
public
class
ReviewSceneChangeTaskFindPendingRequest
extends
PageDomain
{
@ApiModelProperty
(
"评审类型"
)
private
String
operationSort
;
@ApiModelProperty
(
"条款分类[system(体系审查)、car(车型审查)]"
)
private
String
type
;
@ApiModelProperty
(
"关键词"
)
private
String
keyword
;
}
}
quality-review/src/main/java/com/ruoyi/web/response/ReviewSceneChangeTaskResponse.java
View file @
a223623e
...
@@ -40,6 +40,9 @@ public class ReviewSceneChangeTaskResponse {
...
@@ -40,6 +40,9 @@ public class ReviewSceneChangeTaskResponse {
@ApiModelProperty
(
"审查标准"
)
@ApiModelProperty
(
"审查标准"
)
private
String
standard
;
private
String
standard
;
@ApiModelProperty
(
"检查类型[system(体系审查)、car(车型审查)]"
)
private
String
type
;
/**
/**
* 审查要点id
* 审查要点id
*/
*/
...
...
quality-review/src/main/resources/mapper/ReviewSceneChangeTaskMapper.xml
View file @
a223623e
...
@@ -56,6 +56,16 @@
...
@@ -56,6 +56,16 @@
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
<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>
order by sct.task_begin_time desc
</select>
</select>
<select
id=
"findFinishListByUserId"
resultType=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
<select
id=
"findFinishListByUserId"
resultType=
"com.ruoyi.web.response.ReviewSceneChangeTaskResponse"
>
...
...
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
a223623e
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
and t.task_begin_time = #{taskBeginTime}
and t.task_begin_time = #{taskBeginTime}
</if>
</if>
<if
test=
"subStatus != null and subStatus != ''"
>
<if
test=
"subStatus != null and subStatus != ''"
>
and
review_status = #{subStatus} OR car_review_status = #{subStatus} OR car_test_status = #{subStatus}
and
(srt.task_status = #{subStatus} OR crt.review_status = #{subStatus} OR crt.test_status = #{subStatus})
</if>
</if>
</where>
</where>
</select>
</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