Commit 795b567d authored by 王飞's avatar 王飞

Merge branch 'wangdingyi' into 'dev'

注解

See merge request !40
parents 5a755960 29e0a6c3
...@@ -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 {
...@@ -26,10 +26,10 @@ public class ReviewDetailsResultController extends BaseController { ...@@ -26,10 +26,10 @@ public class ReviewDetailsResultController extends BaseController {
@Autowired @Autowired
private ReviewDetailsResultService reviewDetailsResultService; private ReviewDetailsResultService reviewDetailsResultService;
@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")})
@Log(title = "保存审查结果", businessType = BusinessType.INSERT) @Log(title = "保存问卷审查结果", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/save") @RequestMapping(method = RequestMethod.POST, value = "/save")
public R<String> save(@Validated @RequestBody ReviewDetailsResultSaveRequest request) { public R<String> save(@Validated @RequestBody ReviewDetailsResultSaveRequest request) {
reviewDetailsResultService.save(request); reviewDetailsResultService.save(request);
......
...@@ -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 {
...@@ -31,7 +31,7 @@ public class StandardController extends BaseController { ...@@ -31,7 +31,7 @@ public class StandardController extends BaseController {
* 分页查询 * 分页查询
* @return * @return
*/ */
@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")})
@RequestMapping(method = RequestMethod.POST, value = "/findStandardList") @RequestMapping(method = RequestMethod.POST, value = "/findStandardList")
......
...@@ -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 {
...@@ -61,7 +61,7 @@ public class SystemReviewTaskController extends BaseController { ...@@ -61,7 +61,7 @@ public class SystemReviewTaskController extends BaseController {
return R.ok(); return R.ok();
} }
@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")})
@RequestMapping(method = RequestMethod.POST, value = "/submit") @RequestMapping(method = RequestMethod.POST, value = "/submit")
......
...@@ -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