package com.red.circle.console.app.dto.clienobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.agency.agency.TeamPolicyManagerDTO;
import com.red.circle.other.inner.model.dto.agency.agency.TeamSalaryPaymentRemark;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
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;

/**
 * 团队自动发送工资凭证.
 *
 * @author pengshigang on 2023/4/18
 */
@Data
@Accessors(chain = true)
public class TeamSalaryCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

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

  /**
   * 用户信息.
   */
  private UserProfileDTO userProfile;

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

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

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

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

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

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


}
