package com.ruoyi.oa.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 日记账（绑定封账批次，未封账数据batch_id为NULL）视图对象 oa_journal_account
 *
 * @author Joshi
 * @date 2025-09-09
 */
@Data
@ExcelIgnoreUnannotated
public class OaJournalAccountVo {

    private static final long serialVersionUID = 1L;

    /**
     * 日记账记录ID（主键）
     */
    @ExcelProperty(value = "日记账记录ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "主=键")
    private Long journalId;

    /**
     * 账户ID（关联账户表）
     */
    @ExcelProperty(value = "账户ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "关=联账户表")
    private Long accountId;

    /**
     * 记账日期
     */
    @ExcelProperty(value = "记账日期")
    private Date recordDate;

    /**
     * 对方科目
     */
    @ExcelProperty(value = "对方科目")
    private String oppositeSubject;

    /**
     * 业务摘要
     */
    @ExcelProperty(value = "业务摘要")
    private String summary;

    /**
     * 收入金额（元）
     */
    @ExcelProperty(value = "收入金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "元=")
    private BigDecimal incomeAmount;

    /**
     * 支出金额（元）
     */
    @ExcelProperty(value = "支出金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "元=")
    private BigDecimal expendAmount;

    /**
     * 账户余额（元）
     */
    @ExcelProperty(value = "账户余额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "元=")
    private BigDecimal balance;

    /**
     * 封账批次ID（关联accounting_batch表，NULL表示未封账）
     */
    @ExcelProperty(value = "封账批次ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "关=联accounting_batch表，NULL表示未封账")
    private Long batchId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
