package com.hzs.common.domain.report.stat;

import com.baomidou.mybatisplus.annotation.*;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.util.List;

/**
 * <p>
 * 联创报表统计
 * </p>
 *
 * @author zhangjing
 * @since 2023-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("CU_LIANCHUANG_DATA_STAT")
@KeySequence("CU_LIANCHUANG_DATA_STAT_SEQ")
public class CuLianchuangDataStat extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 体系编号
     */
    @TableField("VERTEX_CODE")
    private String vertexCode;

    /**
     * 体系名称
     */
    @TableField("VERTEX_NAME")
    private String vertexName;

    /**
     * 加区
     */
    @TableField(value = "ADD_REGION", jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String addRegion;

    /**
     * 减区
     */
    @TableField(value = "REDUCE_REGION", jdbcType = JdbcType.VARCHAR,updateStrategy = FieldStrategy.IGNORED)
    private String reduceRegion;


    /**
     * 报表类型  1 数据报表 2 国内数据报表 来源 ESheetType
     */
    @TableField("TYPE")
    private Integer type;
    /**
     * 系统类型（2=新零售，3=美业） 来源 ESystemType
     */
    @TableField("SYSTEM_TYPE")
    private Integer systemType;



    /**
     * 订单时间
     */
    @TableField(exist = false)
    private String payTime;
    /**
     * 加区
     */
    @TableField(exist = false)
    private List<Integer> addRegionList;

    /**
     * 减区
     */
    @TableField(exist = false)
    private List<Integer> reduceRegionList;

    @TableField(exist = false)
    private String startDate;
    @TableField(exist = false)
    private String endDate;


}
