Commit f1db482c authored by 宋源硕's avatar 宋源硕

Merge branch 'songyuanshuo' into 'master'

1./getReviewerOpinion 添加注释 2./review/standard/list 章节排序

See merge request !3
parents a2f7952e a0294b6a
......@@ -66,6 +66,9 @@ public interface ReviewSceneChangeTaskMapper extends BaseMapper<ReviewSceneChang
List<ReviewerListResponse> selectReviewerListByTaskId(@Param("id") Long id);
/*
* 查看评审人员评审意见
* */
List<ReviewOpinionResponse> getReviewerOpinion(@Param("id") Long id);
}
......
......@@ -122,6 +122,9 @@ public interface ReviewSceneChangeTaskService extends IService<ReviewSceneChange
* */
List<SysUser> getReviewList();
/*
* 查看评审人员评审意见
* */
List<ReviewOpinionResponse> getReviewerOpinion(Long id);
}
......@@ -531,6 +531,9 @@ public class ReviewSceneChangeTaskServiceImpl extends ServiceImpl<ReviewSceneCha
return reviewerList;
}
/*
* 查看评审人员评审意见
* */
@Override
public List<ReviewOpinionResponse> getReviewerOpinion(Long id) {
List<ReviewOpinionResponse> list = reviewSceneChangeTaskMapper.getReviewerOpinion(id);
......
......@@ -53,14 +53,18 @@
<where>
<if test="standardId != null"> and standard_id = #{standardId} </if>
<if test="type != null and type != ''"> and `type` = #{type} </if>
<if test="chapter != null and chapter != ''"> and chapter like concat('%', #{chapter}, '%') </if>
<if test="chapter != null and chapter != ''"> and chapter =#{chapter} </if>
<if test="text != null and text != ''"> and text like concat('%', #{text}, '%') </if>
<if test="testMethod != null and testMethod != ''"> and test_method like concat('%', #{testMethod}, '%') </if>
<if test="name != null and text != ''">and name like concat('%',#{name}, '%')</if>
<if test="standardNo != null and standardNo != ''">and standard_no like concat('%',#{standardNo},'%')</if>
</where>
/*ORDER BY
chapter*/
ORDER BY
chapter
CAST(SUBSTRING_INDEX(chapter, '.', 1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 2), '.', -1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 3), '.', -1) AS UNSIGNED)
</select>
<select id="selectTestInspectionContent"
......
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