fix:转储单号唯一

This commit is contained in:
zhaoyf
2026-11-04 19:05:45 +08:00
parent 9a84b2080e
commit fe89039681
2 changed files with 4 additions and 34 deletions

View File

@@ -305,8 +305,9 @@ public class SapDealLLDBBillPmDeamndCallBack implements CallbackStrategy {
item.setSobkz("");
item.setUmlgo(umlgo);
String no = "TRANS" + System.currentTimeMillis();
MaterialTransferBody body = new MaterialTransferBody();
body.setBktxt(demand.getId());
body.setBktxt(no);
body.setBldat(today);
body.setBudat(today);
body.setItems(Collections.singletonList(item));
@@ -330,8 +331,9 @@ public class SapDealLLDBBillPmDeamndCallBack implements CallbackStrategy {
header.setBackup2("");
request.setHeader(header);
String no = "TRANS" + System.currentTimeMillis();
MaterialTransferBody body = new MaterialTransferBody();
body.setBktxt(StrUtil.blankToDefault(demand.getId(), param.getIostorinv_id()));
body.setBktxt(no);
body.setBldat(today);
body.setBudat(today);
body.setItems(buildTransferItems(param, demand, region, targetAttr, disSet));

View File

@@ -79,21 +79,6 @@ spring:
filters:
DruidFilter,stat # 修正:stat是监控统计,wall是SQL防火墙
log-abandoned: false
eas:
driver-class-name: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@//192.168.100.96:1521/orcl
username: ${EAS_DB_USER:EAS_NOBLE}
password: ${DB_PWD:abc123}
druid:
initial-size: 5
min-idle: 5
max-active: 20
test-while-idle: true
validation-query: SELECT 1 FROM DUAL
# 如果 eas 也需要监控,添加下面两行(可选)
filters:
stat,wall
log-abandoned: false
redis:
#数据库索引
database: ${REDIS_DB:1}
@@ -178,20 +163,3 @@ sa-token:
lucene:
index:
path: C:\lucene\index
erp:
loginUrl: http://192.168.100.100:8080/ormrpc/services/EASLogin?wsdl
busUrl: http://192.168.100.100:8080/ormrpc/services/WSNLMESFacade?wsdl
auditUrl: http://192.168.100.100:8080/ormrpc/services/WSNLWQFacade?wsdl
username: user
password: test
slnName: eas
dcName: testNL_YK
dbType: 1
#erp: # 正式
# loginUrl: http://192.168.100.9:6896/ormrpc/services/EASLogin?wsdl
# busUrl: http://192.168.100.9:6896/ormrpc/services/WSNLMESFacade?wsdl
# username: mes_eas2
# password: eas@123456
# slnName: eas
# dcName: orcl
# dbType: 1