Commit 8666fb86 authored by chew's avatar chew

调整状态查询

parent 02d8bcd7
......@@ -35,7 +35,7 @@ public interface OutboundOrderHeaderMapper extends BaseMapper<OutboundOrderHeade
List<OrderWithPendingVo> selectOrderWithPending(
@Param("customerName") String customerName,
@Param("orderNo") String orderNo,
@Param("status") String status,
@Param("statusList") List<String> statusList,
@Param("startTime") Date startTime,
@Param("endTime") Date endTime
);
......
......@@ -141,8 +141,11 @@
<if test="orderNo != null and orderNo != ''">
AND h.order_no = #{orderNo}
</if>
<if test="status != null and status != ''">
AND h.status = #{status}
<if test="statusList != null and statusList.size() > 0">
AND h.status IN
<foreach collection="statusList" item="status" open="(" separator="," close=")">
#{status}
</foreach>
</if>
<if test="startTime != null">
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