package org.dromara.payment.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.dromara.common.core.utils.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sunzexing
 * @version 1.0
 * @title CommonSelConditionEntity
 * @description
 * @create 2024-04-26 15:21
 * 业务通用查询条件
 */

@Data
public class CommonSelConditionEntity implements Serializable {

    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd")
    private Date startTime;

    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd")
    private Date endTime;

    //企业名称
    private String busMerName;

    //服务商名称
    private String synName;

    //用工姓名
    private String workName;

    //工人身份证
    private String workIdCard;

    //用工手机号
    private String workPhone;

    //业务类型
    private Integer busType;

    //签约状态
    private Integer signStatus;

    //完税证明上传状态
    private Integer wsZmStatus;

    private Long merId;

    private Long sydId;

    public Date getEndTime() {
        if(this.endTime != null){
            return DateUtils.addOneDay(this.endTime);
        }
        return this.endTime;
    }



}
