优化搜索

This commit is contained in:
chenjinsong
2018-03-22 15:20:52 +08:00
parent 124c968c4a
commit b0bd2d4593
2 changed files with 11 additions and 7 deletions

View File

@@ -57,7 +57,7 @@
<if test="searchCreateTimeEnd != null">
and dic.create_time &lt;= #{searchCreateTimeEnd}
</if>
<if test="searchEditTimeStart != null">
<!-- <if test="searchEditTimeStart != null">
and dic.create_time &gt;= #{searchEditTimeStart}
</if>
<if test="searchEditTimeEnd != null">
@@ -71,7 +71,7 @@
</if>
<if test="isAudit != null">
and dic.is_audit = #{isAudit}
</if>
</if> -->
<if test="request != null and request.id != null">
and dic.request_id = #{request.id}
</if>
@@ -84,6 +84,9 @@
<if test="lable != null and lable != ''">
and concat(",", dic.lable, ",") like concat("%,", #{lable}, ",%")
</if>
<if test="cfgDesc != null and cfgDesc != ''">
and dic.cfg_desc like concat("%", #{cfgDesc}, "%")
</if>
</select>
<select id="get" resultMap="dnsIpCfgMap">