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
69ed36a3
Commit
69ed36a3
authored
Jan 23, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建任务根据车企id设置车企名称
parent
24d1609a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
Task.java
quality-review/src/main/java/com/ruoyi/domain/Task.java
+4
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+6
-4
TaskCreateRequest.java
...rc/main/java/com/ruoyi/web/request/TaskCreateRequest.java
+3
-2
TaskGetInfoResponse.java
...main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
+4
-0
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+2
-1
No files found.
quality-review/src/main/java/com/ruoyi/domain/Task.java
View file @
69ed36a3
...
@@ -89,6 +89,10 @@ public class Task {
...
@@ -89,6 +89,10 @@ public class Task {
@ApiModelProperty
(
"样品名称"
)
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
private
String
sampleName
;
@ApiModelProperty
(
"生产企业id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
productionId
;
@ApiModelProperty
(
"生产企业"
)
@ApiModelProperty
(
"生产企业"
)
private
String
productionEnterprise
;
private
String
productionEnterprise
;
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
69ed36a3
...
@@ -8,10 +8,7 @@ import com.ruoyi.common.utils.SecurityUtils;
...
@@ -8,10 +8,7 @@ import com.ruoyi.common.utils.SecurityUtils;
import
com.ruoyi.common.utils.SnowflakeUtil
;
import
com.ruoyi.common.utils.SnowflakeUtil
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.domain.*
;
import
com.ruoyi.mapper.CarReviewTaskMapper
;
import
com.ruoyi.mapper.*
;
import
com.ruoyi.mapper.ReviewDetailsMapper
;
import
com.ruoyi.mapper.SystemReviewTaskMapper
;
import
com.ruoyi.mapper.TaskMapper
;
import
com.ruoyi.service.*
;
import
com.ruoyi.service.*
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.request.*
;
...
@@ -58,6 +55,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -58,6 +55,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
@Autowired
@Autowired
private
ReviewDetailsMapper
reviewDetailsMapper
;
private
ReviewDetailsMapper
reviewDetailsMapper
;
@Autowired
private
AutomobileEnterpriseMapper
automobileEnterpriseMapper
;
@Override
@Override
public
List
<
Task
>
findList
(
TaskListRequest
request
)
{
public
List
<
Task
>
findList
(
TaskListRequest
request
)
{
return
taskMapper
.
findList
(
request
);
return
taskMapper
.
findList
(
request
);
...
@@ -93,6 +93,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -93,6 +93,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
task
.
setName
(
standard
.
getName
());
task
.
setName
(
standard
.
getName
());
task
.
setStandardNo
(
standard
.
getStandardNo
());
task
.
setStandardNo
(
standard
.
getStandardNo
());
task
.
setFile
(
standard
.
getFile
());
task
.
setFile
(
standard
.
getFile
());
AutomobileEnterprise
automobileEnterprise
=
automobileEnterpriseMapper
.
selectById
(
request
.
getProductionId
());
task
.
setProductionEnterprise
(
automobileEnterprise
.
getEnterpriseName
());
BeanUtils
.
copyBeanProp
(
task
,
request
);
BeanUtils
.
copyBeanProp
(
task
,
request
);
Long
systemReviewTaskId
=
null
;
Long
systemReviewTaskId
=
null
;
...
...
quality-review/src/main/java/com/ruoyi/web/request/TaskCreateRequest.java
View file @
69ed36a3
package
com
.
ruoyi
.
web
.
request
;
package
com
.
ruoyi
.
web
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.domain.TaskUserRelation
;
import
com.ruoyi.domain.TaskUserRelation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -53,8 +54,8 @@ public class TaskCreateRequest {
...
@@ -53,8 +54,8 @@ public class TaskCreateRequest {
@ApiModelProperty
(
"样品名称"
)
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
private
String
sampleName
;
@ApiModelProperty
(
"生产企业"
)
@ApiModelProperty
(
"生产企业
id
"
)
private
String
productionEnterprise
;
private
Long
productionId
;
@ApiModelProperty
(
"送样者"
)
@ApiModelProperty
(
"送样者"
)
private
String
sampleSender
;
private
String
sampleSender
;
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
View file @
69ed36a3
...
@@ -66,6 +66,10 @@ public class TaskGetInfoResponse {
...
@@ -66,6 +66,10 @@ public class TaskGetInfoResponse {
@ApiModelProperty
(
"样品名称"
)
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
private
String
sampleName
;
@ApiModelProperty
(
"生产企业id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
productionId
;
@ApiModelProperty
(
"生产企业"
)
@ApiModelProperty
(
"生产企业"
)
private
String
productionEnterprise
;
private
String
productionEnterprise
;
...
...
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
69ed36a3
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<result
property=
"carIdentificationCode"
column=
"car_identification_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"carIdentificationCode"
column=
"car_identification_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"confidentialityLevel"
column=
"confidentiality_level"
jdbcType=
"VARCHAR"
/>
<result
property=
"confidentialityLevel"
column=
"confidentiality_level"
jdbcType=
"VARCHAR"
/>
<result
property=
"sampleName"
column=
"sample_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"sampleName"
column=
"sample_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"productionId"
column=
"production_id"
jdbcType=
"BIGINT"
/>
<result
property=
"productionEnterprise"
column=
"production_enterprise"
jdbcType=
"VARCHAR"
/>
<result
property=
"productionEnterprise"
column=
"production_enterprise"
jdbcType=
"VARCHAR"
/>
<result
property=
"sampleSender"
column=
"sample_sender"
jdbcType=
"VARCHAR"
/>
<result
property=
"sampleSender"
column=
"sample_sender"
jdbcType=
"VARCHAR"
/>
<result
property=
"sendDate"
column=
"send_date"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"sendDate"
column=
"send_date"
jdbcType=
"TIMESTAMP"
/>
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
task_no,task_name,task_status,product_name,product_model,
task_no,task_name,task_status,product_name,product_model,
entrusted_unit,entrusted_unit_address,entrusted_unit_phone,
entrusted_unit,entrusted_unit_address,entrusted_unit_phone,
entrusted_unit_code,car_type,car_identification_code,
entrusted_unit_code,car_type,car_identification_code,
confidentiality_level,sample_name,production_enterprise,
confidentiality_level,sample_name,production_
id,production_
enterprise,
sample_sender,send_date,sample_number,production_date,
sample_sender,send_date,sample_number,production_date,
trademark,inspection_basis,task_initiator,task_initiator_dept,
trademark,inspection_basis,task_initiator,task_initiator_dept,
task_begin_time,task_end_time,create_time,
task_begin_time,task_end_time,create_time,
...
...
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