1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Fuzzy query debug

This commit is contained in:
assina045
2023-06-10 03:43:43 +08:00
parent 5d43ea9f55
commit b96b3a8cf6
9 changed files with 104 additions and 21 deletions

View File

@@ -38,6 +38,8 @@
<if test="status!=null ">
and instr(status,#{status})>0
</if>
and deleted = 0
and old = 0
</where>
order by create_time desc
</select>
@@ -71,8 +73,9 @@
*
from t_affair
<where>
<if test=" applicantId !=null">
applicant_id = #{applicantId}
<if test=" inspectorId !=null">
inspector_id = #{inspectorId}
and status=0
</if>
<if test=" title!=null and title!='' ">
@@ -84,14 +87,46 @@
<if test="status!=null ">
and instr(status,#{status})>0
</if>
and deleted = 0
and old = 0
</where>
order by create_time desc
</select>
<select id="getApprovedByFuzzyQueries" resultMap="affairMap3">
select
*
from t_affair
<where>
<if test=" inspectorId !=null">
inspector_id = #{inspectorId}
and status!=0
</if>
<if test=" title!=null and title!='' ">
and instr(title,#{title})&gt;0
</if>
<if test=" typeId!=null ">
and instr(type_id,#{typeId})>0
</if>
<if test="status!=null ">
and instr(status,#{status})>0
</if>
and deleted = 0
and old = 0
</where>
order by inspect_time desc
</select>
<resultMap id="affairMap2" type="affair" autoMapping="true">
<id property="id" column="id"/>
</resultMap>
<resultMap id="affairMap3" type="affair" autoMapping="true">
<id property="id" column="id"/>
</resultMap>