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
5778c8eb
Commit
5778c8eb
authored
Jan 25, 2024
by
王飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
字段修改,车辆问卷状态修改 See merge request
!59
parents
4c6ab9b0
b51a6844
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
50 additions
and
117 deletions
+50
-117
CarReviewTask.java
...-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
+10
-59
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+6
-13
ReviewTaskInboxServiceImpl.java
...va/com/ruoyi/service/impl/ReviewTaskInboxServiceImpl.java
+1
-1
StrategyCarReviewTaskFinish.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
+1
-1
StrategyCarReviewTaskNew.java
...java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
+3
-3
StrategyCarReviewTaskNone.java
...ava/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
+1
-1
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+4
-4
StrategyCarReviewTaskSigned.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
+6
-6
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+5
-7
CarReviewTaskMapper.xml
...-review/src/main/resources/mapper/CarReviewTaskMapper.xml
+9
-16
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+4
-6
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
5778c8eb
...
@@ -22,40 +22,21 @@ import lombok.experimental.Accessors;
...
@@ -22,40 +22,21 @@ import lombok.experimental.Accessors;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@Data
@Data
public
class
CarReviewTask
implements
Serializable
{
public
class
CarReviewTask
implements
Serializable
{
@TableField
(
exist
=
false
)
public
static
final
String
TASK_STATUS_NEW
=
"NEW"
;
@TableField
(
exist
=
false
)
public
static
final
String
TASK_STATUS_PENDING
=
"PENDING"
;
@TableField
(
exist
=
false
)
public
static
final
String
TASK_STATUS_FINISH
=
"FINISH"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
TYPE
=
"car"
;
public
static
final
String
TYPE
=
"car"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW
_STATUS_NONE
=
"NONE"
;
public
static
final
String
TASK
_STATUS_NONE
=
"NONE"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_NEW
=
"NEW"
;
public
static
final
String
TASK_STATUS_NEW
=
"NEW"
;
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_PENDING
=
"PENDING"
;
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_SIGNED
=
"SIGNED"
;
@TableField
(
exist
=
false
)
public
static
final
String
REVIEW_STATUS_FINISH
=
"FINISH"
;
@TableField
(
exist
=
false
)
public
static
final
String
TEST_STATUS_NONE
=
"NONE"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
T
EST_STATUS_NEW
=
"NEW
"
;
public
static
final
String
T
ASK_STATUS_PENDING
=
"PENDING
"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
T
EST_STATUS_PENDING
=
"PENDING
"
;
public
static
final
String
T
ASK_STATUS_SIGNED
=
"SIGNED
"
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
public
static
final
String
T
EST
_STATUS_FINISH
=
"FINISH"
;
public
static
final
String
T
ASK
_STATUS_FINISH
=
"FINISH"
;
/**
/**
* 主键
* 主键
...
@@ -74,7 +55,7 @@ public class CarReviewTask implements Serializable {
...
@@ -74,7 +55,7 @@ public class CarReviewTask implements Serializable {
/**
/**
* 任务状态(PENDING、FINISH)
* 任务状态(PENDING、FINISH)
*/
*/
@ApiModelProperty
(
"任务状态
(PENDING、FINISH)
"
)
@ApiModelProperty
(
"任务状态
[NONE、NEW、PENDING、FINISH]
"
)
private
String
taskStatus
;
private
String
taskStatus
;
/**
/**
...
@@ -158,50 +139,20 @@ public class CarReviewTask implements Serializable {
...
@@ -158,50 +139,20 @@ public class CarReviewTask implements Serializable {
@ApiModelProperty
(
"文件路径"
)
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
private
String
file
;
/**
* 车型问卷审查任务状态[NONE、NEW、PENDING、FINISH]
*/
@ApiModelProperty
(
"车型问卷审查任务状态[NONE、NEW、PENDING、FINISH]"
)
private
String
reviewStatus
;
/**
* 车型测试任务状态[NONE、NEW、PENDING、FINISH]
*/
@ApiModelProperty
(
"车型测试任务状态[NONE、NEW、PENDING、FINISH]"
)
private
String
testStatus
;
/**
* 车型问卷开始时间
*/
@ApiModelProperty
(
"车型问卷开始时间"
)
private
Date
reviewStartTime
;
/**
* 车型问卷提交时间
*/
@ApiModelProperty
(
"车型问卷提交时间"
)
private
Date
reviewSubmitTime
;
/**
/**
* 车型问卷提交人id
* 车型问卷提交人id
*/
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@ApiModelProperty
(
"
车型问卷
提交人id"
)
@ApiModelProperty
(
"提交人id"
)
private
Long
reviewS
ubmitId
;
private
Long
s
ubmitId
;
/**
/**
* 车型问卷提交人姓名
* 车型问卷提交人姓名
*/
*/
@ApiModelProperty
(
"车型问卷提交人姓名"
)
@ApiModelProperty
(
"车型问卷提交人姓名"
)
private
String
reviewSubmitName
;
private
String
submitName
;
/**
* 车型问卷审查结果
*/
@ApiModelProperty
(
"车型问卷审查结果"
)
private
String
reviewResult
;
@ApiModelProperty
(
"问卷签名图片地址"
)
@ApiModelProperty
(
"问卷签名图片地址"
)
private
String
reviewI
magesUrl
;
private
String
i
magesUrl
;
}
}
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
5778c8eb
...
@@ -87,21 +87,14 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
...
@@ -87,21 +87,14 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
.
setLeaderId
(
leader
.
getUserId
())
.
setLeaderId
(
leader
.
getUserId
())
.
setLeader
(
leader
.
getName
())
.
setLeader
(
leader
.
getName
())
.
setCreateTime
(
new
Date
())
.
setCreateTime
(
new
Date
())
.
setTaskBeginTime
(
new
Date
())
.
setStandardId
(
standard
.
getId
())
.
setStandardId
(
standard
.
getId
())
.
setName
(
standard
.
getName
())
.
setName
(
standard
.
getName
())
.
setStandardNo
(
standard
.
getStandardNo
())
.
setStandardNo
(
standard
.
getStandardNo
())
.
setFile
(
standard
.
getFile
());
.
setFile
(
standard
.
getFile
());
if
(
request
.
getReview
())
{
if
(
request
.
getReview
())
{
task
.
set
ReviewStatus
(
CarReviewTask
.
REVIEW
_STATUS_NEW
);
task
.
set
TaskStatus
(
CarReviewTask
.
TASK
_STATUS_NEW
);
}
else
{
}
else
{
task
.
setReviewStatus
(
CarReviewTask
.
REVIEW_STATUS_NONE
);
task
.
setTaskStatus
(
CarReviewTask
.
TASK_STATUS_NONE
);
}
if
(
request
.
getTest
())
{
task
.
setTestStatus
(
CarReviewTask
.
TEST_STATUS_NEW
);
}
else
{
task
.
setTestStatus
(
CarReviewTask
.
TEST_STATUS_NONE
);
}
}
carReviewTaskService
.
save
(
task
);
carReviewTaskService
.
save
(
task
);
...
@@ -117,27 +110,27 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
...
@@ -117,27 +110,27 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override
@Override
public
CarReviewTaskViewResponse
viewReviewTask
(
Long
taskId
)
{
public
CarReviewTaskViewResponse
viewReviewTask
(
Long
taskId
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
taskId
);
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
taskId
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Review
Status
()).
doView
(
carReviewTask
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Task
Status
()).
doView
(
carReviewTask
);
}
}
@Override
@Override
public
void
startReviewTask
(
CarReviewTaskStartRequest
request
)
{
public
void
startReviewTask
(
CarReviewTaskStartRequest
request
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Review
Status
()).
doStartReview
(
carReviewTask
);
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Task
Status
()).
doStartReview
(
carReviewTask
);
}
}
@Override
@Override
public
void
confirmReviewTask
(
CarReviewTaskConfirmRequest
request
)
{
public
void
confirmReviewTask
(
CarReviewTaskConfirmRequest
request
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Review
Status
()).
doConfirmReview
(
carReviewTask
);
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Task
Status
()).
doConfirmReview
(
carReviewTask
);
}
}
@Override
@Override
public
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
)
{
public
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
request
.
getTaskId
());
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Review
Status
()).
doSubmitReview
(
carReviewTask
,
request
.
getImagesUrl
());
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Task
Status
()).
doSubmitReview
(
carReviewTask
,
request
.
getImagesUrl
());
}
}
@Override
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/ReviewTaskInboxServiceImpl.java
View file @
5778c8eb
...
@@ -72,7 +72,7 @@ public class ReviewTaskInboxServiceImpl extends ServiceImpl<ReviewTaskInboxMappe
...
@@ -72,7 +72,7 @@ public class ReviewTaskInboxServiceImpl extends ServiceImpl<ReviewTaskInboxMappe
public
void
doSaveNotifyByCarReview
(
Long
reviewSceneChangeTaskId
)
{
public
void
doSaveNotifyByCarReview
(
Long
reviewSceneChangeTaskId
)
{
// 查找所有受变更影响的体系审查任务(所有PENDING状态的任务)
// 查找所有受变更影响的体系审查任务(所有PENDING状态的任务)
List
<
CarReviewTask
>
pendingTasks
=
carReviewTaskService
.
findListBy
ReviewStatus
(
CarReviewTask
.
REVIEW
_STATUS_PENDING
);
List
<
CarReviewTask
>
pendingTasks
=
carReviewTaskService
.
findListBy
Status
(
CarReviewTask
.
TASK
_STATUS_PENDING
);
// 构建并保存提醒消息
// 构建并保存提醒消息
List
<
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
List
<
ReviewTaskInbox
>
inboxes
=
new
ArrayList
();
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
View file @
5778c8eb
...
@@ -50,6 +50,6 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
...
@@ -50,6 +50,6 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
REVIEW
_STATUS_FINISH
,
applicationContext
.
getBean
(
this
.
getClass
()));
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
TASK
_STATUS_FINISH
,
applicationContext
.
getBean
(
this
.
getClass
()));
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
View file @
5778c8eb
...
@@ -56,8 +56,8 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
...
@@ -56,8 +56,8 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
@Override
@Override
public
void
doStartReview
(
CarReviewTask
carReviewTask
)
{
public
void
doStartReview
(
CarReviewTask
carReviewTask
)
{
carReviewTask
.
set
ReviewStart
Time
(
new
Date
());
carReviewTask
.
set
TaskBegin
Time
(
new
Date
());
carReviewTask
.
set
ReviewStatus
(
CarReviewTask
.
REVIEW
_STATUS_PENDING
);
carReviewTask
.
set
TaskStatus
(
CarReviewTask
.
TASK
_STATUS_PENDING
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
}
}
...
@@ -73,6 +73,6 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
...
@@ -73,6 +73,6 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
REVIEW
_STATUS_NEW
,
applicationContext
.
getBean
(
this
.
getClass
()));
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
TASK
_STATUS_NEW
,
applicationContext
.
getBean
(
this
.
getClass
()));
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
View file @
5778c8eb
...
@@ -45,6 +45,6 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
...
@@ -45,6 +45,6 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
REVIEW
_STATUS_NONE
,
applicationContext
.
getBean
(
this
.
getClass
()));
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
TASK
_STATUS_NONE
,
applicationContext
.
getBean
(
this
.
getClass
()));
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
5778c8eb
...
@@ -108,13 +108,13 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -108,13 +108,13 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
carReviewTask
.
setStandard
(
standardTree
);
carReviewTask
.
setStandard
(
standardTree
);
// 4. 修改任务状态为 SIGNED 待签字
// 4. 修改任务状态为 SIGNED 待签字
carReviewTask
.
set
ReviewStatus
(
CarReviewTask
.
REVIEW
_STATUS_SIGNED
);
carReviewTask
.
set
TaskStatus
(
CarReviewTask
.
TASK
_STATUS_SIGNED
);
// 7. 设置问卷结果
// 7. 设置问卷结果
if
(
reviewDetailsResultMapper
.
findNotPass
(
carReviewTask
.
getId
())
>
0
)
{
if
(
reviewDetailsResultMapper
.
findNotPass
(
carReviewTask
.
getId
())
>
0
)
{
carReviewTask
.
set
Review
Result
(
"REJECT"
);
carReviewTask
.
set
Task
Result
(
"REJECT"
);
}
else
{
}
else
{
carReviewTask
.
set
Review
Result
(
"PASS"
);
carReviewTask
.
set
Task
Result
(
"PASS"
);
}
}
carReviewTaskMapper
.
updateById
(
carReviewTask
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
}
}
...
@@ -151,6 +151,6 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -151,6 +151,6 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
REVIEW
_STATUS_PENDING
,
applicationContext
.
getBean
(
this
.
getClass
()));
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
TASK
_STATUS_PENDING
,
applicationContext
.
getBean
(
this
.
getClass
()));
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
View file @
5778c8eb
...
@@ -63,19 +63,19 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -63,19 +63,19 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
// 1. 填充review_submit_time
// 1. 填充review_submit_time
carReviewTask
.
set
ReviewSubmit
Time
(
new
Date
());
carReviewTask
.
set
TaskEnd
Time
(
new
Date
());
// 2. 修改任务状态为 FINISH
// 2. 修改任务状态为 FINISH
carReviewTask
.
set
ReviewStatus
(
CarReviewTask
.
REVIEW
_STATUS_FINISH
);
carReviewTask
.
set
TaskStatus
(
CarReviewTask
.
TASK
_STATUS_FINISH
);
// 3. 填写当前用户id
// 3. 填写当前用户id
// 获取当前登陆人
// 获取当前登陆人
SysUser
loginUser
=
SecurityUtils
.
getLoginUser
().
getUser
();
SysUser
loginUser
=
SecurityUtils
.
getLoginUser
().
getUser
();
carReviewTask
.
set
Review
SubmitId
(
loginUser
.
getUserId
());
carReviewTask
.
setSubmitId
(
loginUser
.
getUserId
());
carReviewTask
.
set
Review
SubmitName
(
loginUser
.
getNickName
());
carReviewTask
.
setSubmitName
(
loginUser
.
getNickName
());
// 4. 保存签名图片地址
// 4. 保存签名图片地址
carReviewTask
.
set
Review
ImagesUrl
(
imagesUrl
);
carReviewTask
.
setImagesUrl
(
imagesUrl
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
...
@@ -84,6 +84,6 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -84,6 +84,6 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
REVIEW
_STATUS_SIGNED
,
applicationContext
.
getBean
(
this
.
getClass
()));
strategyCarReviewTaskContext
.
putResource
(
CarReviewTask
.
TASK
_STATUS_SIGNED
,
applicationContext
.
getBean
(
this
.
getClass
()));
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
5778c8eb
...
@@ -104,7 +104,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -104,7 +104,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
// 保存体系审查任务
// 保存体系审查任务
systemReviewTaskId
=
saveSystemReview
(
request
,
initiator
,
standard
,
leader
);
systemReviewTaskId
=
saveSystemReview
(
request
,
initiator
,
standard
,
leader
);
}
}
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
)
||
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_TRFIS
)
)
{
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
))
{
// 保存车型审查问卷任务
// 保存车型审查问卷任务
carReviewTaskId
=
saveCarReview
(
request
,
initiator
,
standard
,
leader
);
carReviewTaskId
=
saveCarReview
(
request
,
initiator
,
standard
,
leader
);
}
}
...
@@ -126,10 +126,10 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -126,10 +126,10 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
List
<
TaskFindPendingResponse
>
responses
=
taskMapper
.
findPending
(
request
);
List
<
TaskFindPendingResponse
>
responses
=
taskMapper
.
findPending
(
request
);
for
(
TaskFindPendingResponse
response
:
responses
)
{
for
(
TaskFindPendingResponse
response
:
responses
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
response
.
setSystemReview
(
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
"system"
));
response
.
setSystemReview
(
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
SystemReviewTask
.
TYPE
));
}
}
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
response
.
setCarReview
(
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
"car"
));
response
.
setCarReview
(
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
CarReviewTask
.
TYPE
));
}
}
}
}
return
responses
;
return
responses
;
...
@@ -207,7 +207,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -207,7 +207,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
.
setTaskNo
(
request
.
getTaskNo
())
.
setTaskNo
(
request
.
getTaskNo
())
.
setTaskInitiator
(
initiator
.
getNickName
())
.
setTaskInitiator
(
initiator
.
getNickName
())
.
setTaskInitiatorDept
(
initiator
.
getDept
().
getDeptName
())
.
setTaskInitiatorDept
(
initiator
.
getDept
().
getDeptName
())
.
setTaskStatus
(
CarReviewTask
.
TASK_STATUS_NEW
)
.
setTaskStatus
(
taskList
.
contains
(
Task
.
SUB_TASK_GRFIS
)
?
CarReviewTask
.
TASK_STATUS_NEW
:
CarReviewTask
.
TASK_STATUS_NONE
)
.
setLeaderId
(
leader
.
getUserId
())
.
setLeaderId
(
leader
.
getUserId
())
.
setLeader
(
leader
.
getName
())
.
setLeader
(
leader
.
getName
())
.
setCreateTime
(
new
Date
())
.
setCreateTime
(
new
Date
())
...
@@ -215,9 +215,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -215,9 +215,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
.
setStandardId
(
standard
.
getId
())
.
setStandardId
(
standard
.
getId
())
.
setName
(
standard
.
getName
())
.
setName
(
standard
.
getName
())
.
setStandardNo
(
standard
.
getStandardNo
())
.
setStandardNo
(
standard
.
getStandardNo
())
.
setFile
(
standard
.
getFile
())
.
setFile
(
standard
.
getFile
());
.
setReviewStatus
(
taskList
.
contains
(
Task
.
SUB_TASK_GRFIS
)
?
CarReviewTask
.
REVIEW_STATUS_NEW
:
CarReviewTask
.
REVIEW_STATUS_NONE
)
.
setTestStatus
(
taskList
.
contains
(
Task
.
SUB_TASK_TRFIS
)
?
CarReviewTask
.
TEST_STATUS_NEW
:
CarReviewTask
.
TEST_STATUS_NONE
);
carReviewTaskService
.
save
(
task
);
carReviewTaskService
.
save
(
task
);
return
task
.
getId
();
return
task
.
getId
();
...
...
quality-review/src/main/resources/mapper/CarReviewTaskMapper.xml
View file @
5778c8eb
...
@@ -21,14 +21,9 @@
...
@@ -21,14 +21,9 @@
<result
property=
"name"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"name"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"standardNo"
column=
"standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"standardNo"
column=
"standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"file"
column=
"file"
jdbcType=
"VARCHAR"
/>
<result
property=
"file"
column=
"file"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStatus"
column=
"review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"submitId"
column=
"submit_id"
jdbcType=
"BIGINT"
/>
<result
property=
"testStatus"
column=
"test_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"submitName"
column=
"submit_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStartTime"
column=
"review_start_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"imagesUrl"
column=
"images_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewSubmitTime"
column=
"review_submit_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"reviewSubmitId"
column=
"review_submit_id"
jdbcType=
"BIGINT"
/>
<result
property=
"reviewSubmitName"
column=
"review_submit_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewResult"
column=
"review_result"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewImagesUrl"
column=
"review_images_url"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -37,19 +32,17 @@
...
@@ -37,19 +32,17 @@
task_begin_time,task_end_time,standard,
task_begin_time,task_end_time,standard,
create_time,leader_id,
create_time,leader_id,
leader,standard_id,name,
leader,standard_id,name,
standard_no,file,review_status,
standard_no,file,
test_status,review_start_time,
submit_id,
review_submit_time,
submit_name,
review_submit_id,
images_url
review_submit_name,
review_result,review_images_url
</sql>
</sql>
<select
id=
"findListByReviewStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
<select
id=
"findListByReviewStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,create_time,leader_id,leader,standard_id,name,standard_no,file,
review_status,test_status,review_start_time,review_submit_time,review_submit_id,review_submit_name,review_result,review_
images_url
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,create_time,leader_id,leader,standard_id,name,standard_no,file,
submit_id,submit_name,
images_url
FROM t_car_review_task WHERE review_status = #{reviewStatus} AND task_status = 'PENDING'
FROM t_car_review_task WHERE review_status = #{reviewStatus} AND task_status = 'PENDING'
</select>
</select>
<select
id=
"findListByTaskStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
<select
id=
"findListByTaskStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,create_time,leader_id,leader,standard_id,name,standard_no,file,
review_status,test_status,review_start_time,review_submit_time,review_submit_id,review_submit_name,review_result,review_
images_url
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,create_time,leader_id,leader,standard_id,name,standard_no,file,
submit_id,submit_name,
images_url
FROM t_car_review_task WHERE task_status = #{taskStatus}
FROM t_car_review_task WHERE task_status = #{taskStatus}
</select>
</select>
</mapper>
</mapper>
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
5778c8eb
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
<result
property=
"leader"
column=
"leader"
jdbcType=
"VARCHAR"
/>
<result
property=
"leader"
column=
"leader"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStatus"
column=
"review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStatus"
column=
"review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"carReviewStatus"
column=
"car_review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"carReviewStatus"
column=
"car_review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"carTestStatus"
column=
"car_test_status"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<select
id=
"findList"
parameterType=
"com.ruoyi.web.request.TaskListRequest"
resultMap=
"BaseResultMap"
>
<select
id=
"findList"
parameterType=
"com.ruoyi.web.request.TaskListRequest"
resultMap=
"BaseResultMap"
>
...
@@ -91,10 +90,9 @@
...
@@ -91,10 +90,9 @@
srt.task_begin_time system_task_begin_time,
srt.task_begin_time system_task_begin_time,
srt.task_end_time system_task_end_time,
srt.task_end_time system_task_end_time,
srt.task_status review_status,
srt.task_status review_status,
crt.review_start_time car_task_begin_time,
crt.task_begin_time car_task_begin_time,
crt.review_submit_time car_task_end_time,
crt.task_end_time car_task_end_time,
crt.review_status car_review_status,
crt.task_status car_review_status
crt.test_status car_test_status
FROM t_task t
FROM t_task t
left join t_system_review_task srt on t.system_review_task_id = srt.id
left join t_system_review_task srt on t.system_review_task_id = srt.id
left join t_car_review_task crt on t.car_review_task_id = crt.id
left join t_car_review_task crt on t.car_review_task_id = crt.id
...
@@ -107,7 +105,7 @@
...
@@ -107,7 +105,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 (srt.task_status = #{subStatus} OR crt.
review_status = #{subStatus} OR crt.test
_status = #{subStatus})
and (srt.task_status = #{subStatus} OR crt.
task
_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