Commit a046e0f3537c40557c8ff27688a309e21245afc6

Authored by 房远帅
1 parent 23f5f6ac

订货单:增加操作时间筛选

1 1 package com.lframework.xingyun.sc.bo.order;
2 2
  3 +import com.baomidou.mybatisplus.annotation.FieldFill;
3 4 import com.baomidou.mybatisplus.annotation.TableField;
4 5 import com.fasterxml.jackson.annotation.JsonFormat;
5 6 import com.lframework.starter.common.constants.StringPool;
... ... @@ -7,6 +8,7 @@ import com.lframework.starter.web.core.bo.BaseBo;
7 8
8 9 import java.math.BigDecimal;
9 10 import java.time.LocalDate;
  11 +import java.time.LocalDateTime;
10 12 import java.util.List;
11 13
12 14 import com.lframework.xingyun.sc.entity.PurchaseOrderInfo;
... ... @@ -350,6 +352,12 @@ public class GetPurchaseOrderInfoBo extends BaseBo<PurchaseOrderInfo> {
350 352 @ApiModelProperty("是否展示上传按钮")
351 353 private boolean showUpload = false;
352 354
  355 + /**
  356 + * 创建时间
  357 + */
  358 + @ApiModelProperty("创建时间")
  359 + private LocalDateTime createTime;
  360 +
353 361
354 362 public GetPurchaseOrderInfoBo() {
355 363
... ...
... ... @@ -168,4 +168,11 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ
168 168 */
169 169 @ApiModelProperty("导出类型")
170 170 private String templateType;
  171 +
  172 + /**
  173 + * 操作时间
  174 + */
  175 + @ApiModelProperty("操作时间")
  176 + private String createTimeStart;
  177 + private String createTimeEnd;
171 178 }
... ...
... ... @@ -204,6 +204,14 @@
204 204 #{id}
205 205 </foreach>
206 206 </if>
  207 + <if test="vo.createTimeStart != null">
  208 + AND tb.create_time >= #{vo.createTimeStart}
  209 + </if>
  210 + <if test="vo.createTimeEnd != null">
  211 + <![CDATA[
  212 + AND tb.create_time <= #{vo.createTimeEnd}
  213 + ]]>
  214 + </if>
207 215 </where>
208 216 ORDER BY tb.create_time DESC
209 217 </select>
... ...