Commit 56f07ae5 authored by zhangjianqian's avatar zhangjianqian

添加筛选字段

parent 11d8ba10
......@@ -86,7 +86,17 @@ public class TInsTaskInfor extends BaseEntity
@Excel(name = "对象数量比例")
private String quantityRatio;
public void setfInsTaskInforId(Long fInsTaskInforId)
private String searchKeyword;
public String getSearchKeyword() {
return searchKeyword;
}
public void setSearchKeyword(String searchKeyword) {
this.searchKeyword = searchKeyword;
}
public void setfInsTaskInforId(Long fInsTaskInforId)
{
this.fInsTaskInforId = fInsTaskInforId;
}
......
......@@ -31,7 +31,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTInsTaskInforList" parameterType="TInsTaskInfor" resultMap="TInsTaskInforResult">
<include refid="selectTInsTaskInforVo"/>
<where>
<where>
<if test="searchKeyword !=null and searchKeyword!=''">and (f_unique_code like concat('%', #{searchKeyword}, '%') or f_name like concat('%', #{searchKeyword} , '%') )</if>
<if test="fUniqueCode != null and fUniqueCode != ''"> and f_unique_code like concat('%', #{fUniqueCode}, '%')</if>
<if test="fTaskBelong != null and fTaskBelong != ''"> and f_task_belong like concat('%', #{fTaskBelong}, '%')</if>
<if test="fTaskType != null and fTaskType != ''"> and f_task_type = #{fTaskType}</if>
......
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