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

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

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

@Data
public class AccWalletOperationQueryParam extends BaseEntity {
   @ApiModelProperty("查询组织id集合")
   private List<Long> deptIds;
   @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 payState;
   private String searchValue;
   private String createBy;
   private Long userId;
   private Integer walletId;

   public AccWalletOperationQueryParam() {
      this.endDateTime = LocalDateTime.now().plusDays(7);
      this.startDateTime = LocalDateTime.now().minusDays(7);
   }
}
