package com.dk.mdm.model.response.mac; import cn.afterturn.easypoi.excel.annotation.Excel; import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.dk.common.infrastructure.annotaiton.ExportTitle; import com.dk.common.infrastructure.handler.JsonTypeHandler; import com.dk.common.infrastructure.handler.TimestampTypeHandler; import com.dk.common.infrastructure.handler.UuidTypeHandler; import com.dk.common.model.pojo.PageInfo; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; /** * 资金转账 */ @Data @AllArgsConstructor @NoArgsConstructor @EqualsAndHashCode(callSuper = true) @Accessors(chain = true) @ExportTitle("资金转账") @TableName(value = "t_mac_transfer", autoResultMap = true) @ApiModel(value="实体类:资金转账", description="表名:t_mac_transfer") public class MacTransferResponse extends PageInfo implements Serializable { /* * 数据库字段 */ /** * 转账单ID */ // @TableId(value = "trf_id", type = IdType.AUTO) @ApiModelProperty(value = "转账单ID") @TableField(typeHandler = UuidTypeHandler.class) private String trfId; /** * 转账单号 */ @Excel(name = "转账单号") @ApiModelProperty(value = "转账单号") private String trfNo; /** * 转账类型 (0:期初 1:业务) */ @Excel(name = "转账类型 (0:期初 1:业务)") @ApiModelProperty(value = "转账类型 (0:期初 1:业务)") private Integer trfType; /** * 部门 */ @Excel(name = "部门") @ApiModelProperty(value = "部门") @TableField(typeHandler = UuidTypeHandler.class) private String orgId; /** * 员工 */ @Excel(name = "员工") @ApiModelProperty(value = "员工") @TableField(typeHandler = UuidTypeHandler.class) private String staffId; /** * 转入账户 */ @Excel(name = "转入账户") @ApiModelProperty(value = "转入账户") @TableField(typeHandler = UuidTypeHandler.class) private String trfInMac; /** * 转出账户 */ @Excel(name = "转出账户") @ApiModelProperty(value = "转出账户") @TableField(typeHandler = UuidTypeHandler.class) private String trfOutMac; /** * 转账金额 */ @Excel(name = "转账金额") @ApiModelProperty(value = "转账金额") private BigDecimal amtTrf; /** * 转账日期 (账务日期) */ @Excel(name = "转账日期 (账务日期)") @ApiModelProperty(value = "转账日期 (账务日期)") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @TableField(typeHandler = TimestampTypeHandler.class) private LocalDate accDate; /** * 备注 */ @Excel(name = "备注") @ApiModelProperty(value = "备注") private String remarks; /** * 附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...) */ @Excel(name = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @ApiModelProperty(value = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @TableField(typeHandler = JsonTypeHandler.class) private JSONArray annexPaths; /** * 制单员 */ @Excel(name = "制单员") @ApiModelProperty(value = "制单员") @TableField(typeHandler = UuidTypeHandler.class) private String makeStaff; /** * 制单时间 */ @Excel(name = "制单时间") @ApiModelProperty(value = "制单时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @TableField(typeHandler = TimestampTypeHandler.class) private LocalDateTime makeTime; /** * 有效标识 (1:正常 0:停用) */ @Excel(name = "有效标识 (1:正常 0:停用)") @ApiModelProperty(value = "有效标识 (1:正常 0:停用)") private Boolean flgValid; /** * 企业ID */ @TableField(fill = FieldFill.INSERT) @Excel(name = "企业ID") @ApiModelProperty(value = "企业ID") private Integer cpId; @ApiModelProperty(value = "转入账户") private String trfInMacName; @ApiModelProperty(value = "转出账户") private String trfOutMacName; @ApiModelProperty(value = "组织名称") private String orgName; @ApiModelProperty(value = "员工姓名") private String staffName; @ApiModelProperty(value = "制单员") private String makeStaffName; private static final long serialVersionUID = 1L; }