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
6121b0f6
Commit
6121b0f6
authored
Feb 05, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建任务接口样品信息修改&查看任务详情查询样品信息
parent
aa73859d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
150 additions
and
53 deletions
+150
-53
TaskSampleRelation.java
...ew/src/main/java/com/ruoyi/domain/TaskSampleRelation.java
+12
-0
SampleManagementMapper.java
...rc/main/java/com/ruoyi/mapper/SampleManagementMapper.java
+4
-0
TaskSampleRelationMapper.java
.../main/java/com/ruoyi/mapper/TaskSampleRelationMapper.java
+1
-1
TaskSampleRelationService.java
...ain/java/com/ruoyi/service/TaskSampleRelationService.java
+1
-1
TaskService.java
...y-review/src/main/java/com/ruoyi/service/TaskService.java
+3
-0
TaskSampleRelationServiceImpl.java
...com/ruoyi/service/impl/TaskSampleRelationServiceImpl.java
+2
-2
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+41
-1
TaskController.java
...ty-review/src/main/java/com/ruoyi/web/TaskController.java
+6
-6
TaskCreateRequest.java
...rc/main/java/com/ruoyi/web/request/TaskCreateRequest.java
+4
-1
SampleListResponse.java
.../main/java/com/ruoyi/web/response/SampleListResponse.java
+28
-0
TaskGetInfoResponse.java
...main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
+27
-38
SampleManagementMapper.xml
...view/src/main/resources/mapper/SampleManagementMapper.xml
+16
-1
TaskSampleRelationMapper.xml
...ew/src/main/resources/mapper/TaskSampleRelationMapper.xml
+5
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/TaskSampleRelation.java
View file @
6121b0f6
...
@@ -21,6 +21,18 @@ import java.util.Date;
...
@@ -21,6 +21,18 @@ import java.util.Date;
@Data
@Data
public
class
TaskSampleRelation
{
public
class
TaskSampleRelation
{
/**
* 整车样品
*/
@TableField
(
exist
=
false
)
public
static
final
String
COMPLETE_VEHICLE_SAMPLE
=
"0"
;
/**
* 零部件样品
*/
@TableField
(
exist
=
false
)
public
static
final
String
PART_VEHICLE_SAMPLE
=
"1"
;
@ApiModelProperty
(
"主键"
)
@ApiModelProperty
(
"主键"
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
...
...
quality-review/src/main/java/com/ruoyi/mapper/SampleManagementMapper.java
View file @
6121b0f6
...
@@ -2,7 +2,9 @@ package com.ruoyi.mapper;
...
@@ -2,7 +2,9 @@ package com.ruoyi.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.Sample
;
import
com.ruoyi.domain.Sample
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
com.ruoyi.web.request.SampleManagementRequest
;
import
com.ruoyi.web.request.SampleManagementRequest
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -57,4 +59,6 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
...
@@ -57,4 +59,6 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
* */
* */
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
List
<
Sample
>
findByIdList
(
@Param
(
"relationList"
)
List
<
TaskSampleRelation
>
relationList
);
}
}
quality-review/src/main/java/com/ruoyi/mapper/TaskSampleRelationMapper.java
View file @
6121b0f6
...
@@ -15,5 +15,5 @@ public interface TaskSampleRelationMapper extends BaseMapper<TaskSampleRelation>
...
@@ -15,5 +15,5 @@ public interface TaskSampleRelationMapper extends BaseMapper<TaskSampleRelation>
* @param taskId
* @param taskId
* @return
* @return
*/
*/
List
<
TaskSampleRelation
>
selectByTaskId
(
@Param
(
"taskId"
)
Long
taskId
);
List
<
TaskSampleRelation
>
selectByTaskId
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"flag"
)
String
flag
);
}
}
quality-review/src/main/java/com/ruoyi/service/TaskSampleRelationService.java
View file @
6121b0f6
...
@@ -7,5 +7,5 @@ import java.util.List;
...
@@ -7,5 +7,5 @@ import java.util.List;
public
interface
TaskSampleRelationService
extends
IService
<
TaskSampleRelation
>
{
public
interface
TaskSampleRelationService
extends
IService
<
TaskSampleRelation
>
{
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
);
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
,
String
flag
);
}
}
quality-review/src/main/java/com/ruoyi/service/TaskService.java
View file @
6121b0f6
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.TaskFindResponse
;
import
com.ruoyi.web.response.TaskFindResponse
;
import
com.ruoyi.web.response.TaskGetInfoResponse
;
import
java.util.List
;
import
java.util.List
;
...
@@ -44,4 +45,6 @@ public interface TaskService extends IService<Task> {
...
@@ -44,4 +45,6 @@ public interface TaskService extends IService<Task> {
* @return
* @return
*/
*/
List
<
TaskFindResponse
>
findCreate
(
TaskFindRequest
request
,
Long
userId
);
List
<
TaskFindResponse
>
findCreate
(
TaskFindRequest
request
,
Long
userId
);
TaskGetInfoResponse
getInfo
(
TaskGetInfoRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TaskSampleRelationServiceImpl.java
View file @
6121b0f6
...
@@ -16,7 +16,7 @@ public class TaskSampleRelationServiceImpl extends ServiceImpl<TaskSampleRelatio
...
@@ -16,7 +16,7 @@ public class TaskSampleRelationServiceImpl extends ServiceImpl<TaskSampleRelatio
private
TaskSampleRelationMapper
taskSampleRelationMapper
;
private
TaskSampleRelationMapper
taskSampleRelationMapper
;
@Override
@Override
public
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
)
{
public
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
,
String
flag
)
{
return
taskSampleRelationMapper
.
selectByTaskId
(
taskId
);
return
taskSampleRelationMapper
.
selectByTaskId
(
taskId
,
flag
);
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
6121b0f6
...
@@ -11,6 +11,7 @@ import com.ruoyi.service.*;
...
@@ -11,6 +11,7 @@ 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.*
;
import
com.ruoyi.web.response.TaskFindResponse
;
import
com.ruoyi.web.response.TaskFindResponse
;
import
com.ruoyi.web.response.TaskGetInfoResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -62,6 +63,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -62,6 +63,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
@Autowired
@Autowired
private
TaskSampleRelationService
taskSampleRelationService
;
private
TaskSampleRelationService
taskSampleRelationService
;
@Autowired
private
SampleManagementMapper
sampleManagementMapper
;
@Override
@Override
public
List
<
Task
>
findList
(
TaskListRequest
request
)
{
public
List
<
Task
>
findList
(
TaskListRequest
request
)
{
...
@@ -119,7 +123,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -119,7 +123,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
taskUserRelationService
.
saveBatch
(
auditors
);
taskUserRelationService
.
saveBatch
(
auditors
);
// 保存关联的样品信息
// 保存关联的
整车
样品信息
List
<
TaskSampleRelation
>
relations
=
request
.
getSample
();
List
<
TaskSampleRelation
>
relations
=
request
.
getSample
();
if
(
relations
.
size
()
!=
0
&&
relations
!=
null
)
{
if
(
relations
.
size
()
!=
0
&&
relations
!=
null
)
{
for
(
TaskSampleRelation
sampleRelation
:
relations
)
{
for
(
TaskSampleRelation
sampleRelation
:
relations
)
{
...
@@ -129,6 +133,16 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -129,6 +133,16 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
taskSampleRelationService
.
saveBatch
(
relations
);
taskSampleRelationService
.
saveBatch
(
relations
);
}
}
// 保存关联的零部件样品信息
List
<
TaskSampleRelation
>
partRelations
=
request
.
getPartSample
();
if
(
relations
.
size
()
!=
0
&&
relations
!=
null
)
{
for
(
TaskSampleRelation
sampleRelation
:
partRelations
)
{
sampleRelation
.
setTaskId
(
task
.
getId
());
}
taskSampleRelationService
.
saveBatch
(
partRelations
);
}
taskStateFacade
.
doCreate
(
task
,
request
.
getTaskList
());
taskStateFacade
.
doCreate
(
task
,
request
.
getTaskList
());
}
}
...
@@ -210,6 +224,32 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
...
@@ -210,6 +224,32 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
return
responses
;
return
responses
;
}
}
@Override
public
TaskGetInfoResponse
getInfo
(
TaskGetInfoRequest
request
)
{
TaskGetInfoResponse
response
=
new
TaskGetInfoResponse
();
Task
task
=
taskService
.
getById
(
request
.
getId
());
BeanUtils
.
copyBeanProp
(
response
,
task
);
// 小组成员
List
<
TaskUserRelation
>
relation
=
taskUserRelationService
.
selectQTeamMembers
(
request
.
getId
());
response
.
setAuditors
(
relation
);
// 整车样品信息
List
<
TaskSampleRelation
>
relationList
=
taskSampleRelationService
.
selectByTaskId
(
request
.
getId
(),
TaskSampleRelation
.
COMPLETE_VEHICLE_SAMPLE
);
if
(
relationList
.
size
()
!=
0
&&
relationList
!=
null
)
{
List
<
Sample
>
completeVehicleSampleList
=
sampleManagementMapper
.
findByIdList
(
relationList
);
response
.
setCompleteVehicleSample
(
completeVehicleSampleList
);
}
// 零部件样品信息
List
<
TaskSampleRelation
>
partRelationList
=
taskSampleRelationService
.
selectByTaskId
(
request
.
getId
(),
TaskSampleRelation
.
PART_VEHICLE_SAMPLE
);
if
(
partRelationList
.
size
()
!=
0
&&
partRelationList
!=
null
)
{
List
<
Sample
>
partVehicleSampleList
=
sampleManagementMapper
.
findByIdList
(
partRelationList
);
response
.
setPartVehicleSample
(
partVehicleSampleList
);
}
return
response
;
}
public
Long
saveSystemReview
(
TaskCreateRequest
request
,
SysUser
initiator
,
Standard
standard
,
TaskUserRelation
leader
)
{
public
Long
saveSystemReview
(
TaskCreateRequest
request
,
SysUser
initiator
,
Standard
standard
,
TaskUserRelation
leader
)
{
// 构建并保存任务信息
// 构建并保存任务信息
...
...
quality-review/src/main/java/com/ruoyi/web/TaskController.java
View file @
6121b0f6
...
@@ -7,7 +7,9 @@ import com.ruoyi.common.core.page.TableDataInfo;
...
@@ -7,7 +7,9 @@ import com.ruoyi.common.core.page.TableDataInfo;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.domain.Task
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
com.ruoyi.domain.TaskUserRelation
;
import
com.ruoyi.domain.TaskUserRelation
;
import
com.ruoyi.service.TaskSampleRelationService
;
import
com.ruoyi.service.TaskService
;
import
com.ruoyi.service.TaskService
;
import
com.ruoyi.service.TaskUserRelationService
;
import
com.ruoyi.service.TaskUserRelationService
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.request.*
;
...
@@ -37,6 +39,9 @@ public class TaskController extends BaseController {
...
@@ -37,6 +39,9 @@ public class TaskController extends BaseController {
@Autowired
@Autowired
private
TaskUserRelationService
taskUserRelationService
;
private
TaskUserRelationService
taskUserRelationService
;
@Autowired
private
TaskSampleRelationService
taskSampleRelationService
;
@ApiOperation
(
"查询任务列表"
)
@ApiOperation
(
"查询任务列表"
)
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
...
@@ -62,12 +67,7 @@ public class TaskController extends BaseController {
...
@@ -62,12 +67,7 @@ public class TaskController extends BaseController {
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getInfo"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getInfo"
)
public
R
<
TaskGetInfoResponse
>
getInfo
(
@Validated
@RequestBody
TaskGetInfoRequest
request
)
{
public
R
<
TaskGetInfoResponse
>
getInfo
(
@Validated
@RequestBody
TaskGetInfoRequest
request
)
{
TaskGetInfoResponse
response
=
new
TaskGetInfoResponse
();
TaskGetInfoResponse
response
=
taskService
.
getInfo
(
request
);
Task
task
=
taskService
.
getById
(
request
.
getId
());
BeanUtils
.
copyBeanProp
(
response
,
task
);
List
<
TaskUserRelation
>
relation
=
taskUserRelationService
.
selectQTeamMembers
(
request
.
getId
());
response
.
setAuditors
(
relation
);
return
R
.
ok
(
response
);
return
R
.
ok
(
response
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/request/TaskCreateRequest.java
View file @
6121b0f6
...
@@ -53,9 +53,12 @@ public class TaskCreateRequest {
...
@@ -53,9 +53,12 @@ public class TaskCreateRequest {
@ApiModelProperty
(
"委托单位邮政编码"
)
@ApiModelProperty
(
"委托单位邮政编码"
)
private
String
entrustedUnitCode
;
private
String
entrustedUnitCode
;
@ApiModelProperty
(
"样品信息"
)
@ApiModelProperty
(
"
整车
样品信息"
)
private
List
<
TaskSampleRelation
>
sample
;
private
List
<
TaskSampleRelation
>
sample
;
@ApiModelProperty
(
"零部件样品信息"
)
private
List
<
TaskSampleRelation
>
partSample
;
@ApiModelProperty
(
"选择的任务"
)
@ApiModelProperty
(
"选择的任务"
)
List
<
String
>
taskList
;
List
<
String
>
taskList
;
...
...
quality-review/src/main/java/com/ruoyi/web/response/SampleListResponse.java
0 → 100644
View file @
6121b0f6
package
com
.
ruoyi
.
web
.
response
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"SampleListResponse"
,
description
=
"样品信息"
)
@Data
public
class
SampleListResponse
{
@ApiModelProperty
(
"主键"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
id
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@ApiModelProperty
(
"关联车企的id"
)
private
Long
enterpriseId
;
@ApiModelProperty
(
"车辆识别码"
)
private
String
identificationCode
;
@ApiModelProperty
(
"样品编号"
)
private
String
sampleNumber
;
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
}
quality-review/src/main/java/com/ruoyi/web/response/TaskGetInfoResponse.java
View file @
6121b0f6
...
@@ -3,6 +3,8 @@ package com.ruoyi.web.response;
...
@@ -3,6 +3,8 @@ package com.ruoyi.web.response;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.ruoyi.domain.Sample
;
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
;
...
@@ -27,19 +29,28 @@ public class TaskGetInfoResponse {
...
@@ -27,19 +29,28 @@ public class TaskGetInfoResponse {
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
carReviewTaskId
;
private
Long
carReviewTaskId
;
@ApiModelProperty
(
"任务状态NEW(新建的)、PENDING(运行中的)、FINISH(已结束的)"
)
private
String
taskStatus
;
@ApiModelProperty
(
"任务运行状态[RUNNABLE(可运行的)、RUNNING(运行中的)]"
)
private
String
runStatus
;
@ApiModelProperty
(
"下一个节点 SUB_TASK_SRAIF(体系审查子任务)、SUB_TASK_TRFIS(车辆实验子任务)、SUB_TASK_GRFIS(车辆问卷子任务)"
)
private
String
nextNode
;
@ApiModelProperty
(
"任务编号"
)
@ApiModelProperty
(
"任务编号"
)
private
String
taskNo
;
private
String
taskNo
;
@ApiModelProperty
(
"任务名称"
)
@ApiModelProperty
(
"任务名称"
)
private
String
taskName
;
private
String
taskName
;
@ApiModelProperty
(
"
任务状态(NEW、PENDING、FINISH)
"
)
@ApiModelProperty
(
"
保密等级
"
)
private
String
taskStatus
;
private
String
confidentialityLevel
;
@ApiModelProperty
(
"产品名称"
)
@ApiModelProperty
(
"产品名称"
)
private
String
productName
;
private
String
productName
;
@ApiModelProperty
(
"
产品型号
"
)
@ApiModelProperty
(
"
车辆型号(产品型号)
"
)
private
String
productModel
;
private
String
productModel
;
@ApiModelProperty
(
"委托单位"
)
@ApiModelProperty
(
"委托单位"
)
...
@@ -54,42 +65,14 @@ public class TaskGetInfoResponse {
...
@@ -54,42 +65,14 @@ public class TaskGetInfoResponse {
@ApiModelProperty
(
"委托单位邮政编码"
)
@ApiModelProperty
(
"委托单位邮政编码"
)
private
String
entrustedUnitCode
;
private
String
entrustedUnitCode
;
@ApiModelProperty
(
"
车辆类型
"
)
@ApiModelProperty
(
"
整车样品信息
"
)
private
String
carType
;
private
String
vehicleSampleInformation
;
@ApiModelProperty
(
"
车辆识别码
"
)
@ApiModelProperty
(
"
零件样品信息
"
)
private
String
carIdentificationCode
;
private
String
partSampleInformation
;
@ApiModelProperty
(
"保密等级"
)
@ApiModelProperty
(
"任务发起人id"
)
private
String
confidentialityLevel
;
private
Long
taskInitiatorId
;
@ApiModelProperty
(
"样品名称"
)
private
String
sampleName
;
@ApiModelProperty
(
"生产企业id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
productionId
;
@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
(
"检验依据"
)
private
String
inspectionBasis
;
@ApiModelProperty
(
"任务发起人姓名"
)
@ApiModelProperty
(
"任务发起人姓名"
)
private
String
taskInitiator
;
private
String
taskInitiator
;
...
@@ -118,7 +101,7 @@ public class TaskGetInfoResponse {
...
@@ -118,7 +101,7 @@ public class TaskGetInfoResponse {
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@ApiModelProperty
(
"关联标准表id"
)
@ApiModelProperty
(
"关联标准表id
(检验依据)
"
)
private
Long
standardId
;
private
Long
standardId
;
...
@@ -135,4 +118,10 @@ public class TaskGetInfoResponse {
...
@@ -135,4 +118,10 @@ public class TaskGetInfoResponse {
@ApiModelProperty
(
"小组成员"
)
@ApiModelProperty
(
"小组成员"
)
private
List
<
TaskUserRelation
>
auditors
;
private
List
<
TaskUserRelation
>
auditors
;
@ApiModelProperty
(
"整车样品信息"
)
private
List
<
Sample
>
completeVehicleSample
;
@ApiModelProperty
(
"零件样品信息"
)
private
List
<
Sample
>
partVehicleSample
;
}
}
quality-review/src/main/resources/mapper/SampleManagementMapper.xml
View file @
6121b0f6
...
@@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sm.remark,
sm.remark,
sm.trademark,
sm.trademark,
sm.sample_photos,
sm.sample_photos,
sm.car_company_name
m
sm.car_company_name
from t_sample sm
from t_sample sm
</sql>
</sql>
...
@@ -164,4 +164,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -164,4 +164,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"flag != null and flag != ''"
>
and sm.flag = #{flag}
</if>
<if
test=
"flag != null and flag != ''"
>
and sm.flag = #{flag}
</if>
</where>
</where>
</select>
</select>
<resultMap
type=
"com.ruoyi.web.response.SampleListResponse"
id=
"SampleListResponse"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"identificationCode"
column=
"identification_code"
/>
<result
property=
"sampleNumber"
column=
"sample_number"
/>
<result
property=
"sampleName"
column=
"sample_name"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
</resultMap>
<select
id=
"findByIdList"
resultMap=
"SampleListResponse"
>
select id,identification_code,sample_number,sample_name,enterprise_id from t_sample
WHERE id IN
<foreach
collection=
"relationList"
item=
"relation"
open=
"("
separator=
","
close=
")"
>
#{relation.sampleId}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
quality-review/src/main/resources/mapper/TaskSampleRelationMapper.xml
View file @
6121b0f6
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.domain.TaskSampleRelation"
>
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.domain.TaskSampleRelation"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"taskId"
column=
"task_id"
jdbcType=
"BIGINT"
/>
<result
property=
"taskId"
column=
"task_id"
jdbcType=
"BIGINT"
/>
<result
property=
"sampleId"
column=
"
user
_id"
jdbcType=
"BIGINT"
/>
<result
property=
"sampleId"
column=
"
sample
_id"
jdbcType=
"BIGINT"
/>
<result
property=
"flag"
column=
"
name
"
jdbcType=
"VARCHAR"
/>
<result
property=
"flag"
column=
"
flag
"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
<if
test=
"taskId != null and taskId != ''"
>
<if
test=
"taskId != null and taskId != ''"
>
task_id = #{taskId}
task_id = #{taskId}
</if>
</if>
<if
test=
"flag != null and flag != ''"
>
and flag = #{flag}
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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