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
f784ff31
Commit
f784ff31
authored
Jan 08, 2024
by
王飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat
1、重构场景变更通知命名。 Reference N/A
parent
65b467da
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
26 deletions
+25
-26
ReviewTaskInbox.java
...eview/src/main/java/com/ruoyi/domain/ReviewTaskInbox.java
+4
-4
ReviewTaskInboxMapper.java
...src/main/java/com/ruoyi/mapper/ReviewTaskInboxMapper.java
+2
-2
ReviewTaskInboxService.java
...c/main/java/com/ruoyi/service/ReviewTaskInboxService.java
+2
-2
ReviewSceneChangeTaskServiceImpl.java
.../ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
+3
-3
ReviewTaskInboxServiceImpl.java
...va/com/ruoyi/service/impl/ReviewTaskInboxServiceImpl.java
+10
-10
ReviewTaskInboxMapper.xml
...eview/src/main/resources/mapper/ReviewTaskInboxMapper.xml
+4
-5
No files found.
quality-review/src/main/java/com/ruoyi/domain/
System
ReviewTaskInbox.java
→
quality-review/src/main/java/com/ruoyi/domain/ReviewTaskInbox.java
View file @
f784ff31
...
...
@@ -9,14 +9,14 @@ import lombok.Data;
import
lombok.experimental.Accessors
;
/**
*
体系审查
任务收件箱(目前用来获取审查场景变更通知)
* @TableName t_
system_
review_task_inbox
*
审查问卷
任务收件箱(目前用来获取审查场景变更通知)
* @TableName t_review_task_inbox
*/
@ApiModel
@TableName
(
value
=
"t_system_review_task_inbox"
)
@Accessors
(
chain
=
true
)
@Data
public
class
System
ReviewTaskInbox
{
public
class
ReviewTaskInbox
{
/**
* 主键
*/
...
...
@@ -28,7 +28,7 @@ public class SystemReviewTaskInbox {
* 体系审查任务id
*/
@ApiModelProperty
(
"体系审查任务id"
)
private
Long
systemR
eviewTaskId
;
private
Long
r
eviewTaskId
;
/**
* 场景变更任务id
...
...
quality-review/src/main/java/com/ruoyi/mapper/
System
ReviewTaskInboxMapper.java
→
quality-review/src/main/java/com/ruoyi/mapper/ReviewTaskInboxMapper.java
View file @
f784ff31
package
com
.
ruoyi
.
mapper
;
import
com.ruoyi.domain.
System
ReviewTaskInbox
;
import
com.ruoyi.domain.ReviewTaskInbox
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
...
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @createDate 2023-12-26 09:55:39
* @Entity com.ruoyi.domain.SystemReviewTaskInbox
*/
public
interface
SystemReviewTaskInboxMapper
extends
BaseMapper
<
System
ReviewTaskInbox
>
{
public
interface
ReviewTaskInboxMapper
extends
BaseMapper
<
ReviewTaskInbox
>
{
}
...
...
quality-review/src/main/java/com/ruoyi/service/
System
ReviewTaskInboxService.java
→
quality-review/src/main/java/com/ruoyi/service/ReviewTaskInboxService.java
View file @
f784ff31
package
com
.
ruoyi
.
service
;
import
com.ruoyi.domain.
System
ReviewTaskInbox
;
import
com.ruoyi.domain.ReviewTaskInbox
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
...
...
@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @description 针对表【t_system_review_task_inbox(体系审查任务收件箱(目前用来获取审查场景变更通知))】的数据库操作Service
* @createDate 2023-12-26 09:55:39
*/
public
interface
SystemReviewTaskInboxService
extends
IService
<
System
ReviewTaskInbox
>
{
public
interface
ReviewTaskInboxService
extends
IService
<
ReviewTaskInbox
>
{
/**
* 对受变更影响的问卷生成提醒消息
...
...
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneChangeTaskServiceImpl.java
View file @
f784ff31
...
...
@@ -11,7 +11,7 @@ import com.ruoyi.service.ReviewSceneChangeTaskService;
import
com.ruoyi.mapper.ReviewSceneChangeTaskMapper
;
import
com.ruoyi.service.ReviewSceneChangeTaskUserRelationService
;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.service.
System
ReviewTaskInboxService
;
import
com.ruoyi.service.ReviewTaskInboxService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -44,7 +44,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
private
ReviewSceneService
reviewSceneService
;
@Autowired
private
SystemReviewTaskInboxService
systemR
eviewTaskInboxService
;
private
ReviewTaskInboxService
r
eviewTaskInboxService
;
@Autowired
private
ReviewSceneChangeTaskMapper
reviewSceneChangeTaskMapper
;
...
...
@@ -129,7 +129,7 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
reviewSceneService
.
change
(
task
);
// 通知受影响的问卷
systemR
eviewTaskInboxService
.
saveNotify
(
taskId
,
task
.
getType
());
r
eviewTaskInboxService
.
saveNotify
(
taskId
,
task
.
getType
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/
System
ReviewTaskInboxServiceImpl.java
→
quality-review/src/main/java/com/ruoyi/service/impl/ReviewTaskInboxServiceImpl.java
View file @
f784ff31
...
...
@@ -6,10 +6,10 @@ import com.ruoyi.common.exception.ServiceException;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.
System
ReviewTaskInbox
;
import
com.ruoyi.domain.ReviewTaskInbox
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.service.
System
ReviewTaskInboxService
;
import
com.ruoyi.mapper.
System
ReviewTaskInboxMapper
;
import
com.ruoyi.service.ReviewTaskInboxService
;
import
com.ruoyi.mapper.ReviewTaskInboxMapper
;
import
com.ruoyi.service.SystemReviewTaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -25,7 +25,7 @@ import java.util.List;
*/
@Transactional
@Service
public
class
SystemReviewTaskInboxServiceImpl
extends
ServiceImpl
<
SystemReviewTaskInboxMapper
,
SystemReviewTaskInbox
>
implements
System
ReviewTaskInboxService
{
public
class
ReviewTaskInboxServiceImpl
extends
ServiceImpl
<
ReviewTaskInboxMapper
,
ReviewTaskInbox
>
implements
ReviewTaskInboxService
{
@Autowired
private
SystemReviewTaskService
systemReviewTaskService
;
...
...
@@ -60,11 +60,11 @@ public class SystemReviewTaskInboxServiceImpl extends ServiceImpl<SystemReviewTa
List
<
CarReviewTask
>
pendingTasks
=
carReviewTaskService
.
findListByReviewStatus
(
CarReviewTask
.
REVIEW_STATUS_PENDING
);
// 构建并保存提醒消息
List
<
System
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
List
<
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
for
(
CarReviewTask
task
:
pendingTasks
)
{
SystemReviewTaskInbox
inbox
=
new
System
ReviewTaskInbox
()
ReviewTaskInbox
inbox
=
new
ReviewTaskInbox
()
.
setReviewSceneChangeTaskId
(
reviewSceneChangeTaskId
)
.
set
System
ReviewTaskId
(
task
.
getId
())
.
setReviewTaskId
(
task
.
getId
())
.
setIsConfirm
(
0
);
inboxes
.
add
(
inbox
);
}
...
...
@@ -78,11 +78,11 @@ public class SystemReviewTaskInboxServiceImpl extends ServiceImpl<SystemReviewTa
List
<
SystemReviewTask
>
pendingTasks
=
systemReviewTaskService
.
findListByStatus
(
SystemReviewTask
.
STATUS_PENDING
);
// 构建并保存提醒消息
List
<
System
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
List
<
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
for
(
SystemReviewTask
task
:
pendingTasks
)
{
SystemReviewTaskInbox
inbox
=
new
System
ReviewTaskInbox
()
ReviewTaskInbox
inbox
=
new
ReviewTaskInbox
()
.
setReviewSceneChangeTaskId
(
reviewSceneChangeTaskId
)
.
set
System
ReviewTaskId
(
task
.
getId
())
.
setReviewTaskId
(
task
.
getId
())
.
setIsConfirm
(
0
);
inboxes
.
add
(
inbox
);
}
...
...
quality-review/src/main/resources/mapper/
System
ReviewTaskInboxMapper.xml
→
quality-review/src/main/resources/mapper/ReviewTaskInboxMapper.xml
View file @
f784ff31
...
...
@@ -2,17 +2,16 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.mapper.
System
ReviewTaskInboxMapper"
>
<mapper
namespace=
"com.ruoyi.mapper.ReviewTaskInboxMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.domain.
System
ReviewTaskInbox"
>
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.domain.ReviewTaskInbox"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"
systemReviewTaskId"
column=
"system_
review_task_id"
jdbcType=
"BIGINT"
/>
<result
property=
"
reviewTaskId"
column=
"
review_task_id"
jdbcType=
"BIGINT"
/>
<result
property=
"reviewSceneChangeTaskId"
column=
"review_scene_change_task_id"
jdbcType=
"BIGINT"
/>
<result
property=
"isConfirm"
column=
"is_confirm"
jdbcType=
"TINYINT"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,system_review_task_id,review_scene_change_task_id,
is_confirm
id,review_task_id,review_scene_change_task_id,is_confirm
</sql>
</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