提交 a1dcbae6 authored 作者: 李炎's avatar 李炎

调整测试

上级 f4b35fc2
...@@ -29,6 +29,7 @@ public class KingDeeSyncController { ...@@ -29,6 +29,7 @@ public class KingDeeSyncController {
@ApiOperation("金蝶同步") @ApiOperation("金蝶同步")
@GetMapping("/kingdee/synchronization") @GetMapping("/kingdee/synchronization")
public RestResponse kingdeeSynchronization() { public RestResponse kingdeeSynchronization() {
System.out.println("金蝶同步====");
synchronizationService.kingdeeSynchronization(); synchronizationService.kingdeeSynchronization();
return RestResponse.success(); return RestResponse.success();
} }
...@@ -36,6 +37,7 @@ public class KingDeeSyncController { ...@@ -36,6 +37,7 @@ public class KingDeeSyncController {
@ApiOperation("手动同步") @ApiOperation("手动同步")
@GetMapping("/kingdee/manual/synchronization") @GetMapping("/kingdee/manual/synchronization")
public RestResponse manualSynchronization() { public RestResponse manualSynchronization() {
System.out.println("手动同步====");
synchronizationService.kingdeeManualSynchronization(); synchronizationService.kingdeeManualSynchronization();
return RestResponse.success(); return RestResponse.success();
} }
...@@ -43,6 +45,7 @@ public class KingDeeSyncController { ...@@ -43,6 +45,7 @@ public class KingDeeSyncController {
@ApiOperation("手动同步(带参数)") @ApiOperation("手动同步(带参数)")
@PostMapping("/kingdee/manual/synchronizationByParam") @PostMapping("/kingdee/manual/synchronizationByParam")
public RestResponse manualSynchronizationByParam(@RequestBody Map<String, String> docTypeMap) { public RestResponse manualSynchronizationByParam(@RequestBody Map<String, String> docTypeMap) {
System.out.println("手动同步(带参数)===="+docTypeMap);
synchronizationService.manualSynchronizationByParam(docTypeMap.get("docType")); synchronizationService.manualSynchronizationByParam(docTypeMap.get("docType"));
return RestResponse.success(); return RestResponse.success();
} }
......
...@@ -67,6 +67,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService { ...@@ -67,6 +67,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
@Override @Override
public void kingdeeManualSynchronization() { public void kingdeeManualSynchronization() {
System.out.println("kingdeeManualSynchronization=====");
threadPool.execute(() -> { threadPool.execute(() -> {
List<SynchronizationRecordsListOutVoRecords> recordsList = synchronizationRecordsMapper.synchronizationRecordsListByStatus(Stream.of(1, 2).collect(Collectors.toList())); List<SynchronizationRecordsListOutVoRecords> recordsList = synchronizationRecordsMapper.synchronizationRecordsListByStatus(Stream.of(1, 2).collect(Collectors.toList()));
...@@ -123,6 +124,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService { ...@@ -123,6 +124,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void synchronization() { public void synchronization() {
System.out.println("synchronization=====");
List<Map<String, Object>> tempList = kingDeeSynchronizationApi.synchronization(); List<Map<String, Object>> tempList = kingDeeSynchronizationApi.synchronization();
if (!CollectionUtils.isEmpty(tempList)) { if (!CollectionUtils.isEmpty(tempList)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论