Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OZT-Integration
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许俊
OZT-Integration
Commits
58d79a91
提交
58d79a91
authored
9月 20, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
cf529a3a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
33 行增加
和
30 行删除
+33
-30
KingdeeApiClient.java
...a/org/jeecg/modules/iost/ims/client/KingdeeApiClient.java
+3
-24
application.yml
jeecg-boot-module-system/src/main/resources/application.yml
+1
-1
SecurityToolsTest.java
...ule-system/src/test/java/org/jeecg/SecurityToolsTest.java
+29
-5
没有找到文件。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/ims/client/KingdeeApiClient.java
浏览文件 @
58d79a91
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package
org
.
jeecg
.
modules
.
iost
.
ims
.
client
;
package
org
.
jeecg
.
modules
.
iost
.
ims
.
client
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.kingdee.bos.webapi.entity.IdentifyInfo
;
import
com.kingdee.bos.webapi.sdk.K3CloudApi
;
import
kingdee.bos.json.JSONObject
;
import
kingdee.bos.json.JSONObject
;
import
kingdee.bos.webapi.client.ApiHttpClient
;
import
kingdee.bos.webapi.client.ApiHttpClient
;
import
kingdee.bos.webapi.client.ApiRequest
;
import
kingdee.bos.webapi.client.ApiRequest
;
...
@@ -37,26 +30,12 @@ public class KingdeeApiClient {
...
@@ -37,26 +30,12 @@ public class KingdeeApiClient {
map2
=
new
HashMap
();
map2
=
new
HashMap
();
map2
.
put
(
"don_delete!"
,
"don_delete!"
);
map2
.
put
(
"don_delete!"
,
"don_delete!"
);
}
}
/*
ApiRequest<T> request = this.createRequest(servicename, parameters, returnType);
ApiRequest
<
T
>
request
=
this
.
createRequest
(
servicename
,
parameters
,
returnType
);
ApiHttpClient
<
T
>
httpClient
=
new
ApiHttpClient
();
ApiHttpClient
<
T
>
httpClient
=
new
ApiHttpClient
();
request.setListener(httpClient);
*/
request
.
setListener
(
httpClient
);
long
beginTime
=
System
.
currentTimeMillis
();
long
beginTime
=
System
.
currentTimeMillis
();
T
send
=
httpClient
.
Send
(
request
,
returnType
);
//测试环境
IdentifyInfo
identifyInfo
=
new
IdentifyInfo
()
{
};
identifyInfo
.
setAppId
(
"234279_W+8P58FOSIl839wH1Z4pTY/v0j2W5OrE"
);
identifyInfo
.
setAppSecret
(
"b1e10c8eba814adbb15eb4b3efc200e6"
);
identifyInfo
.
setServerUrl
(
"http://192.168.36.230/k3cloud/"
);
identifyInfo
.
setdCID
(
"62e24a3cb44ac0"
);
identifyInfo
.
setlCID
(
2052
);
identifyInfo
.
setUserName
(
"Administrator"
);
K3CloudApi
k3CloudApi
=
new
K3CloudApi
(
identifyInfo
);
T
send
=
k3CloudApi
.
execute
(
servicename
,
parameters
,
returnType
);
long
Costime
=
System
.
currentTimeMillis
()
-
beginTime
;
long
Costime
=
System
.
currentTimeMillis
()
-
beginTime
;
System
.
out
.
println
(
"--------->"
+
Costime
);
if
(!
ObjectUtils
.
isEmpty
(
map2
))
{
if
(!
ObjectUtils
.
isEmpty
(
map2
))
{
map2
.
put
(
"Costime"
,
Costime
);
map2
.
put
(
"Costime"
,
Costime
);
ThreadLocalConfig
.
set
(
map2
);
ThreadLocalConfig
.
set
(
map2
);
...
...
jeecg-boot-module-system/src/main/resources/application.yml
浏览文件 @
58d79a91
spring
:
spring
:
profiles
:
profiles
:
active
:
docker
active
:
test
swagger
:
swagger
:
production
:
false
production
:
false
basic
:
basic
:
...
...
jeecg-boot-module-system/src/test/java/org/jeecg/SecurityToolsTest.java
浏览文件 @
58d79a91
package
org
.
jeecg
;
package
org
.
jeecg
;
import
com.kingdee.bos.webapi.entity.IdentifyInfo
;
import
com.kingdee.bos.webapi.entity.RepoResult
;
import
com.kingdee.bos.webapi.sdk.K3CloudApi
;
import
kingdee.bos.webapi.client.K3CloudApiClient
;
import
kingdee.bos.webapi.client.K3CloudApiClient
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
net.sf.json.JSONObject
;
import
net.sf.json.JSONObject
;
...
@@ -58,6 +61,32 @@ public class SecurityToolsTest {
...
@@ -58,6 +61,32 @@ public class SecurityToolsTest {
@Autowired
@Autowired
CategoryDao
categoryDao
;
CategoryDao
categoryDao
;
@Test
public
void
test
()
throws
Exception
{
//生产
/*IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("232955_0ddBwZuI2mG+2eVOSf0sQcUISgx+2BlG");
identifyInfo.setAppSecret("175e9a5ed3b04f97a5c37aa01ce747d3");
identifyInfo.setServerUrl("http://192.168.2.26/k3cloud/");
identifyInfo.setdCID("6221b5ff539caa");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/
//测试
IdentifyInfo
identifyInfo
=
new
IdentifyInfo
()
{
};
identifyInfo
.
setAppId
(
"232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo"
);
identifyInfo
.
setAppSecret
(
"7e4a4779a554403eb2189bf3841552e3"
);
identifyInfo
.
setServerUrl
(
"http://10.10.1.212/k3cloud/"
);
identifyInfo
.
setdCID
(
"62fa11f8d7448e"
);
identifyInfo
.
setlCID
(
2052
);
identifyInfo
.
setUserName
(
"Administrator"
);
K3CloudApi
k3CloudApi
=
new
K3CloudApi
(
identifyInfo
);
RepoResult
repoResult
=
k3CloudApi
.
CheckAuthInfo
();
System
.
out
.
println
(
repoResult
.
getResponseStatus
().
isIsSuccess
());
}
/*/D:/gitCode/OZT-Integration/jeecg-boot-module-system/target/test-classes/*/
/*/D:/gitCode/OZT-Integration/jeecg-boot-module-system/target/test-classes/*/
@Test
@Test
public
void
testUpdate
()
{
public
void
testUpdate
()
{
...
@@ -131,10 +160,5 @@ public class SecurityToolsTest {
...
@@ -131,10 +160,5 @@ public class SecurityToolsTest {
}
}
}
}
@Test
public
void
test01
()
{
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论