mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Fuzzy query optimized
This commit is contained in:
@@ -66,6 +66,35 @@
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="getNotApprovedByFuzzyQueries" resultMap="affairMap2">
|
||||
select
|
||||
*
|
||||
from t_affair
|
||||
<where>
|
||||
<if test=" applicantId !=null">
|
||||
applicant_id = #{applicantId}
|
||||
</if>
|
||||
|
||||
<if test=" title!=null and title!='' ">
|
||||
and instr(title,#{title})>0
|
||||
</if>
|
||||
<if test=" typeId!=null ">
|
||||
and instr(type_id,#{typeId})>0
|
||||
</if>
|
||||
<if test="status!=null ">
|
||||
and instr(status,#{status})>0
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<resultMap id="affairMap2" type="affair" autoMapping="true">
|
||||
<id property="id" column="id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user