新增根据表名获得e-builder信息接口
parent
219bb2d960
commit
4f727a94d2
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
|
||||
|
||||
<dubbo:service ref="UpdateGlzzygidAction_jcl" interface="com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface" group="UpdateGlzzygidAction_jcl" />
|
||||
<dubbo:service ref="updateEmployeeAgeGlSlInfo_jcl" interface="com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface" group="updateEmployeeAgeGlSlInfo_jcl" />
|
||||
|
||||
</beans>
|
@ -0,0 +1,31 @@
|
||||
package com.weaver.seconddev.jcl.organization.esb;
|
||||
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.jcl.organization.service.EmployeeInformationService;
|
||||
import com.weaver.teams.domain.user.SimpleEmployee;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 初始化员工信息和人力资源基本信息以及个人信息自定义字段的同步
|
||||
*/
|
||||
@Service("synchronousFieldByEmployee_jcl")
|
||||
public class SynchronousFieldByEmployee implements EsbServerlessRpcRemoteInterface {
|
||||
|
||||
@Autowired
|
||||
EmployeeInformationService employeeInformationService;
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
List<String> errorList = employeeInformationService.synchronousFieldByEmployee(new SimpleEmployee());
|
||||
|
||||
if (errorList.size() > 0){
|
||||
return WeaResult.fail(errorList.toString(),true);
|
||||
}else {
|
||||
return WeaResult.success();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue