|
|
@@ -131,13 +131,13 @@
|
|
|
from bus_travel
|
|
|
<trim prefix="WHERE" prefixOverrides="and | or">
|
|
|
<if test="destination != null and destination != ''">
|
|
|
- destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
+ and destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
</if>
|
|
|
<if test="titleTravel != null and titleTravel != ''">
|
|
|
- title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
+ and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
</if>
|
|
|
<if test="jdrq != null and jdrq != ''">
|
|
|
- #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
+ and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
</if>
|
|
|
</trim>
|
|
|
UNION ALL
|
|
|
@@ -146,13 +146,13 @@
|
|
|
from bus_supplier_route
|
|
|
<trim prefix="WHERE" prefixOverrides="and | or">
|
|
|
<if test="destination != null and destination != ''">
|
|
|
- destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
+ and destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
</if>
|
|
|
<if test="titleTravel != null and titleTravel != ''">
|
|
|
- offer_name like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
+ and offer_name like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
</if>
|
|
|
<if test="jdrq != null and jdrq != ''">
|
|
|
- #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
+ and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
</if>
|
|
|
</trim>
|
|
|
) f ORDER BY f.jdrq desc)
|
|
|
@@ -292,14 +292,11 @@
|
|
|
<if test="demandUuid != null and demandUuid != ''">
|
|
|
and demand_uuid = #{demandUuid}
|
|
|
</if>
|
|
|
- <if test="code != null and code != ''">
|
|
|
- and code = #{code}
|
|
|
- </if>
|
|
|
<if test="destination != null and destination != ''">
|
|
|
and destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
</if>
|
|
|
<if test="titleTravel != null and titleTravel != ''">
|
|
|
- and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
+ and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
</if>
|
|
|
<if test="jdrq != null and jdrq != ''">
|
|
|
and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
@@ -315,9 +312,6 @@
|
|
|
<if test="demandUuid != null and demandUuid != ''">
|
|
|
and demand_uuid = #{demandUuid}
|
|
|
</if>
|
|
|
- <if test="code != null and code != ''">
|
|
|
- and code = #{code}
|
|
|
- </if>
|
|
|
<if test="destination != null and destination != ''">
|
|
|
and destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
</if>
|
|
|
@@ -338,12 +332,21 @@
|
|
|
<if test="stateType != null and stateType != ''">
|
|
|
and state_type = #{stateType}
|
|
|
</if>
|
|
|
- <if test="code != null and code != ''">
|
|
|
- and code = #{code}
|
|
|
- </if>
|
|
|
<if test="demandUuid != null and demandUuid != ''">
|
|
|
and demand_uuid = #{demandUuid}
|
|
|
</if>
|
|
|
+ <if test="destination != null and destination != ''">
|
|
|
+ and destination like CONCAT(CONCAT('%', #{destination}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="titleTravel != null and titleTravel != ''">
|
|
|
+ and title_travel like CONCAT(CONCAT('%', #{titleTravel}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="jdrq != null and jdrq != ''">
|
|
|
+ and #{startTime} <![CDATA[ <= ]]> jdrq and #{endTime} <![CDATA[ > ]]> jdrq
|
|
|
+ </if>
|
|
|
+ <if test="code != null and code != ''">
|
|
|
+ and code = #{code}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</select>
|
|
|
<!-- 修改供应商路线查看次数 -->
|