zhs 3 éve
szülő
commit
fc7ac0fb96

+ 1 - 1
src/main/resources/config/mapping/ReleaseTravelMapper.xml

@@ -440,7 +440,7 @@
             LEFT JOIN bus_supplier_release c ON b.uuid = c.demand_uuid
             LEFT JOIN sys_supplier e ON c.code = e.code
             JOIN bus_private_ordering_type a ON (order_type = '4' or order_type = '5' or order_type = '14') and b.uuid = a.demand_uuid and c.code = a.code
-        where b.code = #{code} and b.uuid not in (select demand_uuid from bus_travel where code = #{code} and state_type = '1')
+        where b.code = #{code} and b.uuid not in (select demand_uuid from bus_travel where code = #{code} and state_type = '1' and demand_uuid is not null )
     </select>
     <!-- 查询指定定制单内容 -->
     <select id="getTravelVal" resultType="PrivateOrder">