Commit ef0f9248 authored by wdy's avatar wdy

模糊查询

parent 8da03c0e
...@@ -74,6 +74,12 @@ public class ReviewSceneChangeTask { ...@@ -74,6 +74,12 @@ public class ReviewSceneChangeTask {
@ApiModelProperty("任务编号") @ApiModelProperty("任务编号")
private String taskNo; private String taskNo;
@ApiModelProperty("检验标准id")
private String inspectStandardId;
@ApiModelProperty("检验标准名称")
private String inspectStandardName;
/** /**
* 章节 * 章节
*/ */
......
...@@ -12,7 +12,7 @@ public class ReviewSceneChangeTaskFindCreateRequest extends PageDomain { ...@@ -12,7 +12,7 @@ public class ReviewSceneChangeTaskFindCreateRequest extends PageDomain {
@ApiModelProperty("评审类型") @ApiModelProperty("评审类型")
private String operationSort; private String operationSort;
@ApiModelProperty("条款分类[system(体系审查)、car(车型审查)]") @ApiModelProperty("标准要求分类[system(体系审查)、car(车型审查)]")
private String type; private String type;
@ApiModelProperty("关键词") @ApiModelProperty("关键词")
...@@ -20,4 +20,8 @@ public class ReviewSceneChangeTaskFindCreateRequest extends PageDomain { ...@@ -20,4 +20,8 @@ public class ReviewSceneChangeTaskFindCreateRequest extends PageDomain {
@ApiModelProperty("评审状态") @ApiModelProperty("评审状态")
private String taskStatus; private String taskStatus;
@ApiModelProperty("检验标准")
private Long inspectStandardId;
} }
...@@ -17,4 +17,7 @@ public class ReviewSceneChangeTaskFindFinishRequest extends PageDomain { ...@@ -17,4 +17,7 @@ public class ReviewSceneChangeTaskFindFinishRequest extends PageDomain {
@ApiModelProperty("关键词") @ApiModelProperty("关键词")
private String keyword; private String keyword;
@ApiModelProperty("检验标准")
private Long inspectStandardId;
} }
...@@ -17,4 +17,7 @@ public class ReviewSceneChangeTaskFindPendingRequest extends PageDomain { ...@@ -17,4 +17,7 @@ public class ReviewSceneChangeTaskFindPendingRequest extends PageDomain {
@ApiModelProperty("关键词") @ApiModelProperty("关键词")
private String keyword; private String keyword;
@ApiModelProperty("检验标准")
private Long inspectStandardId;
} }
...@@ -22,6 +22,12 @@ public class ReviewSceneChangeTaskResponse { ...@@ -22,6 +22,12 @@ public class ReviewSceneChangeTaskResponse {
@ApiModelProperty("任务编号") @ApiModelProperty("任务编号")
private String taskNo; private String taskNo;
@ApiModelProperty("检验标准id")
private String inspectStandardId;
@ApiModelProperty("检验标准名称")
private String inspectStandardName;
/** /**
* 章节 * 章节
*/ */
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
and status = #{status} and status = #{status}
</if> </if>
<if test="identifyNumber != null and identifyNumber != ''"> <if test="identifyNumber != null and identifyNumber != ''">
and identify_number = #{identifyNumber} and identify_number like concat('%',#{identifyNumber},'%')
</if> </if>
</where> </where>
</select> </select>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
and status = #{status} and status = #{status}
</if> </if>
<if test="identifyNumber != null and identifyNumber != ''"> <if test="identifyNumber != null and identifyNumber != ''">
and identify_number = #{identifyNumber} and identify_number like concat('%',#{identifyNumber},'%')
</if> </if>
</where> </where>
</select> </select>
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
<result property="taskResult" column="task_result" jdbcType="VARCHAR"/> <result property="taskResult" column="task_result" jdbcType="VARCHAR"/>
<result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/> <result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/>
<result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/> <result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/>
<result property="inspectStandardId" column="inspect_standard_id" jdbcType="BIGINT"/>
<result property="inspectStandardName" column="inspect_standard_name" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<resultMap id="ResponseResultMap" type="com.ruoyi.web.response.ReviewSceneChangeTaskResponse"> <resultMap id="ResponseResultMap" type="com.ruoyi.web.response.ReviewSceneChangeTaskResponse">
...@@ -43,6 +45,8 @@ ...@@ -43,6 +45,8 @@
<result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/> <result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/>
<result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/> <result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/>
<result property="decision" column="decision" jdbcType="VARCHAR"/> <result property="decision" column="decision" jdbcType="VARCHAR"/>
<result property="inspectStandardId" column="inspect_standard_id" jdbcType="BIGINT"/>
<result property="inspectStandardName" column="inspect_standard_name" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<select id="findLastChangeByTaskId" resultType="com.ruoyi.domain.ReviewSceneChangeTask"> <select id="findLastChangeByTaskId" resultType="com.ruoyi.domain.ReviewSceneChangeTask">
...@@ -65,7 +69,9 @@ ...@@ -65,7 +69,9 @@
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and (sct.old_text like concat('%',#{request.keyword},'%') || sct.new_text like concat('%',#{request.keyword},'%')) and (sct.old_text like concat('%',#{request.keyword},'%') || sct.new_text like concat('%',#{request.keyword},'%'))
</if> </if>
order by sct.task_begin_time desc <if test="request.inspectStandardId != null and request.inspectStandardId != ''">
and inspect_standard_id = #{request.inspectStandardId}
</if>
</select> </select>
<select id="findFinishListByUserId" resultType="com.ruoyi.web.response.ReviewSceneChangeTaskResponse"> <select id="findFinishListByUserId" resultType="com.ruoyi.web.response.ReviewSceneChangeTaskResponse">
...@@ -81,7 +87,9 @@ ...@@ -81,7 +87,9 @@
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and (sct.old_text like concat('%',#{request.keyword},'%') || sct.new_text like concat('%',#{request.keyword},'%')) and (sct.old_text like concat('%',#{request.keyword},'%') || sct.new_text like concat('%',#{request.keyword},'%'))
</if> </if>
order by sct.task_begin_time desc <if test="request.inspectStandardId != null and request.inspectStandardId != ''">
and inspect_standard_id = #{request.inspectStandardId}
</if>
</select> </select>
<select id="findCreateListByUserId" resultType="com.ruoyi.domain.ReviewSceneChangeTask"> <select id="findCreateListByUserId" resultType="com.ruoyi.domain.ReviewSceneChangeTask">
...@@ -99,7 +107,9 @@ ...@@ -99,7 +107,9 @@
<if test="request.taskStatus != null and request.taskStatus != ''"> <if test="request.taskStatus != null and request.taskStatus != ''">
and task_status = #{request.taskStatus} and task_status = #{request.taskStatus}
</if> </if>
order by task_begin_time desc <if test="request.inspectStandardId != null and request.inspectStandardId != ''">
and inspect_standard_id = #{request.inspectStandardId}
</if>
</select> </select>
</mapper> </mapper>
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