物料请求新加字段

parent 2dfa8789
......@@ -126,4 +126,9 @@ public class OrderMaterialRequirement {
*/
@TableField(exist = false)
public double Quantity;
public String version;
}
......@@ -891,9 +891,14 @@ public class ChromosomeDataService {
// 转换为OffsetDateTime以包含时区信息
OffsetDateTime offsetDateTime = dateTime.atOffset(ZoneOffset.UTC);
formattedData.put(field.getName(), offsetDateTime);
} else {
// 对于String类型字段,如果值为null,设置为空字符串
if (value == null && field.getType() == String.class) {
formattedData.put(field.getName(), "");
} else {
formattedData.put(field.getName(), value);
}
}
} catch (Exception e) {
// 忽略字段访问错误
}
......
......@@ -10,8 +10,8 @@ spring:
pathmatch:
matching-strategy: ant_path_matcher # Spring Boot 2.6+ 需要这个配置
redis:
host: 39.100.88.40
port: 6379
host: 192.168.0.181
port: 6380
timeout: 120000
database: 10
password: redis@228!
......@@ -55,7 +55,7 @@ spring:
# Oracle数据源
oracle:
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用户名
password: root_mes123456 # 替换为你的Oracle密码
# 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