test(lets): 更新测试用例和配置

- 修改 ConsignmachiningInTest 中的测试用例代码
- 更新 application-letstest.yml 中的配置信息
- 调整 OverallConstant 中的 URL 和 API 地址
This commit is contained in:
liuy 2025-01-06 17:56:19 +08:00
parent 3533460e6f
commit 6820ab964b
3 changed files with 84 additions and 8 deletions

View File

@ -113,11 +113,11 @@ public class OverallConstant {
//中台地址
prodOverAll.put("u8c_url", "http://127.0.0.1:8081/kangarooDataCenterV3/entranceController/externalCallInterface");
// prodOverAll.put("u8c_url", "http://39.170.109.90:8081/kangarooDataCenterV3/entranceController/externalCallInterface");
}
private static void loadProd() {
prodOverAll.put("u8cApiUrl", "http://192.168.10.118:8088");//正式U8C
//正式U8C
prodOverAll.put("u8cApiUrl", "http://192.168.10.118:8088");
//主键
prodOverAll.put("u8cApiUsercodePK", "admin");
@ -151,11 +151,6 @@ public class OverallConstant {
//中台地址
prodOverAll.put("u8c_url", "http://127.0.0.1:8081/kangarooDataCenterV3/entranceController/externalCallInterface");
//测试
// prodOverAll.put("u8c_url", "http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface");
// prodOverAll.put("u8c_url", "http://ufidahz.com.cn:9067/kangarooDataCenterV3/entranceController/externalCallInterface");
// prodOverAll.put("u8c_url", "http://39.170.109.90:8081/kangarooDataCenterV3/entranceController/externalCallInterface");
}
/**

View File

@ -0,0 +1,81 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: D:\server_test\ztlog
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://192.168.14.252:3306/businesscenter_test?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=600000000&socketTimeout=600000000&autoReconnectForPools=true&keepAlive=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:\server_test\ztfile
pluginpath: xxx
tomcatpath: D:\server_test\apache-tomcat-9.0.91
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
letsofs:
url: http://39.98.168.188:30002/api/edi/u8c/ofs/in
appKey: 2097046829
secret: 35282f251476a3af4f00c7b36
#report
report:
templatesurl: D:\server_test\tempFile\TOCTOB正向流程导出模版.xlsx
tempFile: D:\server_test\tempFile
#钉钉
DING:
U8C_TEST_AGENTID: 3281181231
CorpId: dingc5b16c82b7f25e64acaaa37764f94726
APIToken: c5530fb4faed387593ee17f4e6bb748d
#钉钉回调
call_back_token: lets123456789lets
call_back_aes_key: MDlmYTY2ODUzMTliNDhmZjg3ZTViNzc3MzYyZWI4MWM
call_back_appkey: ding5qfifcktfqfjlem0
#Client ID (原 AppKey 和 SuiteKey)
APPKEY: ding5qfifcktfqfjlem0
#Client Secret (原 AppSecret 和 SuiteSecret)
AppSecret: BVuLOy_K0F8f5np69VuBeKdb1zfwqhuPsAV49lNbYVbx5TnfSTHjwEcad9Vwzfq1
#钉盘审批空间
SPACEID: 20852670637
#审批模板code
APPROVE_CODE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: PROC-AC33FC85-FB44-49FC-B926-1D966AE3BBD2
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: PROC-EC6B5BD2-DE3C-456E-9591-6F7B377E39E4
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: PROC-285CCF2B-524F-4055-BE62-FC31F490C654
#审批表单空间
APPROVE_FOLDER_SPACE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: 157791788097
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: 157828688115
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: 157828627012

View File

@ -27,7 +27,7 @@ public class ConsignmachiningInTest {
@Test
public void startImplement() {
// String code = "LETS-RE2024082300000007";
String code = "LETS-RE2024103000000089";
String code = "LETS-RE2024120400000857";
consignmachiningIn.startImplement(code);
// consignmachiningIn.startImplement("2024-09-24 13:49:15", "2024-09-24 13:49:17");