diff --git a/jeecg-boot-base-core/pom.xml b/jeecg-boot-base-core/pom.xml
index 1e5181eb..81364887 100644
--- a/jeecg-boot-base-core/pom.xml
+++ b/jeecg-boot-base-core/pom.xml
@@ -124,13 +124,6 @@
${mysql-connector-java.version}
runtime
-
-
- com.microsoft.sqlserver
- sqljdbc4
- ${sqljdbc4.version}
- runtime
-
com.oracle
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java
index 90cca20b..67f143f1 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java
@@ -70,6 +70,16 @@ public class MybatisInterceptor implements Interceptor {
field.setAccessible(false);
}
}
+ if ("moddate".equalsIgnoreCase(field.getName())) {
+ field.setAccessible(true);
+ Object localCreateDate = field.get(parameter);
+ field.setAccessible(false);
+ if (localCreateDate == null || "".equals(localCreateDate)) {
+ field.setAccessible(true);
+ field.set(parameter, new Date());
+ field.setAccessible(false);
+ }
+ }
//注入部门编码
if ("sysOrgCode".equals(field.getName())) {
field.setAccessible(true);
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsDetectors.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsDetectors.java
index 62326202..49935de5 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsDetectors.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsDetectors.java
@@ -6,8 +6,14 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
+import org.jeecg.config.valid.InsertGroup;
+import org.jeecg.config.valid.UpdateGroup;
import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import java.io.Serializable;
+import java.time.LocalDateTime;
import java.util.Date;
@Data
@@ -17,7 +23,7 @@ public class GardsDetectors implements Serializable {
/**
* 探测器id
*/
- @TableId(type = IdType.INPUT)
+ @TableId(value="detector_id",type = IdType.INPUT)
private Integer detectorId;
/**
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsStations.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsStations.java
index a0d89fcd..f3b708fc 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsStations.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/configuration/GardsStations.java
@@ -1,5 +1,6 @@
package org.jeecg.modules.base.entity.configuration;
+import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@@ -21,7 +22,7 @@ public class GardsStations implements Serializable {
/**
* 台站id
*/
- @TableId("STATION_ID")
+ @TableId(value = "station_id",type = IdType.INPUT)
@NotNull(message = "不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Integer stationId;
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsAlertData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsAlertData.java
index 6e9f2ac7..ad1bd455 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsAlertData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsAlertData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -22,7 +19,7 @@ public class GardsAlertData implements Serializable {
@TableField(value = "STATION_CODE")
private String stationCode;
- @TableId(type = IdType.AUTO)
+ @TableId(value="alert_id",type = IdType.AUTO)
private Integer alertId;
@TableField(value = "TIME")
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsDOSData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsDOSData.java
index fe9fa21b..7a980361 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsDOSData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsDOSData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -32,7 +29,7 @@ public class GardsDOSData implements Serializable {
/**
* 报警ID号
*/
- @TableId(value = "DOS_ID",type = IdType.AUTO)
+ @TableId(value="dos_id",type = IdType.AUTO)
@Excel(name = "SID",orderNum = "5")
private Integer dosId;
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsGPSData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsGPSData.java
index 1dc30618..093cc23e 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsGPSData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsGPSData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -13,6 +10,7 @@ import java.util.Date;
@Data
@TableName("ORIGINAL.GARDS_GPS_DATA")
+@KeySequence("original.gards_gps_data_seq")
public class GardsGPSData implements Serializable {
@TableField(value = "STATION_ID")
@@ -21,7 +19,7 @@ public class GardsGPSData implements Serializable {
@TableField(value = "STATION_CODE")
private String stationCode;
- @TableId(type = IdType.AUTO)
+ @TableId(value="gps_id",type = IdType.AUTO)
private Integer gpsId;
@TableField(value = "LON")
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsMetData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsMetData.java
index 7b43eb29..52208b68 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsMetData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsMetData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -31,7 +28,7 @@ public class GardsMetData implements Serializable {
/**
* 气象数据id
*/
- @TableId(type = IdType.AUTO)
+ @TableId(value="met_id",type = IdType.AUTO)
private Integer metId;
/**
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSampleData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSampleData.java
index 3fcf91b7..90dbc332 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSampleData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSampleData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -27,7 +24,7 @@ public class GardsSampleData implements Serializable {
* 样品id
*/
- @TableId(type = IdType.AUTO)
+ @TableId(value = "sample_id",type = IdType.AUTO)
private Integer sampleId;
/**
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSohData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSohData.java
index 5ea7f678..fc806c93 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSohData.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/original/GardsSohData.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.original;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -31,7 +28,7 @@ public class GardsSohData implements Serializable {
/**
* 报警ID号
*/
- @TableId(type = IdType.AUTO)
+ @TableId(value = "soh_id",type = IdType.AUTO)
@Excel(name = "SID",orderNum = "5")
private Integer sohId;
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalyses.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalyses.java
index c2e3b102..454c387d 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalyses.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalyses.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.base.entity.rnauto;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -21,7 +18,7 @@ public class GardsAnalyses implements Serializable {
/**
* 分析ID号
*/
- @TableId(value = "idanalysis",type = IdType.AUTO)
+ @TableId(value="idanalysis",type = IdType.AUTO)
private Integer idAnalysis;
/**
* 样品id
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalysisRoi.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalysisRoi.java
index 5d79fee4..33f060fb 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalysisRoi.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsAnalysisRoi.java
@@ -14,6 +14,7 @@ public class GardsAnalysisRoi {
private Integer sampleId;
+ @TableId(value="roi_id",type = IdType.INPUT)
private Integer roiId;
private Integer roiNum;
diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnman/GardsAnalyses.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnman/GardsAnalyses.java
index 9fef1880..4108d3b2 100644
--- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnman/GardsAnalyses.java
+++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnman/GardsAnalyses.java
@@ -22,7 +22,7 @@ public class GardsAnalyses implements Serializable {
/**
* 分析ID号
*/
- @TableId(value = "idanalysis",type = IdType.AUTO)
+ @TableId(value = "idanalysis",type= IdType.AUTO)
private Integer idAnalysis;
/**
* 样品id
diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml
index 4923887a..4a2923d4 100644
--- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml
+++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml
@@ -31,6 +31,32 @@
#{calibration.moddate})
+
+ insert into RNAUTO.GARDS_CALIBRATION(
+ SAMPLE_ID,
+ IDANALYSIS,
+ SAMPLE_TYPE,
+ CALTYPE,
+ FUNCTION,
+ FUNCTIONDEF,
+ STARTOFRANGE,
+ ENDOFRANGE,
+ COEFF_STRING,
+ moddate)
+ values
+
+ (#{calibration.sampleId},
+ #{calibration.idAnalysis},
+ #{calibration.sampleType},
+ #{calibration.calType},
+ #{calibration.function},
+ #{calibration.functionDef},
+ #{calibration.startOfRange},
+ #{calibration.endOfRange},
+ #{calibration.coeffString},
+ #{calibration.moddate})
+
+
\ No newline at end of file
diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/StatReportMapper.xml b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/StatReportMapper.xml
index db1b942c..ec3e8ea6 100644
--- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/StatReportMapper.xml
+++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/StatReportMapper.xml
@@ -19,7 +19,9 @@
substr(t.site_det_code,1,5) as station_name,
t.data_type,
1 as original_data_number,
- nvl2((select t.sample_id from rnauto.GARDS_ANALYSES ga where ga.sample_id = t.sample_id),1,0) as anlyse_data_number
+ -- oracle 转 postgresql
+ -- nvl2((select t.sample_id from rnauto.GARDS_ANALYSES ga where ga.sample_id = t.sample_id),1,0) as anlyse_data_number
+ (select CASE WHEN t.sample_id is not null THEN 1 ELSE 0 END from rnauto.GARDS_ANALYSES ga where ga.sample_id = t.sample_id ) as anlyse_data_number
from original.GARDS_SAMPLE_DATA t
where t.moddate between #{beginDate} and #{endDate}
) r
diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml
index 2d9957b7..bc41f947 100644
--- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml
+++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml
@@ -521,7 +521,7 @@
- UPDATE ORIGINAL.GARDS_SAMPLE_DATA A SET A.STATUS='R' WHERE INPUT_FILE_NAME=#{filePathName}
+ UPDATE ORIGINAL.GARDS_SAMPLE_DATA SET STATUS='R' WHERE INPUT_FILE_NAME=#{filePathName}