Commit 29e0a6c3 authored by W_Y's avatar W_Y

接口注解&添加字段

parent 57b90558
......@@ -44,4 +44,16 @@ public class Standard {
*/
@ApiModelProperty("文件路径")
private String file;
/**
* 符合
*/
@ApiModelProperty("符合")
private String conformity;
/**
* 不符合
*/
@ApiModelProperty("不符合")
private String inconformity;
}
......@@ -22,7 +22,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Api("车辆审查任务")
@Api(tags = {"车辆审查任务"})
@RestController
@RequestMapping("/car/review/task")
public class CarReviewTaskController extends BaseController {
......
......@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Api("审查细则的审查结果")
@Api(tags = "审查细则的审查结果")
@RestController
@RequestMapping("/review/details/result")
public class ReviewDetailsResultController extends BaseController {
......
......@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Api("场景变更任务")
@Api(tags = "场景变更任务")
@RestController
@RequestMapping("/review/scene/change/task")
public class ReviewSceneChangeTaskController extends BaseController {
......
......@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api("体系审查任务组成员")
@Api(tags = "体系审查任务组成员")
@RestController
@RequestMapping("/review/Task/User")
public class ReviewTaskUserRelationController extends BaseController {
......
......@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Api("标准")
@Api(tags = "标准库")
@RestController
@RequestMapping("/standard")
public class StandardController extends BaseController {
......
......@@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@Api("体系审查任务")
@Api(tags = "体系审查任务")
@RestController
@RequestMapping("/system/review/task")
public class SystemReviewTaskController extends BaseController {
......
......@@ -9,10 +9,12 @@
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="standardNo" column="standard_no" jdbcType="VARCHAR"/>
<result property="file" column="file" jdbcType="VARCHAR"/>
<result property="conformity" column="conformity" jdbcType="VARCHAR"/>
<result property="inconformity" column="inconformity" jdbcType="VARCHAR"/>
</resultMap>
<select id="findList" parameterType="com.ruoyi.domain.Standard" resultMap="BaseResultMap">
SELECT id, name, standard_no, file
SELECT id, name, standard_no, file, conformity, inconformity
FROM t_standard
<where>
<if test="params.name != null and params.name != ''">
......@@ -25,7 +27,7 @@
</select>
<select id="findListById" resultMap="BaseResultMap">
SELECT id, name, standard_no, file
SELECT id, name, standard_no, file, conformity, inconformity
FROM t_standard WHERE id = #{id}
</select>
......
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