Commit ed47477f by java-温文海

修改bug'

parent 740b3b7e
...@@ -148,16 +148,10 @@ ...@@ -148,16 +148,10 @@
where a.verif_status='02' AND a.del_flag = #{DEL_FLAG_NORMAL} where a.verif_status='02' AND a.del_flag = #{DEL_FLAG_NORMAL}
<if test="routeNo != null and routeNo != ''"> <if test="routeNo != null and routeNo != ''">
AND a.route_no LIKE AND a.route_no LIKE CONCAT('%', #{routeNo}, '%')
<if test="dbName == 'oracle'">'%'||#{routeNo}||'%')</if>
<if test="dbName == 'mssql'">'%'+#{routeNo}+'%')</if>
<if test="dbName == 'mysql'">CONCAT('%', #{routeNo}, '%')</if>
</if> </if>
<if test="verifNo != null and verifNo != ''"> <if test="verifNo != null and verifNo != ''">
AND a.verif_no LIKE AND a.verif_no LIKE CONCAT('%', #{verifNo}, '%')
<if test="dbName == 'oracle'">'%'||#{verifNo}||'%')</if>
<if test="dbName == 'mssql'">'%'+#{verifNo}+'%')</if>
<if test="dbName == 'mysql'">CONCAT('%', #{verifNo}, '%')</if>
</if> </if>
<if test="verifType != null and verifType != ''"> <if test="verifType != null and verifType != ''">
AND a.verif_type = #{verifType} AND a.verif_type = #{verifType}
...@@ -196,26 +190,14 @@ ...@@ -196,26 +190,14 @@
<!--当出发地不为空,目的地为空 --> <!--当出发地不为空,目的地为空 -->
<if test="(bean.depIata != null and bean.depIata != '') "> <if test="(bean.depIata != null and bean.depIata != '') ">
AND ( favt.dep_iata LIKE AND ( favt.dep_iata LIKE CONCAT('%', #{bean.depIata}, '%')
<if test="dbName == 'oracle'">'%'||#{bean.depIata}||'%'</if> or favt.arr_iata LIKE CONCAT('%', #{bean.depIata}, '%')
<if test="dbName == 'mssql'">'%'+#{bean.depIata}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{bean.depIata}, '%')</if>
or favt.arr_iata LIKE
<if test="dbName == 'oracle'">'%'||#{bean.depIata}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{bean.depIata}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{bean.depIata}, '%')</if>
) )
</if> </if>
<!--当出发地为空,目的地不为空 --> <!--当出发地为空,目的地不为空 -->
<if test=" (bean.arrIata != null and bean.arrIata != '')"> <if test=" (bean.arrIata != null and bean.arrIata != '')">
and ( favt.dep_iata LIKE and ( favt.dep_iata LIKE CONCAT('%', #{bean.arrIata}, '%')
<if test="dbName == 'oracle'">'%'||#{bean.arrIata}||'%'</if> or favt.arr_iata LIKE CONCAT('%', #{bean.arrIata}, '%')
<if test="dbName == 'mssql'">'%'+#{bean.arrIata}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{bean.arrIata}, '%')</if>
or favt.arr_iata LIKE
<if test="dbName == 'oracle'">'%'||#{bean.arrIata}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{bean.arrIata}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{bean.arrIata}, '%')</if>
) )
</if> </if>
<if test="bean.beginTime != null and bean.beginTime != '' and bean.endTime !=null and bean.endTime != ''"> <if test="bean.beginTime != null and bean.beginTime != '' and bean.endTime !=null and bean.endTime != ''">
......
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