瀏覽代碼

修改需求

zhs 3 年之前
父節點
當前提交
fc7ac0fb96
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/config/mapping/ReleaseTravelMapper.xml

+ 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">