/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.transport.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 临时额度申请实体类
 *
 * @author Chill
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("blade_temporary_credit_limit")
@Schema(description = "临时额度申请")
public class TemporaryCreditLimit extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "申请单号")
	private String applicationNo;

	@Schema(description = "项目ID")
	private Long projectId;

	@Schema(description = "项目编号")
	private String projectCode;

	@Schema(description = "项目名称")
	private String projectName;

	@Schema(description = "承办部门ID")
	private Long undertakeDeptId;

	@Schema(description = "承办部门")
	private String undertakeDeptName;

	@Schema(description = "项目资金使用额度(万元)")
	private BigDecimal projectFundLimit;

	@Schema(description = "已使用项目资金额度(万元)")
	private BigDecimal usedFundLimit;

	@Schema(description = "剩余项目资金使用额度(万元)")
	private BigDecimal remainingFundLimit;

	@Schema(description = "申请临时额度(万元)")
	private BigDecimal applyLimit;

	@Schema(description = "申请有效期至")
	private LocalDate validUntil;

	@Schema(description = "申请部门ID")
	private Long applyDeptId;

	@Schema(description = "申请部门")
	private String applyDeptName;

	@Schema(description = "申请人ID")
	private Long applicantId;

	@Schema(description = "申请人")
	private String applicantName;

	@Schema(description = "审批状态")
	private String approvalStatus;

	@Schema(description = "当前节点")
	private String currentNode;

	@Schema(description = "当前处理人")
	private String currentProcessor;

	@Schema(description = "审核通过时间")
	private LocalDateTime approvedTime;

	@Schema(description = "附件JSON")
	private String attachmentsJson;

	@Schema(description = "备注")
	private String remark;

}
