|
|
@@ -188,7 +188,7 @@
|
|
|
LEFT JOIN ( SELECT COUNT ( * ) AS flag, travel_uuid FROM sys_travel_give WHERE code = #{code} GROUP BY travel_uuid ) c ON a.uuid = c.travel_uuid
|
|
|
LEFT JOIN ( SELECT COUNT ( * ) AS commCount, travel_uuid FROM bus_travel_comments GROUP BY travel_uuid ) d ON a.uuid = d.travel_uuid
|
|
|
LEFT JOIN (SELECT headpir,name,code from sys_users) f on f.code = a.code
|
|
|
- where a.state_type = '1'
|
|
|
+ where a.state_type = '1' and demand_uuid is not null
|
|
|
ORDER BY NEWID()
|
|
|
</select>
|
|
|
<!-- 查询游记详情 -->
|
|
|
@@ -306,9 +306,6 @@
|
|
|
select id
|
|
|
from bus_travel
|
|
|
<trim prefix="WHERE" prefixOverrides="and | or">
|
|
|
- <if test="stateType != null and stateType != ''">
|
|
|
- and state_type = #{stateType}
|
|
|
- </if>
|
|
|
<if test="demandUuid != null and demandUuid != ''">
|
|
|
and demand_uuid = #{demandUuid}
|
|
|
</if>
|
|
|
@@ -330,9 +327,6 @@
|
|
|
select id
|
|
|
FROM bus_supplier_route
|
|
|
<trim prefix="WHERE" prefixOverrides="and | or">
|
|
|
- <if test="stateType != null and stateType != ''">
|
|
|
- and state_type = #{stateType}
|
|
|
- </if>
|
|
|
<if test="demandUuid != null and demandUuid != ''">
|
|
|
and demand_uuid = #{demandUuid}
|
|
|
</if>
|
|
|
@@ -348,6 +342,7 @@
|
|
|
<if test="features != null and features != ''">
|
|
|
and features = #{features}
|
|
|
</if>
|
|
|
+ and state_type = '1'
|
|
|
</trim>
|
|
|
) a
|
|
|
</select>
|