Commit 7bf8a1ba authored by 王飞's avatar 王飞

Merge branch 'wangdingyi' into 'dev'

创建车辆审查任务

See merge request !31
parents 095edc67 a9e7ec19
...@@ -9,12 +9,14 @@ import java.util.Date; ...@@ -9,12 +9,14 @@ import java.util.Date;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors;
/** /**
* 车型审查任务 * 车型审查任务
* @TableName t_car_review_task * @TableName t_car_review_task
*/ */
@TableName(value ="t_car_review_task") @TableName(value ="t_car_review_task")
@Accessors(chain = true)
@Data @Data
public class CarReviewTask implements Serializable { public class CarReviewTask implements Serializable {
...@@ -23,6 +25,8 @@ public class CarReviewTask implements Serializable { ...@@ -23,6 +25,8 @@ public class CarReviewTask implements Serializable {
@TableField(exist = false) @TableField(exist = false)
public static final String TASK_STATUS_FINISH = "FINISH"; public static final String TASK_STATUS_FINISH = "FINISH";
@TableField(exist = false) @TableField(exist = false)
public static final String REVIEW_STATUS_NONE = "NONE"; public static final String REVIEW_STATUS_NONE = "NONE";
@TableField(exist = false) @TableField(exist = false)
......
package com.ruoyi.domain; package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -11,13 +10,13 @@ import lombok.experimental.Accessors; ...@@ -11,13 +10,13 @@ import lombok.experimental.Accessors;
/** /**
* 体系审查任务&用户映射关系 * 体系审查任务&用户映射关系
* @TableName t_system_review_task_user_relation * @TableName t_review_task_user_relation
*/ */
@ApiModel @ApiModel
@TableName(value ="t_system_review_task_user_relation") @TableName(value ="t_review_task_user_relation")
@Accessors(chain = true) @Accessors(chain = true)
@Data @Data
public class SystemReviewTaskUserRelation { public class ReviewTaskUserRelation {
/** /**
* 任务id * 任务id
......
package com.ruoyi.mapper; package com.ruoyi.mapper;
import com.ruoyi.domain.SystemReviewTaskUserRelation; import com.ruoyi.domain.ReviewTaskUserRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
...@@ -11,7 +11,7 @@ import org.springframework.stereotype.Repository; ...@@ -11,7 +11,7 @@ import org.springframework.stereotype.Repository;
* @Entity com.ruoyi.domain.SystemReviewTaskUserRelation * @Entity com.ruoyi.domain.SystemReviewTaskUserRelation
*/ */
@Repository @Repository
public interface SystemReviewTaskUserRelationMapper extends BaseMapper<SystemReviewTaskUserRelation> { public interface ReviewTaskUserRelationMapper extends BaseMapper<ReviewTaskUserRelation> {
} }
......
...@@ -3,6 +3,7 @@ package com.ruoyi.service; ...@@ -3,6 +3,7 @@ package com.ruoyi.service;
import com.ruoyi.domain.CarReviewTask; import com.ruoyi.domain.CarReviewTask;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.request.*; import com.ruoyi.web.request.*;
import com.ruoyi.web.response.CarReviewTaskViewResponse;
import com.ruoyi.web.response.SystemReviewTaskViewResponse; import com.ruoyi.web.response.SystemReviewTaskViewResponse;
import java.util.List; import java.util.List;
...@@ -32,7 +33,7 @@ public interface CarReviewTaskService extends IService<CarReviewTask> { ...@@ -32,7 +33,7 @@ public interface CarReviewTaskService extends IService<CarReviewTask> {
* @param taskId * @param taskId
* @return * @return
*/ */
SystemReviewTaskViewResponse view(Long taskId); CarReviewTaskViewResponse viewReviewTask(Long taskId);
/** /**
......
package com.ruoyi.service; package com.ruoyi.service;
import com.ruoyi.domain.SystemReviewTaskUserRelation; import com.ruoyi.domain.ReviewTaskUserRelation;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
/** /**
...@@ -8,6 +8,6 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -8,6 +8,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @description 针对表【t_system_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Service * @description 针对表【t_system_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Service
* @createDate 2023-12-15 10:41:16 * @createDate 2023-12-15 10:41:16
*/ */
public interface SystemReviewTaskUserRelationService extends IService<SystemReviewTaskUserRelation> { public interface ReviewTaskUserRelationService extends IService<ReviewTaskUserRelation> {
} }
package com.ruoyi.service;
import com.ruoyi.domain.CarReviewTask;
import com.ruoyi.web.response.CarReviewTaskViewResponse;
public interface StrategyCarReviewTask {
CarReviewTaskViewResponse doView(CarReviewTask carReviewTask);
}
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.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.SnowflakeUtil;
import com.ruoyi.domain.CarReviewTask; import com.ruoyi.domain.CarReviewTask;
import com.ruoyi.domain.ReviewTaskUserRelation;
import com.ruoyi.domain.Standard;
import com.ruoyi.domain.SystemReviewTask;
import com.ruoyi.service.CarReviewTaskService; import com.ruoyi.service.CarReviewTaskService;
import com.ruoyi.mapper.CarReviewTaskMapper; import com.ruoyi.mapper.CarReviewTaskMapper;
import com.ruoyi.service.ReviewTaskUserRelationService;
import com.ruoyi.service.StandardService;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.web.request.CarReviewTaskCreateRequest; import com.ruoyi.web.request.CarReviewTaskCreateRequest;
import com.ruoyi.web.request.CarReviewTaskStartRequest; import com.ruoyi.web.request.CarReviewTaskStartRequest;
import com.ruoyi.web.request.CarReviewTaskSubmitRequest; import com.ruoyi.web.request.CarReviewTaskSubmitRequest;
import com.ruoyi.web.response.CarReviewTaskViewResponse;
import com.ruoyi.web.response.SystemReviewTaskViewResponse; import com.ruoyi.web.response.SystemReviewTaskViewResponse;
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;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -27,6 +39,21 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C ...@@ -27,6 +39,21 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Autowired @Autowired
private CarReviewTaskMapper carReviewTaskMapper; private CarReviewTaskMapper carReviewTaskMapper;
@Autowired
private ISysUserService sysUserService;
@Autowired
private StandardService standardService;
@Autowired
private CarReviewTaskService carReviewTaskService;
@Autowired
private ReviewTaskUserRelationService relationService;
@Autowired
private StrategyCarReviewTaskContext strategyCarReviewTaskContext;
@Override @Override
public List<CarReviewTask> findListByReviewStatus(String reviewStatus) { public List<CarReviewTask> findListByReviewStatus(String reviewStatus) {
return carReviewTaskMapper.findListByReviewStatus(reviewStatus); return carReviewTaskMapper.findListByReviewStatus(reviewStatus);
...@@ -35,11 +62,62 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C ...@@ -35,11 +62,62 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override @Override
public void createTask(CarReviewTaskCreateRequest request) { public void createTask(CarReviewTaskCreateRequest request) {
// 构建任务创建者
LoginUser loginUser = SecurityUtils.getLoginUser();
SysUser initiator = sysUserService.selectUserById(loginUser.getUserId());
Standard standard = standardService.findListById(request.getStandardId());
// 找到审查组长
ReviewTaskUserRelation leader = null;
List<ReviewTaskUserRelation> auditors = request.getAuditors();
for(ReviewTaskUserRelation auditor : auditors) {
if(auditor.getIsLeader() == 1) {
leader = auditor;
break;
}
}
// 构建并保存任务信息
CarReviewTask task = new CarReviewTask()
.setTaskNo(SnowflakeUtil.generate().toString())
.setTaskInitiator(initiator.getNickName())
.setTaskInitiatorDept(initiator.getDept().getDeptName())
.setTaskStatus(CarReviewTask.TASK_STATUS_PENDING)
.setBizInfo(request.getBizInfo())
.setLeaderId(leader.getUserId())
.setLeader(leader.getName())
.setCreateTime(new Date())
.setTaskBeginTime(new Date())
.setStandardId(standard.getId())
.setName(standard.getName())
.setStandardNo(standard.getStandardNo())
.setFile(standard.getFile());
if (request.getReview()) {
task.setReviewStatus(CarReviewTask.REVIEW_STATUS_NEW);
} else {
task.setReviewStatus(CarReviewTask.REVIEW_STATUS_NONE);
}
if (request.getTest()) {
task.setTestStatus(CarReviewTask.TEST_STATUS_NEW);
} else {
task.setTestStatus(CarReviewTask.TEST_STATUS_NONE);
}
carReviewTaskService.save(task);
// 构建并保存该任务所关联的审核组信息
for(ReviewTaskUserRelation auditor : auditors) {
auditor.setTaskId(task.getId());
}
relationService.saveBatch(auditors);
} }
@Override @Override
public SystemReviewTaskViewResponse view(Long taskId) { public CarReviewTaskViewResponse viewReviewTask(Long taskId) {
return null; CarReviewTask carReviewTask = carReviewTaskService.getById(taskId);
return strategyCarReviewTaskContext.getResource(carReviewTask.getTaskStatus() + "SystemReviewTask").doView(carReviewTask);
} }
@Override @Override
......
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.domain.SystemReviewTaskUserRelation; import com.ruoyi.domain.ReviewTaskUserRelation;
import com.ruoyi.service.SystemReviewTaskUserRelationService; import com.ruoyi.service.ReviewTaskUserRelationService;
import com.ruoyi.mapper.SystemReviewTaskUserRelationMapper; import com.ruoyi.mapper.ReviewTaskUserRelationMapper;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
* @author wangfei * @author wangfei
* @description 针对表【t_system_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Service实现 * @description 针对表【t_review_task_user_relation(体系审查任务&用户映射关系)】的数据库操作Service实现
* @createDate 2023-12-15 10:41:16 * @createDate 2023-12-15 10:41:16
*/ */
@Service @Service
public class SystemReviewTaskUserRelationServiceImpl extends ServiceImpl<SystemReviewTaskUserRelationMapper, SystemReviewTaskUserRelation> public class ReviewTaskUserRelationServiceImpl extends ServiceImpl<ReviewTaskUserRelationMapper, ReviewTaskUserRelation>
implements SystemReviewTaskUserRelationService{ implements ReviewTaskUserRelationService {
} }
......
package com.ruoyi.service.impl;
import com.ruoyi.service.StrategyCarReviewTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Transactional
@Service
public class StrategyCarReviewTaskContext {
@Autowired
private final Map<String, StrategyCarReviewTask> resourceMap = new ConcurrentHashMap<>();
public StrategyCarReviewTaskContext(Map<String, StrategyCarReviewTask> strategyMap) {
this.resourceMap.clear();
strategyMap.forEach(resourceMap::put);
}
public StrategyCarReviewTask getResource(String operation){
return resourceMap.get(operation);
}
}
package com.ruoyi.service.impl;
import com.ruoyi.domain.*;
import com.ruoyi.mapper.ReviewDetailsResultMapper;
import com.ruoyi.mapper.SystemReviewTaskMapper;
import com.ruoyi.service.ReviewDetailsResultService;
import com.ruoyi.service.ReviewSceneChangeTaskService;
import com.ruoyi.service.ReviewStandardService;
import com.ruoyi.service.StrategyCarReviewTask;
import com.ruoyi.web.response.CarReviewTaskViewResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
@Transactional
@Service(CarReviewTask.TASK_STATUS_PENDING)
public class StrategyCarReviewTaskPending implements StrategyCarReviewTask {
@Autowired
private ReviewStandardService reviewStandardService;
@Autowired
private ReviewDetailsResultService reviewDetailsResultService;
@Autowired
private ReviewSceneChangeTaskService reviewSceneChangeTaskService;
@Autowired
private SystemReviewTaskMapper systemReviewTaskMapper;
@Autowired
private ReviewDetailsResultMapper reviewDetailsResultMapper;
// PENDING状态下
// 1.standard字段查询当前最新问卷
// 2.查询场景变更任务
// 3.需要联查问卷答案
@Override
public CarReviewTaskViewResponse doView(CarReviewTask carReviewTask) {
// 获取最新问卷
List<ReviewStandard> standardTree = reviewStandardService.findTree(carReviewTask.getStandardId(), ReviewStandard.TYPE_CAR);
// 获取当前问卷答案
List<ReviewDetailsResult> results = reviewDetailsResultService.findByTaskId(carReviewTask.getId());
// 绑定问卷与答案
setDetailsResult(standardTree, results);
// 赋值给任务
carReviewTask.setStandard(standardTree);
// 查询场景变更任务便于提醒用户场景变动
List<ReviewSceneChangeTask> lastChanges = reviewSceneChangeTaskService.findLastChangeByTaskId(carReviewTask.getId());
// 构建返回结果
CarReviewTaskViewResponse response = new CarReviewTaskViewResponse();
response.setCarReviewTask(carReviewTask);
response.setReviewSceneChangeTasks(lastChanges);
return response;
}
private void setDetailsResult(List<ReviewStandard> standards, List<ReviewDetailsResult> results) {
Map<Long, ReviewDetailsResult> resultMap = results.stream().collect(Collectors.toMap(ReviewDetailsResult::getReviewDetailsId, Function.identity(), (v1, v2) -> v1));
for(ReviewStandard standard : standards) {
List<ReviewKeyPoint> keyPointList = standard.getKeyPointList();
for(ReviewKeyPoint keypoint : keyPointList) {
List<ReviewDetails> reviewDetailsList = keypoint.getReviewDetailsList();
for(ReviewDetails details : reviewDetailsList) {
details.setResult(resultMap.get(details.getId()));
}
}
}
}
}
...@@ -20,7 +20,7 @@ import java.util.function.Function; ...@@ -20,7 +20,7 @@ import java.util.function.Function;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Transactional @Transactional
@Service(SystemReviewTask.STATUS_PENDING) @Service(SystemReviewTask.STATUS_PENDING + "SystemReviewTask")
public class StrategySystemReviewTaskPending implements StrategySystemReviewTask { public class StrategySystemReviewTaskPending implements StrategySystemReviewTask {
@Autowired @Autowired
......
...@@ -9,7 +9,6 @@ import com.ruoyi.common.utils.SecurityUtils; ...@@ -9,7 +9,6 @@ import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.SnowflakeUtil; import com.ruoyi.common.utils.SnowflakeUtil;
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.SystemReviewTaskMapper; import com.ruoyi.mapper.SystemReviewTaskMapper;
import com.ruoyi.service.*; import com.ruoyi.service.*;
import com.ruoyi.system.service.ISysUserService; import com.ruoyi.system.service.ISysUserService;
...@@ -33,7 +32,7 @@ import java.util.*; ...@@ -33,7 +32,7 @@ import java.util.*;
public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMapper, SystemReviewTask> implements SystemReviewTaskService { public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMapper, SystemReviewTask> implements SystemReviewTaskService {
@Autowired @Autowired
private SystemReviewTaskUserRelationService systemReviewTaskUserRelationService; private ReviewTaskUserRelationService systemReviewTaskUserRelationService;
@Autowired @Autowired
private SystemReviewTaskService systemReviewTaskService; private SystemReviewTaskService systemReviewTaskService;
...@@ -63,9 +62,9 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap ...@@ -63,9 +62,9 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
Standard standard = standardService.findListById(request.getStandardId()); Standard standard = standardService.findListById(request.getStandardId());
// 找到审查组长 // 找到审查组长
SystemReviewTaskUserRelation leader = null; ReviewTaskUserRelation leader = null;
List<SystemReviewTaskUserRelation> auditors = request.getAuditors(); List<ReviewTaskUserRelation> auditors = request.getAuditors();
for(SystemReviewTaskUserRelation auditor : auditors) { for(ReviewTaskUserRelation auditor : auditors) {
if(auditor.getIsLeader() == 1) { if(auditor.getIsLeader() == 1) {
leader = auditor; leader = auditor;
break; break;
...@@ -91,7 +90,7 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap ...@@ -91,7 +90,7 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
// 构建并保存该任务所关联的审核组信息 // 构建并保存该任务所关联的审核组信息
for(SystemReviewTaskUserRelation auditor : auditors) { for(ReviewTaskUserRelation auditor : auditors) {
auditor.setTaskId(task.getId()); auditor.setTaskId(task.getId());
} }
systemReviewTaskUserRelationService.saveBatch(auditors); systemReviewTaskUserRelationService.saveBatch(auditors);
......
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.domain.R;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.service.CarReviewTaskService;
import com.ruoyi.web.request.CarReviewTaskCreateRequest;
import com.ruoyi.web.request.CarReviewTaskViewRequest;
import com.ruoyi.web.request.SystemReviewTaskViewRequest;
import com.ruoyi.web.response.CarReviewTaskViewResponse;
import com.ruoyi.web.response.SystemReviewTaskViewResponse;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@Api("车辆审查任务") @Api("车辆审查任务")
@RestController @RestController
@RequestMapping("/car/review/task") @RequestMapping("/car/review/task")
public class CarReviewTaskController { public class CarReviewTaskController extends BaseController {
@Autowired
private CarReviewTaskService carReviewTaskService;
@ApiOperation("创建车辆审查任务")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "车辆审查任务", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/create")
public R<String> create(@Validated @RequestBody CarReviewTaskCreateRequest request) {
carReviewTaskService.createTask(request);
return R.ok();
}
@ApiOperation("查看车辆审查任务详情")
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/view")
public R<CarReviewTaskViewResponse> view(@Validated @RequestBody CarReviewTaskViewRequest request) {
CarReviewTaskViewResponse carReviewTaskViewResponse = carReviewTaskService.viewReviewTask(request.getTaskId());
return R.ok(carReviewTaskViewResponse);
}
} }
package com.ruoyi.web.request; package com.ruoyi.web.request;
import com.ruoyi.domain.ReviewTaskUserRelation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel(value = "CarReviewTaskCreateRequest", description = "创建车辆审查任务")
@Data
public class CarReviewTaskCreateRequest { public class CarReviewTaskCreateRequest {
@ApiModelProperty("占位")
private String bizInfo;
@ApiModelProperty("小组信息")
private List<ReviewTaskUserRelation> auditors;
/**
* 是否创建车型问卷审查任务
*/
@ApiModelProperty("是否创建车型问卷审查任务")
private Boolean review;
/**
* 是否创建车型测试任务
*/
@ApiModelProperty("是否创建车型测试任务")
private Boolean test;
/**
* 标准id
* 根据哪个标准新建的审查任务
*/
@ApiModelProperty("标准id(根据哪个标准新建的审查任务)")
private Long standardId;
} }
package com.ruoyi.web.request;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel(value = "CarReviewTaskViewRequest", description = "查兰车辆审查任务")
@Data
public class CarReviewTaskViewRequest {
@ApiModelProperty("任务id")
private Long taskId;
}
package com.ruoyi.web.request; package com.ruoyi.web.request;
import com.ruoyi.domain.SystemReviewTaskUserRelation; import com.ruoyi.domain.ReviewTaskUserRelation;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
...@@ -10,7 +10,7 @@ public class SystemReviewTaskCreateRequest { ...@@ -10,7 +10,7 @@ public class SystemReviewTaskCreateRequest {
private String bizInfo; private String bizInfo;
private List<SystemReviewTaskUserRelation> auditors; private List<ReviewTaskUserRelation> auditors;
/** /**
* 标准id * 标准id
......
package com.ruoyi.web.response;
import com.ruoyi.domain.CarReviewTask;
import com.ruoyi.domain.ReviewSceneChangeTask;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel(value = "CarReviewTaskViewResponse", description = "查询车辆审查任务详情响应体")
@Data
public class CarReviewTaskViewResponse {
/**
* 任务信息
*/
@ApiModelProperty("任务信息")
private CarReviewTask carReviewTask;
/**
* 任务开始后的场景变更信息
*/
@ApiModelProperty("任务开始后的场景变更信息")
private List<ReviewSceneChangeTask> reviewSceneChangeTasks;
}
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.mapper.SystemReviewTaskUserRelationMapper"> <mapper namespace="com.ruoyi.mapper.ReviewTaskUserRelationMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.domain.SystemReviewTaskUserRelation"> <resultMap id="BaseResultMap" type="com.ruoyi.domain.ReviewTaskUserRelation">
<result property="taskId" column="task_id" jdbcType="BIGINT"/> <result property="taskId" column="task_id" jdbcType="BIGINT"/>
<result property="userId" column="user_id" jdbcType="BIGINT"/> <result property="userId" column="user_id" jdbcType="BIGINT"/>
<result property="isLeader" column="is_leader" jdbcType="TINYINT"/> <result property="isLeader" column="is_leader" jdbcType="TINYINT"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
task_id,user_id,is_leader task_id,user_id,is_leader,name
</sql> </sql>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment