소스 검색

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

luofeiyun 3 주 전
부모
커밋
243e333423
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ship-module-product/ship-module-product-biz/src/main/resources/mapper/voyage/VoyageMapper.xml

+ 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  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>
 </mapper>