|
@@ -65,19 +65,22 @@ public class CountryEndpoint {
|
|
|
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "Invoke")
|
|
|
@ResponsePayload
|
|
|
public InvokeResponse invoke(@RequestPayload Invoke request) throws JsonProcessingException {
|
|
|
+ var objectMapper=new ObjectMapper();
|
|
|
+ InvokeResponse invokeResponse=new InvokeResponse();
|
|
|
//书写调用第三方接口方法
|
|
|
log.info("开始数据同步");
|
|
|
if (request.getMethodName().equals("projectApproval")){
|
|
|
+ log.info("同步项目组成员");
|
|
|
chuanyunBasicDataScheduledTask.getGroupProjectManually();
|
|
|
+ }else {
|
|
|
+
|
|
|
+ chuanyunHumanResourceScheduledTask.getPayrollManually();
|
|
|
+ chuanyunBasicDataScheduledTask.getUserCompanyManually();
|
|
|
+ chuanyunBasicDataScheduledTask.getCompanyManually();
|
|
|
+ chuanyunBasicDataScheduledTask.getCostCollectionManually();
|
|
|
+ chuanyunBasicDataScheduledTask.getReimbursementItemsManually();
|
|
|
+ chuanyunBasicDataScheduledTask.getGroupProjectForSynchronizationManually();
|
|
|
}
|
|
|
- var objectMapper=new ObjectMapper();
|
|
|
- InvokeResponse invokeResponse=new InvokeResponse();
|
|
|
- chuanyunHumanResourceScheduledTask.getPayrollManually();
|
|
|
- chuanyunBasicDataScheduledTask.getUserCompanyManually();
|
|
|
- chuanyunBasicDataScheduledTask.getCompanyManually();
|
|
|
- chuanyunBasicDataScheduledTask.getCostCollectionManually();
|
|
|
- chuanyunBasicDataScheduledTask.getReimbursementItemsManually();
|
|
|
- chuanyunBasicDataScheduledTask.getGroupProjectForSynchronizationManually();
|
|
|
log.info("数据同步成功");
|
|
|
ChuanyunWebServiceDTO chuanyunWebServiceDTO = new ChuanyunWebServiceDTO();
|
|
|
chuanyunWebServiceDTO.setMessage("数据同步完成");
|