diff --git a/cloud-common-plugin/src/main/resources/mybatis/mapper/file/file-mapper.xml b/cloud-common-plugin/src/main/resources/mybatis/mapper/file/file-mapper.xml index 02d21f1..25df904 100644 --- a/cloud-common-plugin/src/main/resources/mybatis/mapper/file/file-mapper.xml +++ b/cloud-common-plugin/src/main/resources/mybatis/mapper/file/file-mapper.xml @@ -2,6 +2,8 @@ + + @@ -50,7 +52,7 @@ - + INSERT INTO sys_file( file_id, file_name, @@ -83,7 +85,7 @@ - + UPDATE sys_file SET @@ -98,7 +100,7 @@ - + DELETE FROM sys_file WHERE @@ -109,7 +111,7 @@ - + UPDATE sys_file SET @@ -127,7 +129,7 @@ - SELECT file_id, file_name, @@ -151,7 +153,7 @@ - SELECT file_id, file_name, @@ -200,7 +202,7 @@ - SELECT file_id, file_name, @@ -241,7 +243,7 @@ - SELECT file_id, file_name, @@ -270,7 +272,7 @@ - SELECT file_id, file_name, diff --git a/cloud-common/src/main/java/com/cm/common/pojo/dtos/FileDTO.java b/cloud-common/src/main/java/com/cm/common/pojo/dtos/FileDTO.java index 10c7859..9b8f6b2 100644 --- a/cloud-common/src/main/java/com/cm/common/pojo/dtos/FileDTO.java +++ b/cloud-common/src/main/java/com/cm/common/pojo/dtos/FileDTO.java @@ -3,6 +3,8 @@ package com.cm.common.pojo.dtos; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; + /** * @ClassName: FileDTO * @Description: 文件 @@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty; * @Version: 1.0 **/ @ApiModel -public class FileDTO { +public class FileDTO implements Serializable { + private static final long serialVersionUID = 3765953896919360869L; @ApiModelProperty(name = "fileId", value = "文件ID") private String fileId; @ApiModelProperty(name = "fileName", value = "文件名称") diff --git a/cloud-common/src/main/java/com/cm/common/pojo/pos/FilePO.java b/cloud-common/src/main/java/com/cm/common/pojo/pos/FilePO.java index 12c8d67..cf68167 100644 --- a/cloud-common/src/main/java/com/cm/common/pojo/pos/FilePO.java +++ b/cloud-common/src/main/java/com/cm/common/pojo/pos/FilePO.java @@ -1,5 +1,7 @@ package com.cm.common.pojo.pos; +import java.io.Serializable; + /** * @ClassName: FilePO * @Description: 文件 @@ -7,8 +9,9 @@ package com.cm.common.pojo.pos; * @Date: 2019/1/4 11:57 AM * @Version: 1.0 **/ -public class FilePO { +public class FilePO implements Serializable { + private static final long serialVersionUID = -118382389804178231L; private String fileId; private String fileName; private String filePath;