diff --git a/src/main/java/com/xkrs/WordAndExcelApplication.java b/src/main/java/com/xkrs/WordAndExcelApplication.java index d774945..faf59b4 100644 --- a/src/main/java/com/xkrs/WordAndExcelApplication.java +++ b/src/main/java/com/xkrs/WordAndExcelApplication.java @@ -6,7 +6,7 @@ import org.springframework.context.annotation.ComponentScan; @SpringBootApplication //@ComponentScan(basePackages = {"com.xkrs.model.entity", "com.xkrs.controller", "com.xkrs.service"}) -@ComponentScan("com.xkrs.model.entity") +//@ComponentScan("com.xkrs.model.entity") public class WordAndExcelApplication { public static void main(String[] args) { diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionDataSource.java b/src/main/java/com/xkrs/model/entity/QcInspectionDataSource.java index 0eff5f7..d019d23 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionDataSource.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionDataSource.java @@ -1,13 +1,14 @@ package com.xkrs.model.entity; import javax.persistence.*; +import java.io.Serializable; /** * 质检采集数据表 */ @Entity @Table(name = "qc_inspection_data_source") -public class QcInspectionDataSource { +public class QcInspectionDataSource implements Serializable { /** * 采集数据编号 diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionFile.java b/src/main/java/com/xkrs/model/entity/QcInspectionFile.java index b57b327..f77f53a 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionFile.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionFile.java @@ -1,10 +1,11 @@ package com.xkrs.model.entity; import javax.persistence.*; +import java.io.Serializable; @Entity @Table(name = "file") -public class QcInspectionFile { +public class QcInspectionFile implements Serializable { /** * 编号 diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionItemDict.java b/src/main/java/com/xkrs/model/entity/QcInspectionItemDict.java index 1fb5ee4..fb84601 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionItemDict.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionItemDict.java @@ -1,6 +1,7 @@ package com.xkrs.model.entity; import javax.persistence.*; +import java.io.Serializable; /** * @Author: XinYi Song @@ -16,7 +17,7 @@ import javax.persistence.*; */ @Entity @Table(name = "qc_inspection_item_dict") -public class QcInspectionItemDict { +public class QcInspectionItemDict implements Serializable { /** * 索引 diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionPicture.java b/src/main/java/com/xkrs/model/entity/QcInspectionPicture.java index d907846..9110b99 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionPicture.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionPicture.java @@ -1,13 +1,14 @@ package com.xkrs.model.entity; import javax.persistence.*; +import java.io.Serializable; /** * 质检图片表 */ @Entity @Table(name = "qc_inspection_picture") -public class QcInspectionPicture { +public class QcInspectionPicture implements Serializable { /** * 编号 diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionSpec.java b/src/main/java/com/xkrs/model/entity/QcInspectionSpec.java index aad43ab..0ba95de 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionSpec.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionSpec.java @@ -1,13 +1,14 @@ package com.xkrs.model.entity; import javax.persistence.*; +import java.io.Serializable; /** * 检验规格实体类 */ @Entity @Table(name = "qc_inspection_spec") -public class QcInspectionSpec { +public class QcInspectionSpec implements Serializable { /** * 规格编号