Quellcode durchsuchen

订单登记航次,放开到前一个月显示

ZhangShuling vor 1 Woche
Ursprung
Commit
be1e6cf699

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

@@ -10,7 +10,7 @@
      -->
     <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.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;
+         where w.deleted = 0 and r.deleted = 0 and w.ship_id = #{shipId} and w.start_time > DATE_SUB(now(), INTERVAL 1 MONTH) and w.shelf_status = 1 and w.channel like '%1%' order by w.create_time asc;
     </select>
     <select id="selectListCalendar2" resultType="com.yc.ship.module.product.dal.dataobject.voyage.VoyageDO">
         select w.*,r.price basicPrice from product_voyage w inner join resource_route r on w.route_id = r.id