/*
 * Author: wangjian
 * 生成entity
 */
package com.tofly.feesapi.bmgl.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;
import java.util.stream.Collectors;


/**
 * 月末结转CONFIG
 *
 * @author x
 * @date Wed Mar 18 00:00:00 CST 2026
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "BM_YMJZ_CONFIG", resultMap = "bmYmjzConfigMap")
@KeySequence("BM_YMJZ_CONFIG")
@ApiModel
public class BmYmjzConfig extends Model<BmYmjzConfig> {
    private static final long serialVersionUID = 1L;

    /**
     * 编码
     */
    @TableId(value = "CODE", type = IdType.INPUT)
    @ApiModelProperty(value = "编码")
    private String code;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")

    private String name;
    /**
     * 月份
     */
    @ApiModelProperty(value = "月份")
    private BigDecimal month;
    /**
     * 天
     */
    @ApiModelProperty(value = "天")
    private BigDecimal day;
    /**
     * 时间
     */
    @ApiModelProperty(value = "时间")
    private String time;


    /**
     * 字符串转码工具方法（ISO-8859-1 -> UTF-8）
     */
    private String convertToUtf8(String str) {
        if (str == null || str.isEmpty()) {
            return str;
        }
        try {
            return new String(str.getBytes("ISO-8859-1"), "UTF-8");
        } catch (Exception e) {
            return str;
        }
    }

}
