package com.red.circle.other.app.dto.clientobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 政策管理.
 *
 * @author pengliang on 2022/12/26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class TeamPolicyManagerCO extends ClientObject {

  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 区域.
   */
  private String region;

  /**
   * 周/月 类型.
   */
  private String type;

  /**
   * true: 曾经对外发布过.
   */
  private Boolean historyRelease;

  /**
   * true已发布队外政策.
   */
  private Boolean release;

  /**
   * 政策状态 DRAFT/SCHEDULED/ACTIVE/HISTORY/CANCELLED.
   */
  private String policyStatus;

  /**
   * 生效月份 yyyyMM.
   */
  private Integer effectiveMonth;

  /**
   * 生效时间.
   */
  private java.sql.Timestamp effectiveStartTime;

  /**
   * 实际激活时间.
   */
  private java.sql.Timestamp activatedTime;

  /**
   * 标题.
   */
  private String title;

  /**
   * 政策.
   */
  private List<TeamPolicyCO> policy;

  /**
   * 类型 MONEY(美金政策)、SALARY_DIAMOND(工资钻石政策).
   */
  private String policyType;

}
