Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
kingdee-adapter
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
kingdee-adapter
Commits
94c7f9be
提交
94c7f9be
authored
1月 12, 2023
作者:
inroi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://192.168.0.27:8090/inori/kingdee-adapter
上级
d9388076
6ce90c96
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
3 行删除
+10
-3
KingDeeSyncController.java
...ain/java/com/system/controller/KingDeeSyncController.java
+3
-0
KingDeeCommonSyncServiceImpl.java
...com/system/service/impl/KingDeeCommonSyncServiceImpl.java
+2
-1
SynchronizationServiceImpl.java
...a/com/system/service/impl/SynchronizationServiceImpl.java
+5
-2
没有找到文件。
src/main/java/com/system/controller/KingDeeSyncController.java
浏览文件 @
94c7f9be
...
...
@@ -29,6 +29,7 @@ public class KingDeeSyncController {
@ApiOperation
(
"金蝶同步"
)
@GetMapping
(
"/kingdee/synchronization"
)
public
RestResponse
kingdeeSynchronization
()
{
System
.
out
.
println
(
"金蝶同步===="
);
synchronizationService
.
kingdeeSynchronization
();
return
RestResponse
.
success
();
}
...
...
@@ -36,6 +37,7 @@ public class KingDeeSyncController {
@ApiOperation
(
"手动同步"
)
@GetMapping
(
"/kingdee/manual/synchronization"
)
public
RestResponse
manualSynchronization
()
{
System
.
out
.
println
(
"手动同步===="
);
synchronizationService
.
kingdeeManualSynchronization
();
return
RestResponse
.
success
();
}
...
...
@@ -43,6 +45,7 @@ public class KingDeeSyncController {
@ApiOperation
(
"手动同步(带参数)"
)
@PostMapping
(
"/kingdee/manual/synchronizationByParam"
)
public
RestResponse
manualSynchronizationByParam
(
@RequestBody
Map
<
String
,
String
>
docTypeMap
)
{
System
.
out
.
println
(
"手动同步(带参数)===="
+
docTypeMap
);
synchronizationService
.
manualSynchronizationByParam
(
docTypeMap
.
get
(
"docType"
));
return
RestResponse
.
success
();
}
...
...
src/main/java/com/system/service/impl/KingDeeCommonSyncServiceImpl.java
浏览文件 @
94c7f9be
...
...
@@ -194,8 +194,9 @@ public class KingDeeCommonSyncServiceImpl implements IKingDeeCommonSyncService {
* 同步至第三方
*/
private
void
encapsulationRequest
(
Map
<
String
,
String
>
config
,
String
queueId
,
Integer
id
,
List
<
Map
<
String
,
Object
>>
dataList
)
{
System
.
out
.
println
(
"dataList"
+
dataList
);
for
(
Map
<
String
,
Object
>
curData:
dataList
){
curData
.
put
(
"docType"
,
config
.
get
(
"docType"
));
System
.
out
.
println
(
"curData"
+
curData
);
String
response
=
kingDeeCommonSyncApi
.
sendThirdParty
(
JsonUtil
.
toString
(
curData
));
response
=
unicodeToString
(
response
);
...
...
src/main/java/com/system/service/impl/SynchronizationServiceImpl.java
浏览文件 @
94c7f9be
...
...
@@ -67,6 +67,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
@Override
public
void
kingdeeManualSynchronization
()
{
System
.
out
.
println
(
"kingdeeManualSynchronization====="
);
threadPool
.
execute
(()
->
{
List
<
SynchronizationRecordsListOutVoRecords
>
recordsList
=
synchronizationRecordsMapper
.
synchronizationRecordsListByStatus
(
Stream
.
of
(
1
,
2
).
collect
(
Collectors
.
toList
()));
...
...
@@ -123,12 +124,13 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
synchronization
()
{
System
.
out
.
println
(
"synchronization====="
);
List
<
Map
<
String
,
Object
>>
tempList
=
kingDeeSynchronizationApi
.
synchronization
();
if
(!
CollectionUtils
.
isEmpty
(
tempList
))
{
synchronizationRecordsMapper
.
synchronizationRecordsTempCreate
(
tempList
);
}
System
.
out
.
println
(
"tempList===="
+
tempList
);
List
<
String
>
objectList
=
tempList
.
stream
().
filter
(
m
->
!
"LQKJ_IMSSync"
.
equals
(
m
.
get
(
"sFormId"
))).
map
(
m
->
String
.
valueOf
(
m
.
get
(
"fid"
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
...
...
@@ -157,7 +159,8 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
if
(!
CollectionUtils
.
isEmpty
(
idList
))
{
synchronizationRecordsMapper
.
synchronizationRecordsUpdateByIdList
(
idList
);
}
System
.
out
.
println
(
"idList===="
+
idList
);
System
.
out
.
println
(
"recordsList===="
+
recordsList
);
for
(
SynchronizationRecordsListOutVoRecords
records
:
recordsList
)
{
if
(!
"LQKJ_IMSSync"
.
equals
(
records
.
getSFormId
()))
{
kingDeeCommonSyncService
.
synchronization
(
records
.
getId
(),
records
.
getSFormId
(),
records
.
getDataId
(),
records
.
getEntryId
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论