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
05780c18
Commit
05780c18
authored
Jan 09, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开始一个车辆审查任务中的问卷任务&提交问卷任务
parent
4b3c5ee5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
9 deletions
+46
-9
CarReviewTask.java
...-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
+24
-0
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+1
-1
StrategyCarReviewTaskFinish.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
+4
-2
StrategyCarReviewTaskNew.java
...java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
+3
-1
StrategyCarReviewTaskNone.java
...ava/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
+2
-2
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+3
-1
CarReviewTaskMapper.xml
...-review/src/main/resources/mapper/CarReviewTaskMapper.xml
+9
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
05780c18
...
...
@@ -161,4 +161,28 @@ public class CarReviewTask implements Serializable {
@ApiModelProperty
(
"车型测试任务状态[NONE、NEW、PENDING、FINISH]"
)
private
String
testStatus
;
/**
* 车型问卷开始时间
*/
@ApiModelProperty
(
"车型问卷开始时间"
)
private
Date
reviewStartTime
;
/**
* 车型问卷提交时间
*/
@ApiModelProperty
(
"车型问卷提交时间"
)
private
Date
reviewSubmitTime
;
/**
* 车型问卷提交人id
*/
@ApiModelProperty
(
"车型问卷提交人id"
)
private
Long
reviewSubmitId
;
/**
* 车型问卷提交人姓名
*/
@ApiModelProperty
(
"车型问卷提交人姓名"
)
private
String
reviewSubmitName
;
}
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
05780c18
...
...
@@ -117,7 +117,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override
public
CarReviewTaskViewResponse
viewReviewTask
(
Long
taskId
)
{
CarReviewTask
carReviewTask
=
carReviewTaskService
.
getById
(
taskId
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Task
Status
()).
doView
(
carReviewTask
);
return
strategyCarReviewTaskContext
.
getResource
(
carReviewTask
.
get
Review
Status
()).
doView
(
carReviewTask
);
}
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
View file @
05780c18
package
com
.
ruoyi
.
service
.
impl
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.service.StrategyCarReviewTask
;
import
com.ruoyi.web.response.CarReviewTaskViewResponse
;
...
...
@@ -29,12 +31,12 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
@Override
public
void
doStartReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能开始一个结束的任务"
,
HttpStatus
.
ERROR
);
}
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能提交一个结束的任务"
,
HttpStatus
.
ERROR
);
}
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
View file @
05780c18
package
com
.
ruoyi
.
service
.
impl
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.service.ReviewStandardService
;
...
...
@@ -50,7 +52,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能提交一个未开始的任务"
,
HttpStatus
.
ERROR
);
}
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNone.java
View file @
05780c18
...
...
@@ -26,12 +26,12 @@ public class StrategyCarReviewTaskNone implements StrategyCarReviewTask, Initial
@Override
public
void
doStartReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能开始一个不存在的任务"
,
HttpStatus
.
ERROR
);
}
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能提交一个不存在的任务"
,
HttpStatus
.
ERROR
);
}
@Override
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
05780c18
package
com
.
ruoyi
.
service
.
impl
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.ReviewDetailsResultMapper
;
import
com.ruoyi.mapper.SystemReviewTaskMapper
;
...
...
@@ -75,7 +77,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
@Override
public
void
doStartReview
(
CarReviewTask
carReviewTask
)
{
throw
new
ServiceException
(
"不能开始一个进行中的任务"
,
HttpStatus
.
ERROR
);
}
@Override
...
...
quality-review/src/main/resources/mapper/CarReviewTaskMapper.xml
View file @
05780c18
...
...
@@ -24,6 +24,10 @@
<result
property=
"file"
column=
"file"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStatus"
column=
"review_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"testStatus"
column=
"test_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStartTime"
column=
"review_start_time"
jdbcType=
"TIMESTAMP"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -33,10 +37,13 @@
biz_info,create_time,leader_id,
leader,standard_id,name,
standard_no,file,review_status,
test_status
test_status,review_start_time,
review_submit_time,
review_submit_id,
review_submit_name
</sql>
<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,biz_info,create_time,leader_id,leader,standard_id,name,standard_no,file,review_status,test_status
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,biz_info,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
FROM t_system_review_task WHERE review_status = #{reviewStatus} AND task_status = 'PENDING'
</select>
</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