物料请求新加字段

parent 2dfa8789
...@@ -126,4 +126,9 @@ public class OrderMaterialRequirement { ...@@ -126,4 +126,9 @@ public class OrderMaterialRequirement {
*/ */
@TableField(exist = false) @TableField(exist = false)
public double Quantity; public double Quantity;
public String version;
} }
...@@ -891,9 +891,14 @@ public class ChromosomeDataService { ...@@ -891,9 +891,14 @@ public class ChromosomeDataService {
// 转换为OffsetDateTime以包含时区信息 // 转换为OffsetDateTime以包含时区信息
OffsetDateTime offsetDateTime = dateTime.atOffset(ZoneOffset.UTC); OffsetDateTime offsetDateTime = dateTime.atOffset(ZoneOffset.UTC);
formattedData.put(field.getName(), offsetDateTime); formattedData.put(field.getName(), offsetDateTime);
} else {
// 对于String类型字段,如果值为null,设置为空字符串
if (value == null && field.getType() == String.class) {
formattedData.put(field.getName(), "");
} else { } else {
formattedData.put(field.getName(), value); formattedData.put(field.getName(), value);
} }
}
} catch (Exception e) { } catch (Exception e) {
// 忽略字段访问错误 // 忽略字段访问错误
} }
......
...@@ -10,8 +10,8 @@ spring: ...@@ -10,8 +10,8 @@ spring:
pathmatch: pathmatch:
matching-strategy: ant_path_matcher # Spring Boot 2.6+ 需要这个配置 matching-strategy: ant_path_matcher # Spring Boot 2.6+ 需要这个配置
redis: redis:
host: 39.100.88.40 host: 192.168.0.181
port: 6379 port: 6380
timeout: 120000 timeout: 120000
database: 10 database: 10
password: redis@228! password: redis@228!
...@@ -55,7 +55,7 @@ spring: ...@@ -55,7 +55,7 @@ spring:
# Oracle数据源 # Oracle数据源
oracle: oracle:
driver-class-name: oracle.jdbc.OracleDriver driver-class-name: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@//39.100.78.207:7002/ORCLPDB1 # ORCL为你的Oracle实例名 url: jdbc:oracle:thin:@//192.168.0.181:1522/ORCLPDB1 # ORCL为你的Oracle实例名
username: mes # 替换为你的Oracle用户名 username: mes # 替换为你的Oracle用户名
password: root_mes123456 # 替换为你的Oracle密码 password: root_mes123456 # 替换为你的Oracle密码
# sqlserver: # sqlserver:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment