处理字段问题

This commit is contained in:
WenG 2020-11-18 21:31:20 +08:00
parent 6bf5ca6505
commit 966141e943

View File

@ -22,7 +22,7 @@ public class FileDTO {
@ApiModelProperty(name = "fileType", value = "文件类型") @ApiModelProperty(name = "fileType", value = "文件类型")
private String fileType; private String fileType;
@ApiModelProperty(name = "fileSize", value = "文件大小") @ApiModelProperty(name = "fileSize", value = "文件大小")
private String fileSize; private Long fileSize;
public String getFileId() { public String getFileId() {
return fileId == null ? "" : fileId.trim(); return fileId == null ? "" : fileId.trim();
@ -56,11 +56,11 @@ public class FileDTO {
this.fileType = fileType; this.fileType = fileType;
} }
public String getFileSize() { public Long getFileSize() {
return fileSize == null ? "" : fileSize.trim(); return fileSize;
} }
public void setFileSize(String fileSize) { public void setFileSize(Long fileSize) {
this.fileSize = fileSize; this.fileSize = fileSize;
} }