package com.zt.plat.module.base.controller.admin.base.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 税码信息分页 Request VO")
@Data
public class TaxPageReqVO extends PageParam {

    @Schema(description = "类型(字典: SPLY_BSN_TP)", example = "2")
    private String type;

    @Schema(description = "类别")
    private String category;

    @Schema(description = "税码")
    private String taxCoding;

    @Schema(description = "税码描述")
    private String remark;

    @Schema(description = "税率")
    private BigDecimal tax;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "是否启用")
    private String isEnable;

    @Schema(description = "公司编码")
    private String customerNumber;

    @Schema(description = "公司名称", example = "王五")
    private String customerName;

}