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

调整测试

上级 f4b35fc2
......@@ -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();
}
......
......@@ -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,6 +124,7 @@ 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)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论