From 5c37de8342a6d90f25752e41260c4500cf31291b Mon Sep 17 00:00:00 2001 From: qdxkrs Date: Mon, 28 Feb 2022 18:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B1=BB=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/WordAndExcelApplication.java | 2 +- .../java/com/xkrs/model/entity/QcInspectionDataSource.java | 3 ++- src/main/java/com/xkrs/model/entity/QcInspectionFile.java | 3 ++- src/main/java/com/xkrs/model/entity/QcInspectionItemDict.java | 3 ++- src/main/java/com/xkrs/model/entity/QcInspectionPicture.java | 3 ++- src/main/java/com/xkrs/model/entity/QcInspectionSpec.java | 3 ++- 6 files changed, 11 insertions(+), 6 deletions(-) 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 { /** * 规格编号