|
@@ -2,6 +2,8 @@ package com.galaxis.manatee.webservice;
|
|
|
|
|
|
|
|
|
import com.galaxis.manatee.chuanyun_web_service.*;
|
|
|
+import com.galaxis.manatee.task.ChuanyunHumanResourceScheduledTask;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.ws.server.endpoint.annotation.Endpoint;
|
|
|
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
|
|
|
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
|
|
@@ -11,10 +13,18 @@ import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
|
|
* @author kxuan
|
|
|
* @version 1.0
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Endpoint
|
|
|
public class CountryEndpoint {
|
|
|
private static final String NAMESPACE_URI = "http://galaxis.com/manatee/chuanyun-web-service";
|
|
|
|
|
|
+ private final ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask;
|
|
|
+
|
|
|
+ public CountryEndpoint(ChuanyunHumanResourceScheduledTask chuanyunHumanResourceScheduledTask) {
|
|
|
+ this.chuanyunHumanResourceScheduledTask = chuanyunHumanResourceScheduledTask;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetSchema")
|
|
|
@ResponsePayload
|
|
|
public GetSchemaResponse getSchema(@RequestPayload GetSchema request)
|
|
@@ -48,7 +58,10 @@ public class CountryEndpoint {
|
|
|
@ResponsePayload
|
|
|
public InvokeResponse invoke(@RequestPayload Invoke request) {
|
|
|
//书写调用第三方接口方法
|
|
|
+ log.info(request.getMethodName()+"----"+request.getParam()+"----"+request.getSchemaCode());
|
|
|
InvokeResponse invokeResponse=new InvokeResponse();
|
|
|
+ chuanyunHumanResourceScheduledTask.getPayrollManually();
|
|
|
+ log.info("更新薪酬项成功");
|
|
|
invokeResponse.setResponse("{}");
|
|
|
return invokeResponse;
|
|
|
}
|