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
f0aef577
Commit
f0aef577
authored
Feb 06, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑任务
parent
6121b0f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
35 deletions
+36
-35
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+20
-0
TaskEditRequest.java
.../src/main/java/com/ruoyi/web/request/TaskEditRequest.java
+16
-35
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
f0aef577
...
@@ -193,6 +193,26 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -193,6 +193,26 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
auditor
.
setTaskId
(
task
.
getId
());
auditor
.
setTaskId
(
task
.
getId
());
}
}
taskUserRelationService
.
updateBatchById
(
auditors
);
taskUserRelationService
.
updateBatchById
(
auditors
);
// 保存关联的整车样品信息
List
<
TaskSampleRelation
>
relations
=
request
.
getSample
();
if
(
relations
.
size
()
!=
0
&&
relations
!=
null
)
{
for
(
TaskSampleRelation
sampleRelation
:
relations
)
{
sampleRelation
.
setTaskId
(
task
.
getId
());
}
taskSampleRelationService
.
updateBatchById
(
relations
);
}
// 保存关联的零部件样品信息
List
<
TaskSampleRelation
>
partRelations
=
request
.
getPartSample
();
if
(
relations
.
size
()
!=
0
&&
relations
!=
null
)
{
for
(
TaskSampleRelation
sampleRelation
:
partRelations
)
{
sampleRelation
.
setTaskId
(
task
.
getId
());
}
taskSampleRelationService
.
updateBatchById
(
partRelations
);
}
}
}
@Override
@Override
...
...
quality-review/src/main/java/com/ruoyi/web/request/TaskEditRequest.java
View file @
f0aef577
package
com
.
ruoyi
.
web
.
request
;
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
com.ruoyi.domain.TaskUserRelation
;
import
com.ruoyi.domain.TaskUserRelation
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -12,22 +13,29 @@ import java.util.List;
...
@@ -12,22 +13,29 @@ import java.util.List;
@Data
@Data
public
class
TaskEditRequest
{
public
class
TaskEditRequest
{
@ApiModelProperty
(
"ID"
)
private
Long
id
;
@ApiModelProperty
(
"小组成员"
)
@ApiModelProperty
(
"小组成员"
)
private
List
<
TaskUserRelation
>
auditors
;
private
List
<
TaskUserRelation
>
auditors
;
/**
* 标准id
* 根据哪个标准新建的审查任务
*/
@ApiModelProperty
(
"标准id(检验依据)"
)
private
Long
standardId
;
@ApiModelProperty
(
"任务编号"
)
@ApiModelProperty
(
"任务编号"
)
private
String
taskNo
;
private
String
taskNo
;
@ApiModelProperty
(
"任务名称"
)
@ApiModelProperty
(
"任务名称"
)
private
String
taskName
;
private
String
taskName
;
@ApiModelProperty
(
"保密等级"
)
private
String
confidentialityLevel
;
@ApiModelProperty
(
"产品名称"
)
@ApiModelProperty
(
"产品名称"
)
private
String
productName
;
private
String
productName
;
@ApiModelProperty
(
"
产品型号
"
)
@ApiModelProperty
(
"
车辆型号(产品型号)
"
)
private
String
productModel
;
private
String
productModel
;
@ApiModelProperty
(
"委托单位"
)
@ApiModelProperty
(
"委托单位"
)
...
@@ -42,38 +50,11 @@ public class TaskEditRequest {
...
@@ -42,38 +50,11 @@ public class TaskEditRequest {
@ApiModelProperty
(
"委托单位邮政编码"
)
@ApiModelProperty
(
"委托单位邮政编码"
)
private
String
entrustedUnitCode
;
private
String
entrustedUnitCode
;
@ApiModelProperty
(
"车辆类型"
)
@ApiModelProperty
(
"整车样品信息"
)
private
String
carType
;
private
List
<
TaskSampleRelation
>
sample
;
@ApiModelProperty
(
"车辆识别码"
)
private
String
carIdentificationCode
;
@ApiModelProperty
(
"保密等级"
)
private
String
confidentialityLevel
;
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
@ApiModelProperty
(
"生产企业"
)
private
String
productionEnterprise
;
@ApiModelProperty
(
"送样者"
)
private
String
sampleSender
;
@ApiModelProperty
(
"送样日期"
)
private
Date
sendDate
;
@ApiModelProperty
(
"样品数量"
)
private
String
sampleNumber
;
@ApiModelProperty
(
"生产日期"
)
private
Date
productionDate
;
@ApiModelProperty
(
"商标"
)
private
String
trademark
;
@ApiModelProperty
(
"
检验依据
"
)
@ApiModelProperty
(
"
零部件样品信息
"
)
private
String
inspectionBasis
;
private
List
<
TaskSampleRelation
>
partSample
;
@ApiModelProperty
(
"选择的任务"
)
@ApiModelProperty
(
"选择的任务"
)
List
<
String
>
taskList
;
List
<
String
>
taskList
;
...
...
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