| | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.dto.DateQueryDto; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | @Getter |
| | | @Setter |
| | | @TableName("borrow_info") |
| | | @ApiModel(value = "BorrowInfo对象", description = "借款信息表") |
| | | @Schema(name = "BorrowInfo对象", description = "借款信息表") |
| | | public class BorrowInfo extends DateQueryDto implements Serializable{ |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("借款记录主键ID") |
| | | @Schema(description = "借款记录主键ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("借款人姓名") |
| | | @Schema(description = "借款人姓名") |
| | | @Excel(name = "借款人姓名") |
| | | private String borrowerName; |
| | | |
| | | @ApiModelProperty("借款金额(元)") |
| | | @Schema(description = "借款金额(元)") |
| | | @Excel(name = "借款金额(元)") |
| | | private BigDecimal borrowAmount; |
| | | |
| | | @ApiModelProperty("借款利率(如:5.85 代表5.85%)") |
| | | @Schema(description = "借款利率(如:5.85 代表5.85%)") |
| | | @Excel(name = "借款利率") |
| | | private BigDecimal interestRate; |
| | | |
| | | @ApiModelProperty("借款日期") |
| | | @Schema(description = "借款日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "借款日期", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private LocalDate borrowDate; |
| | | |
| | | @ApiModelProperty("实际还款日期(还款后填充)") |
| | | @Schema(description = "实际还款日期(还款后填充)") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "实际还款日期", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private LocalDate repayDate; |
| | | |
| | | @ApiModelProperty("借款状态:1=待还款,2=已还款") |
| | | @Schema(description = "借款状态:1=待还款,2=已还款") |
| | | @Excel(name = "借款状态", readConverterExp = "1=待还款,2=已还款") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("备注(借款说明)") |
| | | @Schema(description = "备注(借款说明)") |
| | | @Excel(name = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @Schema(description = "创建时间") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("创建者ID") |
| | | @Schema(description = "创建者ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("修改时间") |
| | | @Schema(description = "修改时间") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("修改者ID") |
| | | @Schema(description = "修改者ID") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("租户id") |
| | | @Schema(description = "租户id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | } |