Просмотр исходного кода

fix: 处理选择航次或返回被删除的航次

luofeiyun 3 недель назад
Родитель
Сommit
243e333423

+ 1 - 1
ship-module-product/ship-module-product-biz/src/main/resources/mapper/voyage/VoyageMapper.xml

@@ -10,6 +10,6 @@
      -->
      -->
     <select id="selectVovageList" resultType="com.yc.ship.module.product.dal.dataobject.voyage.VoyageDO">
     <select id="selectVovageList" resultType="com.yc.ship.module.product.dal.dataobject.voyage.VoyageDO">
          select  w.*,r.direction from product_voyage w inner join resource_route r on w.route_id = r.id
          select  w.*,r.direction from product_voyage w inner join resource_route r on w.route_id = r.id
-         where w.ship_id = #{shipId} and w.start_time > now() and w.shelf_status = 1 and w.channel like '%1%' order by w.create_time asc;
+         where w.deleted = 0 and r.deleted = 0 and w.ship_id = #{shipId} and w.start_time > now() and w.shelf_status = 1 and w.channel like '%1%' order by w.create_time asc;
     </select>
     </select>
 </mapper>
 </mapper>