fix: 1.oracle切换至pgsql之后 解决qc谱入库失败问题

This commit is contained in:
xiaoguangbin 2025-01-13 13:47:05 +08:00
parent 168aff2454
commit d74dca784c
6 changed files with 16 additions and 14 deletions

View File

@ -70,16 +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 ("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);

View File

@ -10,6 +10,7 @@ import java.util.Date;
@Data
@TableName("ORIGINAL.GARDS_ALERT_DATA")
@KeySequence("original.gards_alert_data_seq")
public class GardsAlertData implements Serializable {
@TableField(value = "STATION_ID")

View File

@ -11,6 +11,7 @@ import java.util.Date;
@Data
@TableName(value = "ORIGINAL.GARDS_DOS_DATA")
@KeySequence("original.gards_dos_data_seq")
public class GardsDOSData implements Serializable {
/**

View File

@ -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")

View File

@ -11,6 +11,7 @@ import java.util.Date;
@Data
@TableName(value = "ORIGINAL.GARDS_MET_DATA")
@KeySequence("original.gards_met_data_seq")
public class GardsMetData implements Serializable {
/**

View File

@ -10,6 +10,7 @@ import java.util.Date;
@Data
@TableName(value = "ORIGINAL.GARDS_SOH_DATA")
@KeySequence("original.gards_soh_data_seq")
public class GardsSohData implements Serializable {
/**