From abfd819e5a7d466e507df8e023e7a445fa06140e Mon Sep 17 00:00:00 2001
From: XinYi Song <2037158277@qq.com>
Date: Fri, 25 Feb 2022 08:40:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=B4=A2=E5=BC=95=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 4 +--
src/main/java/com/xkrs/dao/DataSourceDao.java | 4 +--
.../com/xkrs/model/entity/DataSource.java | 25 +++++++++++++++----
.../java/com/xkrs/model/qo/DataSourceQo.java | 15 ++++++++++-
.../service/impl/DataSourceServiceImpl.java | 2 ++
5 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/pom.xml b/pom.xml
index c248a8a..2458a4b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,9 +9,9 @@
com.xkrs
- industrial_measurement
+ WordAndExcel
0.0.1-SNAPSHOT
- industrial_measurement
+ WordAndExcel
Demo project for Spring Boot
diff --git a/src/main/java/com/xkrs/dao/DataSourceDao.java b/src/main/java/com/xkrs/dao/DataSourceDao.java
index 1d41ab5..eeec162 100644
--- a/src/main/java/com/xkrs/dao/DataSourceDao.java
+++ b/src/main/java/com/xkrs/dao/DataSourceDao.java
@@ -25,7 +25,7 @@ public interface DataSourceDao extends JpaRepository, JpaSpecif
* @return
*/
@Query(value = "select ds.data_model_number datamodelnumber, ds.data_batch_number databatchnumber, " +
- "ds.data_machine_code datamachinecode, ds.product_number productnumber, dd.dict_chinese_name chinesename, " +
+ "ds.data_machine_code datamachinecode, ds.product_number productnumber, ds.material material, dd.dict_chinese_name chinesename, " +
"ds.data_name dataname,ds.numerical_value numericalvalue " +
"from data_dict dd,data_source ds where ds.data_name = dd.dict_english_name and " +
"ds.data_model_number = :dataModelNumber and ds.data_batch_number = :dataBatchNumber and " +
@@ -57,7 +57,7 @@ public interface DataSourceDao extends JpaRepository, JpaSpecif
* @return
*/
@Query(value = "select ds.data_model_number datamodelnumber, ds.data_batch_number databatchnumber, " +
- "ds.data_machine_code datamachinecode, ds.product_number productnumber, dd.dict_chinese_name chinesename," +
+ "ds.data_machine_code datamachinecode, ds.product_number productnumber, ds.material material, dd.dict_chinese_name chinesename," +
"ds.data_name dataname,ds.numerical_value numericalvalue from data_dict dd,data_source ds " +
"where ds.data_name = dd.dict_english_name",nativeQuery = true)
List