| | |
| | | package com.by4cloud.platformx.device.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.criteria.CriteriaBuilder; |
| | | import javax.persistence.Transient; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @Entity |
| | |
| | | @Schema(description = "承租公司") |
| | | @Column(columnDefinition="bigint comment '承租公司'") |
| | | private Long lesseeContractId; |
| | | |
| | | /** |
| | | * 台账明细 |
| | | */ |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private List<DeviceLeasingLedgerItem> ledgerItemList; |
| | | |
| | | /** |
| | | * 出租日期 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Schema(description = "出租日期") |
| | | @Column(columnDefinition="datetime comment '出租日期'") |
| | | private Date deliveryDate; |
| | | |
| | | |
| | | /** |
| | | * 合同id |
| | | */ |
| | | @Schema(description = "合同id") |
| | | @Column(columnDefinition="bigint comment '合同id'") |
| | | private Long contractId; |
| | | |
| | | /** |
| | | * 台账名称 |
| | | */ |
| | | @Schema(description = "台账名称") |
| | | @Column(columnDefinition="VARCHAR(256) comment '台账名称'") |
| | | private String ledgerName; |
| | | } |