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
f92c5dd1
Commit
f92c5dd1
authored
Feb 23, 2024
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.91isoft.com:90/wangfei/vehicle-quality-review
into gaoying
parents
bc33edf6
acc1f43f
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
103 additions
and
15 deletions
+103
-15
StandardService.java
...view/src/main/java/com/ruoyi/service/StandardService.java
+3
-0
StrategyCarReviewTask.java
...rc/main/java/com/ruoyi/service/StrategyCarReviewTask.java
+3
-1
StrategySystemReviewTask.java
...main/java/com/ruoyi/service/StrategySystemReviewTask.java
+3
-1
StandardServiceImpl.java
...main/java/com/ruoyi/service/impl/StandardServiceImpl.java
+13
-0
StrategyCarReviewTaskFinish.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
+3
-1
StrategyCarReviewTaskNew.java
...java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
+1
-1
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+1
-1
StrategyCarReviewTaskSigned.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
+4
-2
StrategySystemReviewTaskClose.java
...com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
+3
-1
StrategySystemReviewTaskFinish.java
...om/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
+3
-1
StrategySystemReviewTaskNew.java
...a/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
+1
-1
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+1
-1
StrategySystemReviewTaskSigned.java
...om/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
+4
-2
StandardController.java
...eview/src/main/java/com/ruoyi/web/StandardController.java
+15
-0
CarReviewTaskSubmitRequest.java
...ava/com/ruoyi/web/request/CarReviewTaskSubmitRequest.java
+3
-1
StandardEditRequest.java
.../main/java/com/ruoyi/web/request/StandardEditRequest.java
+39
-0
SystemReviewTaskSubmitRequest.java
.../com/ruoyi/web/request/SystemReviewTaskSubmitRequest.java
+3
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/StandardService.java
View file @
f92c5dd1
...
@@ -2,6 +2,7 @@ package com.ruoyi.service;
...
@@ -2,6 +2,7 @@ package com.ruoyi.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
java.util.List
;
import
java.util.List
;
...
@@ -16,4 +17,6 @@ public interface StandardService extends IService<Standard> {
...
@@ -16,4 +17,6 @@ public interface StandardService extends IService<Standard> {
//根据id查询
//根据id查询
Standard
findListById
(
Long
id
);
Standard
findListById
(
Long
id
);
void
editStandard
(
StandardEditRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/StrategyCarReviewTask.java
View file @
f92c5dd1
...
@@ -3,6 +3,8 @@ package com.ruoyi.service;
...
@@ -3,6 +3,8 @@ package com.ruoyi.service;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.web.response.CarReviewTaskViewResponse
;
import
com.ruoyi.web.response.CarReviewTaskViewResponse
;
import
java.util.List
;
public
interface
StrategyCarReviewTask
{
public
interface
StrategyCarReviewTask
{
CarReviewTaskViewResponse
doView
(
CarReviewTask
carReviewTask
);
CarReviewTaskViewResponse
doView
(
CarReviewTask
carReviewTask
);
...
@@ -11,5 +13,5 @@ public interface StrategyCarReviewTask {
...
@@ -11,5 +13,5 @@ public interface StrategyCarReviewTask {
void
doConfirmReview
(
CarReviewTask
carReviewTask
);
void
doConfirmReview
(
CarReviewTask
carReviewTask
);
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
);
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
List
<
String
>
imagesUrl
);
}
}
quality-review/src/main/java/com/ruoyi/service/StrategySystemReviewTask.java
View file @
f92c5dd1
...
@@ -3,13 +3,15 @@ package com.ruoyi.service;
...
@@ -3,13 +3,15 @@ package com.ruoyi.service;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
java.util.List
;
public
interface
StrategySystemReviewTask
{
public
interface
StrategySystemReviewTask
{
void
doStart
(
SystemReviewTask
systemReviewTask
);
void
doStart
(
SystemReviewTask
systemReviewTask
);
void
doConfirm
(
SystemReviewTask
systemReviewTask
);
void
doConfirm
(
SystemReviewTask
systemReviewTask
);
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
);
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
);
void
doClose
(
SystemReviewTask
systemReviewTask
);
void
doClose
(
SystemReviewTask
systemReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StandardServiceImpl.java
View file @
f92c5dd1
package
com
.
ruoyi
.
service
.
impl
;
package
com
.
ruoyi
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -16,6 +18,9 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
...
@@ -16,6 +18,9 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
@Autowired
@Autowired
private
StandardMapper
standardMapper
;
private
StandardMapper
standardMapper
;
@Autowired
private
StandardService
standardService
;
/**
/**
* 分页查询
* 分页查询
* @param
* @param
...
@@ -35,4 +40,12 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
...
@@ -35,4 +40,12 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
public
Standard
findListById
(
Long
id
)
{
public
Standard
findListById
(
Long
id
)
{
return
standardMapper
.
findListById
(
id
);
return
standardMapper
.
findListById
(
id
);
}
}
@Override
public
void
editStandard
(
StandardEditRequest
request
)
{
Standard
standard
=
new
Standard
();
BeanUtils
.
copyBeanProp
(
standard
,
request
);
standardService
.
updateById
(
standard
);
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
View file @
f92c5dd1
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Transactional
@Transactional
@Service
@Service
public
class
StrategyCarReviewTaskFinish
implements
StrategyCarReviewTask
,
InitializingBean
{
public
class
StrategyCarReviewTaskFinish
implements
StrategyCarReviewTask
,
InitializingBean
{
...
@@ -44,7 +46,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
...
@@ -44,7 +46,7 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个结束的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个结束的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskNew.java
View file @
f92c5dd1
...
@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
...
@@ -67,7 +67,7 @@ public class StrategyCarReviewTaskNew implements StrategyCarReviewTask, Initiali
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未开始的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个未开始的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
f92c5dd1
...
@@ -121,7 +121,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -121,7 +121,7 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
View file @
f92c5dd1
...
@@ -4,6 +4,7 @@ import com.ruoyi.common.constant.HttpStatus;
...
@@ -4,6 +4,7 @@ import com.ruoyi.common.constant.HttpStatus;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.CarReviewTaskMapper
;
import
com.ruoyi.mapper.CarReviewTaskMapper
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
...
@@ -68,7 +69,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -68,7 +69,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
}
}
@Override
@Override
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
String
imagesUrl
)
{
public
void
doSubmitReview
(
CarReviewTask
carReviewTask
,
List
<
String
>
imagesUrl
)
{
// 1. 填充review_submit_time
// 1. 填充review_submit_time
carReviewTask
.
setTaskEndTime
(
new
Date
());
carReviewTask
.
setTaskEndTime
(
new
Date
());
...
@@ -83,7 +84,8 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -83,7 +84,8 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
carReviewTask
.
setSubmitName
(
loginUser
.
getNickName
());
carReviewTask
.
setSubmitName
(
loginUser
.
getNickName
());
// 4. 保存签名图片地址
// 4. 保存签名图片地址
carReviewTask
.
setImagesUrl
(
imagesUrl
);
String
joinImageUrl
=
StringUtils
.
join
(
imagesUrl
,
","
);
carReviewTask
.
setImagesUrl
(
joinImageUrl
);
// 5.再找带该子任务所属的总任务,将总任务的状态由 RUNNING 改回 RUNNABLE
// 5.再找带该子任务所属的总任务,将总任务的状态由 RUNNING 改回 RUNNABLE
Task
task
=
taskMapper
.
selectById
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
Task
task
=
taskMapper
.
selectById
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskClose.java
View file @
f92c5dd1
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Transactional
@Transactional
@Service
@Service
public
class
StrategySystemReviewTaskClose
implements
StrategySystemReviewTask
,
InitializingBean
{
public
class
StrategySystemReviewTaskClose
implements
StrategySystemReviewTask
,
InitializingBean
{
...
@@ -26,7 +28,7 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
...
@@ -26,7 +28,7 @@ public class StrategySystemReviewTaskClose implements StrategySystemReviewTask,
}
}
@Override
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个已关闭的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个已关闭的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
View file @
f92c5dd1
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
...
@@ -11,6 +11,8 @@ import org.springframework.context.ApplicationContext;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Transactional
@Transactional
@Service
@Service
public
class
StrategySystemReviewTaskFinish
implements
StrategySystemReviewTask
,
InitializingBean
{
public
class
StrategySystemReviewTaskFinish
implements
StrategySystemReviewTask
,
InitializingBean
{
...
@@ -26,7 +28,7 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
...
@@ -26,7 +28,7 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
}
}
@Override
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个已完成的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个已完成的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskNew.java
View file @
f92c5dd1
...
@@ -40,7 +40,7 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
...
@@ -40,7 +40,7 @@ public class StrategySystemReviewTaskNew implements StrategySystemReviewTask, In
}
}
@Override
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个尚未开始的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个尚未开始的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
f92c5dd1
...
@@ -59,7 +59,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
...
@@ -59,7 +59,7 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
}
}
@Override
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
)
{
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
throw
new
ServiceException
(
"不能提交一个未确认的任务"
,
HttpStatus
.
ERROR
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
View file @
f92c5dd1
...
@@ -4,6 +4,7 @@ import com.ruoyi.common.constant.HttpStatus;
...
@@ -4,6 +4,7 @@ import com.ruoyi.common.constant.HttpStatus;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.ReviewDetailsResultMapper
;
import
com.ruoyi.mapper.ReviewDetailsResultMapper
;
...
@@ -57,7 +58,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
...
@@ -57,7 +58,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
}
}
@Override
@Override
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
String
imagesUrl
)
{
public
void
doSubmit
(
SystemReviewTask
systemReviewTask
,
List
<
String
>
imagesUrl
)
{
// 1. 填充task_end_time
// 1. 填充task_end_time
systemReviewTask
.
setTaskEndTime
(
new
Date
());
systemReviewTask
.
setTaskEndTime
(
new
Date
());
...
@@ -72,7 +73,8 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
...
@@ -72,7 +73,8 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
systemReviewTask
.
setSubmitByName
(
loginUser
.
getNickName
());
systemReviewTask
.
setSubmitByName
(
loginUser
.
getNickName
());
// 4.保存签名图片地址
// 4.保存签名图片地址
systemReviewTask
.
setImagesUrl
(
imagesUrl
);
String
joinImageUrl
=
StringUtils
.
join
(
imagesUrl
,
","
);
systemReviewTask
.
setImagesUrl
(
joinImageUrl
);
// 5.再找带该子任务所属的总任务,将总任务的状态由 RUNNING 改回 RUNNABLE
// 5.再找带该子任务所属的总任务,将总任务的状态由 RUNNING 改回 RUNNABLE
Task
task
=
taskMapper
.
selectById
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
Task
task
=
taskMapper
.
selectById
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
...
...
quality-review/src/main/java/com/ruoyi/web/StandardController.java
View file @
f92c5dd1
package
com
.
ruoyi
.
web
;
package
com
.
ruoyi
.
web
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.TaskEditRequest
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -39,4 +44,14 @@ public class StandardController extends BaseController {
...
@@ -39,4 +44,14 @@ public class StandardController extends BaseController {
startPage
(
request
);
startPage
(
request
);
return
getDataTable
(
standardService
.
findList
());
return
getDataTable
(
standardService
.
findList
());
}
}
@ApiOperation
(
"编辑标准库"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"编辑任务"
,
businessType
=
BusinessType
.
UPDATE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/editStandard"
)
public
R
<
String
>
editTask
(
@Validated
@RequestBody
StandardEditRequest
request
)
{
standardService
.
editStandard
(
request
);
return
R
.
ok
();
}
}
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskSubmitRequest.java
View file @
f92c5dd1
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
value
=
"CarReviewTaskSubmitRequest"
,
description
=
"提交车辆审查问卷"
)
@ApiModel
(
value
=
"CarReviewTaskSubmitRequest"
,
description
=
"提交车辆审查问卷"
)
@Data
@Data
public
class
CarReviewTaskSubmitRequest
{
public
class
CarReviewTaskSubmitRequest
{
...
@@ -12,6 +14,6 @@ public class CarReviewTaskSubmitRequest {
...
@@ -12,6 +14,6 @@ public class CarReviewTaskSubmitRequest {
private
Long
taskId
;
private
Long
taskId
;
@ApiModelProperty
(
"图片地址"
)
@ApiModelProperty
(
"图片地址"
)
private
String
imagesUrl
;
private
List
<
String
>
imagesUrl
;
}
}
quality-review/src/main/java/com/ruoyi/web/request/StandardEditRequest.java
0 → 100644
View file @
f92c5dd1
package
com
.
ruoyi
.
web
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@ApiModel
(
value
=
"StandardEditRequest"
,
description
=
"编辑标准"
)
@Data
public
class
StandardEditRequest
{
@ApiModelProperty
(
"主键"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
id
;
@ApiModelProperty
(
"标准名称"
)
private
String
name
;
@ApiModelProperty
(
"标准号"
)
private
String
standardNo
;
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
@ApiModelProperty
(
"标准分类"
)
private
String
standardType
;
@ApiModelProperty
(
"标准状态"
)
private
String
standardStatus
;
@ApiModelProperty
(
"发布日期"
)
private
Date
releaseDate
;
@ApiModelProperty
(
"实施日期"
)
private
Date
implementationDate
;
}
quality-review/src/main/java/com/ruoyi/web/request/SystemReviewTaskSubmitRequest.java
View file @
f92c5dd1
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
...
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
value
=
"SystemReviewTaskSubmitRequest"
,
description
=
"提交体系审查问卷"
)
@ApiModel
(
value
=
"SystemReviewTaskSubmitRequest"
,
description
=
"提交体系审查问卷"
)
@Data
@Data
public
class
SystemReviewTaskSubmitRequest
{
public
class
SystemReviewTaskSubmitRequest
{
...
@@ -12,6 +14,6 @@ public class SystemReviewTaskSubmitRequest {
...
@@ -12,6 +14,6 @@ public class SystemReviewTaskSubmitRequest {
private
Long
taskId
;
private
Long
taskId
;
@ApiModelProperty
(
"图片地址"
)
@ApiModelProperty
(
"图片地址"
)
private
String
imagesUrl
;
private
List
<
String
>
imagesUrl
;
}
}
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