|
|
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.ningdatech.pmapi.AppTests; |
|
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
|
import com.ningdatech.pmapi.common.constant.RegionConst; |
|
|
|
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask; |
|
|
|
import com.ningdatech.pmapi.ding.task.OrganizationBatchGetTask; |
|
|
|
import com.ningdatech.pmapi.organization.model.entity.DingEmployeeInfo; |
|
|
|
import com.ningdatech.pmapi.organization.model.entity.DingOrganization; |
|
|
|
import com.ningdatech.pmapi.organization.service.IDingEmployeeInfoService; |
|
|
@@ -34,6 +36,12 @@ public class EmployeeTest extends AppTests { |
|
|
|
@Autowired |
|
|
|
private IUserInfoService userInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private OrganizationBatchGetTask organizationBatchGetTask; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private EmployeeBatchGetTask employeeBatchGetTask; |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test(){ |
|
|
|
List<DingEmployeeInfo> employees = dingEmployeeInfoService.list(Wrappers.lambdaQuery(DingEmployeeInfo.class) |
|
|
@@ -72,4 +80,17 @@ public class EmployeeTest extends AppTests { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test2(){ |
|
|
|
String orgCode = "GO_4e6be07f25594df88e7bd1b7b7cdf9a8"; |
|
|
|
organizationBatchGetTask.organizationGetSubs(orgCode); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test3(){ |
|
|
|
String orgCode = "GO_1aceac0b3a664afbb31ea0d627189781"; |
|
|
|
employeeBatchGetTask.batchGetEmployeeTaskByOrdCode(orgCode); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |