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

Feat

1、增加车辆审查中,问卷相关的代码结构。

Reference N/A
parent f784ff31
......@@ -2,6 +2,8 @@ package com.ruoyi.service;
import com.ruoyi.domain.CarReviewTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.request.*;
import com.ruoyi.web.response.SystemReviewTaskViewResponse;
import java.util.List;
......@@ -12,6 +14,50 @@ import java.util.List;
*/
public interface CarReviewTaskService extends IService<CarReviewTask> {
/**
* 根据问卷状态查询进行中的任务
* @param reviewStatus
* @return
*/
List<CarReviewTask> findListByReviewStatus(String reviewStatus);
/**
* 创建一个车辆审查任务
*/
void createTask(CarReviewTaskCreateRequest request);
/**
* 查看车辆审查任务
* @param taskId
* @return
*/
SystemReviewTaskViewResponse view(Long taskId);
/**
* 开始一个车辆审查任务中的问卷任务
*/
void startReviewTask(CarReviewTaskStartRequest request);
/**
* 提交一个车辆审查任务中的问卷任务
* @param request
*/
void submitReviewTask(CarReviewTaskSubmitRequest request);
/**
* 根据状态查找车辆审查任务
* @return
*/
List<CarReviewTask> findListByStatus(String status);
/**
* 查询处理中的任务
* @return
*/
List<CarReviewTask> findListInProcess();
}
......@@ -4,8 +4,13 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.domain.CarReviewTask;
import com.ruoyi.service.CarReviewTaskService;
import com.ruoyi.mapper.CarReviewTaskMapper;
import com.ruoyi.web.request.CarReviewTaskCreateRequest;
import com.ruoyi.web.request.CarReviewTaskStartRequest;
import com.ruoyi.web.request.CarReviewTaskSubmitRequest;
import com.ruoyi.web.response.SystemReviewTaskViewResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
......@@ -14,6 +19,7 @@ import java.util.List;
* @description 针对表【t_car_review_task(车型审查任务)】的数据库操作Service实现
* @createDate 2024-01-08 13:14:13
*/
@Transactional
@Service
public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, CarReviewTask>
implements CarReviewTaskService{
......@@ -25,6 +31,36 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
public List<CarReviewTask> findListByReviewStatus(String reviewStatus) {
return carReviewTaskMapper.findListByReviewStatus(reviewStatus);
}
@Override
public void createTask(CarReviewTaskCreateRequest request) {
}
@Override
public SystemReviewTaskViewResponse view(Long taskId) {
return null;
}
@Override
public void startReviewTask(CarReviewTaskStartRequest request) {
}
@Override
public void submitReviewTask(CarReviewTaskSubmitRequest request) {
}
@Override
public List<CarReviewTask> findListByStatus(String status) {
return null;
}
@Override
public List<CarReviewTask> findListInProcess() {
return null;
}
}
......
package com.ruoyi.web;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api("车辆审查任务")
@RestController
@RequestMapping("/car/review/task")
public class CarReviewTaskController {
}
package com.ruoyi.web.request;
public class CarReviewTaskCreateRequest {
}
package com.ruoyi.web.request;
import lombok.Data;
@Data
public class CarReviewTaskStartRequest {
private Long taskId;
}
package com.ruoyi.web.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel(value = "CarReviewTaskSubmitRequest", description = "提交车辆审查问卷")
@Data
public class CarReviewTaskSubmitRequest {
@ApiModelProperty("任务id")
private Long taskId;
@ApiModelProperty("图片地址")
private String imagesUrl;
}
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