package cn.iocoder.yudao.module.bpm.controller.admin.business.vo;

import cn.iocoder.yudao.module.bpm.enums.BpmBusinessTypeEnum;
import cn.iocoder.yudao.module.system.api.bpm.vo.PriceChangeRecordReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/29  11:16
 * @Description:
 * @Version: 4.0
 */


@Schema(description = "管理后台 - 价格变更记录新增/修改 Request VO")
@Data
public class  PriceChangeRecordCreateReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14680")
    private Long id;

    @Schema(description = "长者id", example = "23841")
    @NotNull(message = "长者id不能为空")
    private Long elderlyId;

    @Schema(description = "变更生效日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "变更生效日期不能为空")
    private LocalDate changeDate;

    @Schema(description = "变更文件")
    private String changeFiles;

    @Schema(description = "变更原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不好")
    private String reason;

    @Schema(description = "变更项目", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "变更项目不能为空")
    List<PriceChangeRecordReqVO> priceChangeList;

    /**
     * * 关联 {@link BpmBusinessTypeEnum}
     */
    @Schema(description = "申请类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "8-转院变更")
    @NotNull(message = "申请类型不能为空")
    private Integer type;

    @Schema(description = "流程实例的编号", example = "11303")
    private String processInstanceId;

    @Schema(description = "发起人自选审批人 Map", example = "{taskKey1: [1, 2]}")
    private Map<String, List<Long>> startUserSelectAssignees;

    @Schema(description = "业务ID，申请记录id", example = "6489")
    private Long businessId;

    @Schema(description = "业务ID2", example = "6489")
    private Long businessId2;

    private Long tenantId;

    /**
     * 原始金额
     */
    private BigDecimal originalAmount;
    @Schema(description = "滞后至月份", example = "2026-01")
    private String hysteresisMonth;

}
