Commit 8666fb86 authored by chew's avatar chew

调整状态查询

parent 02d8bcd7
...@@ -35,7 +35,7 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade ...@@ -35,7 +35,7 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
List<OrderWithPendingVo> selectOrderWithPending( List<OrderWithPendingVo> selectOrderWithPending(
@Param("customerName") String customerName, @Param("customerName") String customerName,
@Param("orderNo") String orderNo, @Param("orderNo") String orderNo,
@Param("status") String status, @Param("statusList") List<String> statusList,
@Param("startTime") Date startTime, @Param("startTime") Date startTime,
@Param("endTime") Date endTime @Param("endTime") Date endTime
); );
......
...@@ -141,8 +141,11 @@ ...@@ -141,8 +141,11 @@
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
AND h.order_no = #{orderNo} AND h.order_no = #{orderNo}
</if> </if>
<if test="status != null and status != ''"> <if test="statusList != null and statusList.size() > 0">
AND h.status = #{status} AND h.status IN
<foreach collection="statusList" item="status" open="(" separator="," close=")">
#{status}
</foreach>
</if> </if>
<if test="startTime != null"> <if test="startTime != null">
AND h.create_time >= #{startTime, jdbcType=TIMESTAMP} AND h.create_time >= #{startTime, jdbcType=TIMESTAMP}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment