package com.red.circle.other.infra.database.mongo.entity.team.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.infra.database.mongo.dto.team.TeamSalaryPaymentDetails;
import com.red.circle.other.inner.model.dto.agency.agency.TeamSalaryPaymentRemark;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 团队工资实时支付记录.
 *
 * @author pengshigang on 2023/4/13
 */
@Data
@Accessors(chain = true)
@Document("team_salary_payment")
public class TeamSalaryPayment implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * userId_dateNumber.
   */
  @Id
  private String id;

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

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 日期数.
   */
  private Integer dateNumber;

  /**
   * 当月工资发送明细记录.
   */
  private List<TeamSalaryPaymentDetails> salarySendDetails;

  /**
   * 区域下面的政策列表,<k 区域ID,val 政策管理>.
   */
  private Map<String, TeamPolicyManager> policyMap;

  /**
   * 备注.
   */
  private List<TeamSalaryPaymentRemark> remarks;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 过期时间.
   */
  private Timestamp expiredTime;

}
