package com.bonus.canteen.core.account.domain.param;

import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class AccConsumeDetailQueryParam extends BaseEntity {
   @ApiModelProperty("查询组织id集合")
   private List<Long> deptIdList;
   @ApiModelProperty("开始时间")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private LocalDateTime startDateTime;
   @ApiModelProperty("结束时间")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private LocalDateTime endDateTime;
   @ApiModelProperty("交易类型")
   private Integer tradeType;
   private Integer walletType;
   private Integer userType;
   private String searchValue;
   public AccConsumeDetailQueryParam() {
      this.endDateTime = LocalDateTime.now().plusDays(7);
      this.startDateTime = LocalDateTime.now().minusDays(7);
   }
}
