|
@@ -1,5 +1,7 @@
|
|
|
package com.izouma.nineth.domain;
|
|
package com.izouma.nineth.domain;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.izouma.nineth.annotations.Searchable;
|
|
import com.izouma.nineth.annotations.Searchable;
|
|
|
import com.izouma.nineth.converter.FileObjectConverter;
|
|
import com.izouma.nineth.converter.FileObjectConverter;
|
|
|
import com.izouma.nineth.enums.CollectionStatus;
|
|
import com.izouma.nineth.enums.CollectionStatus;
|
|
@@ -17,26 +19,34 @@ import java.math.BigDecimal;
|
|
|
@Entity
|
|
@Entity
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
|
|
+@ExcelIgnoreUnannotated
|
|
|
public class PhotoAsset extends BaseEntity {
|
|
public class PhotoAsset extends BaseEntity {
|
|
|
@ApiModelProperty("用户id")
|
|
@ApiModelProperty("用户id")
|
|
|
|
|
+ @ExcelProperty("用户id")
|
|
|
private Long userId;
|
|
private Long userId;
|
|
|
@ApiModelProperty("销毁藏品id")
|
|
@ApiModelProperty("销毁藏品id")
|
|
|
|
|
+ @ExcelProperty("销毁藏品id")
|
|
|
private Long destroyAssetId;
|
|
private Long destroyAssetId;
|
|
|
@ApiModelProperty("销毁藏品名称")
|
|
@ApiModelProperty("销毁藏品名称")
|
|
|
|
|
+ @ExcelProperty("销毁藏品名称")
|
|
|
private String destroyAssetName;
|
|
private String destroyAssetName;
|
|
|
@ApiModelProperty("销毁藏品编号")
|
|
@ApiModelProperty("销毁藏品编号")
|
|
|
|
|
+ @ExcelProperty("销毁藏品编号")
|
|
|
private String destroyAssetNumber;
|
|
private String destroyAssetNumber;
|
|
|
@ApiModelProperty("销毁藏品图片")
|
|
@ApiModelProperty("销毁藏品图片")
|
|
|
@Column(columnDefinition = "TEXT")
|
|
@Column(columnDefinition = "TEXT")
|
|
|
@Convert(converter = FileObjectConverter.class)
|
|
@Convert(converter = FileObjectConverter.class)
|
|
|
private FileObject destroyAssetPicture;
|
|
private FileObject destroyAssetPicture;
|
|
|
@ApiModelProperty("用户名")
|
|
@ApiModelProperty("用户名")
|
|
|
|
|
+ @ExcelProperty("用户名")
|
|
|
private String userName;
|
|
private String userName;
|
|
|
@ApiModelProperty("用户头像")
|
|
@ApiModelProperty("用户头像")
|
|
|
private String userAvatar;
|
|
private String userAvatar;
|
|
|
@ApiModelProperty("图片名称")
|
|
@ApiModelProperty("图片名称")
|
|
|
|
|
+ @ExcelProperty("图片名称")
|
|
|
private String picName;
|
|
private String picName;
|
|
|
@ApiModelProperty("图片描述")
|
|
@ApiModelProperty("图片描述")
|
|
|
|
|
+ @ExcelProperty("图片描述")
|
|
|
@Column(columnDefinition = "TEXT")
|
|
@Column(columnDefinition = "TEXT")
|
|
|
private String picDesc;
|
|
private String picDesc;
|
|
|
@ApiModelProperty("图片")
|
|
@ApiModelProperty("图片")
|
|
@@ -49,13 +59,16 @@ public class PhotoAsset extends BaseEntity {
|
|
|
|
|
|
|
|
private String auditResult;
|
|
private String auditResult;
|
|
|
|
|
|
|
|
|
|
+ @ExcelProperty("创建藏品id")
|
|
|
private Long createAssetId;
|
|
private Long createAssetId;
|
|
|
|
|
|
|
|
|
|
+ @ExcelProperty("拥有者id")
|
|
|
private Long ownerId;
|
|
private Long ownerId;
|
|
|
|
|
|
|
|
private boolean gifted;
|
|
private boolean gifted;
|
|
|
|
|
|
|
|
@ApiModelProperty("交易ID")
|
|
@ApiModelProperty("交易ID")
|
|
|
|
|
+ @ExcelProperty("交易id")
|
|
|
@Searchable
|
|
@Searchable
|
|
|
@Column(length = 90)
|
|
@Column(length = 90)
|
|
|
private String transactionId;
|
|
private String transactionId;
|
|
@@ -68,5 +81,6 @@ public class PhotoAsset extends BaseEntity {
|
|
|
|
|
|
|
|
private boolean destroyed;
|
|
private boolean destroyed;
|
|
|
|
|
|
|
|
|
|
+ @ExcelProperty("价格")
|
|
|
private BigDecimal price;
|
|
private BigDecimal price;
|
|
|
}
|
|
}
|