浏览代码

1.webservice测试

WoNiu 4 年之前
父节点
当前提交
cf7d205591
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/main/java/com/galaxis/manatee/webservice/CountryEndpoint.java

+ 13 - 0
src/main/java/com/galaxis/manatee/webservice/CountryEndpoint.java

@@ -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;
 	}