Commit 0ead1424a962ccf3d8a73730dc066947cd5fc424

Authored by 房远帅
1 parent 87be7d2b

草稿要车单增加计划装货时间筛选

... ... @@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
6 6 import lombok.Data;
7 7
8 8 import java.io.Serializable;
  9 +import java.time.LocalDate;
9 10
10 11 @Data
11 12 public class QueryDraftRequestCarTicketVo extends PageVo implements BaseVo, Serializable {
... ... @@ -55,4 +56,10 @@ public class QueryDraftRequestCarTicketVo extends PageVo implements BaseVo, Seri
55 56 @ApiModelProperty("搜索")
56 57 private String searchKey;
57 58
  59 + @ApiModelProperty("计划装货日期开始")
  60 + private LocalDate deliveryDateStart;
  61 +
  62 + @ApiModelProperty("计划装货日期结束")
  63 + private LocalDate deliveryDateEnd;
  64 +
58 65 }
... ...
... ... @@ -104,6 +104,14 @@
104 104 AND (tb.order_no LIKE CONCAT('%', #{vo.searchKey}, '%')
105 105 OR cu.name LIKE CONCAT('%', #{vo.searchKey}, '%'))
106 106 </if>
  107 + <if test="vo.deliveryDateStart != null">
  108 + AND tb.delivery_date >= #{vo.deliveryDateStart}
  109 + </if>
  110 + <if test="vo.deliveryDateEnd != null">
  111 + <![CDATA[
  112 + AND tb.delivery_date < DATE_ADD(#{vo.deliveryDateEnd}, INTERVAL 1 DAY)
  113 + ]]>
  114 + </if>
107 115 </where>
108 116 ORDER BY tb.create_time DESC
109 117 </select>
... ...