Commit 29e0a6c3 authored by W_Y's avatar W_Y

接口注解&添加字段

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