feat(human): 更新人资用户状态同步功能
parent
8442b0d976
commit
3981062463
|
|
@ -39,5 +39,7 @@ archives:
|
||||||
humanresources:
|
humanresources:
|
||||||
appKey: A5EF205479D2DFB5E621E159AA8FF34B
|
appKey: A5EF205479D2DFB5E621E159AA8FF34B
|
||||||
appSecret: 53130AAAAC791D5B7AFD6D89C51853510190C903405242C49B83DECBBA0ADA5E
|
appSecret: 53130AAAAC791D5B7AFD6D89C51853510190C903405242C49B83DECBBA0ADA5E
|
||||||
commonCorpRoleId: 2008483569812549634
|
corpTypeZeroRoleId: 2008483569812549634
|
||||||
stockCorpRoleId: 2008483240551297026
|
corpTypeOneRoleId: 2008483922813562882
|
||||||
|
corpTypeTwoRoleId: 2008483240551297026
|
||||||
|
corpTypeSixRoleId: 2008488106573082626
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,6 @@ openapi:
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
defaultPlatform: true
|
defaultPlatform: true
|
||||||
##ciphertext plaintext
|
##ciphertext plaintext
|
||||||
humanresources:
|
|
||||||
commonCorpRoleId: 2008483569812549634
|
|
||||||
stockCorpRoleId: 2008483240551297026
|
|
||||||
type: plaintext
|
type: plaintext
|
||||||
apiPlatform:
|
apiPlatform:
|
||||||
- name: default
|
- name: default
|
||||||
|
|
@ -52,3 +49,8 @@ humanresources:
|
||||||
apiCode: test:01
|
apiCode: test:01
|
||||||
#多个可以逗号隔开,可以为空
|
#多个可以逗号隔开,可以为空
|
||||||
tenantIds: 1838408702262321152
|
tenantIds: 1838408702262321152
|
||||||
|
humanresources:
|
||||||
|
corpTypeZeroRoleId: 2008483569812549634
|
||||||
|
corpTypeOneRoleId: 2008483922813562882
|
||||||
|
corpTypeTwoRoleId: 2008483240551297026
|
||||||
|
corpTypeSixRoleId: 2008488106573082626
|
||||||
|
|
|
||||||
|
|
@ -346,10 +346,23 @@ public class HumanUserSyncExe {
|
||||||
log.warn("未找到企业信息,无法按企业类型匹配角色,corpId={}", corpId);
|
log.warn("未找到企业信息,无法按企业类型匹配角色,corpId={}", corpId);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (Integer.valueOf(2).equals(corpInfo.getType())) {
|
Integer corpType = corpInfo.getType();
|
||||||
return humanResourcesConfig.getStockCorpRoleId();
|
if (corpType == null) {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return humanResourcesConfig.getCommonCorpRoleId();
|
if (Integer.valueOf(0).equals(corpType)) {
|
||||||
|
return humanResourcesConfig.getCorpTypeZeroRoleId();
|
||||||
|
}
|
||||||
|
if (Integer.valueOf(1).equals(corpType)) {
|
||||||
|
return humanResourcesConfig.getCorpTypeOneRoleId();
|
||||||
|
}
|
||||||
|
if (Integer.valueOf(2).equals(corpType)) {
|
||||||
|
return humanResourcesConfig.getCorpTypeTwoRoleId();
|
||||||
|
}
|
||||||
|
if (Integer.valueOf(6).equals(corpType)) {
|
||||||
|
return humanResourcesConfig.getCorpTypeSixRoleId();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -405,7 +418,7 @@ public class HumanUserSyncExe {
|
||||||
private Map<String, Long> getTargetCorpDeptNameIdMap(Long corpId) {
|
private Map<String, Long> getTargetCorpDeptNameIdMap(Long corpId) {
|
||||||
ZcloudDepartmentPageQry qry = new ZcloudDepartmentPageQry();
|
ZcloudDepartmentPageQry qry = new ZcloudDepartmentPageQry();
|
||||||
qry.setEqCorpInfoId(corpId);
|
qry.setEqCorpInfoId(corpId);
|
||||||
qry.setEqParentId(corpId);
|
// qry.setEqParentId(corpId);
|
||||||
qry.setPageSize(10000);
|
qry.setPageSize(10000);
|
||||||
PageResponse<ZcloudDepartmentInfoCo> zcloudDepartmentInfoCoPageResponse = zcloudDepartmentFacade.pageByParentId(qry);
|
PageResponse<ZcloudDepartmentInfoCo> zcloudDepartmentInfoCoPageResponse = zcloudDepartmentFacade.pageByParentId(qry);
|
||||||
if (zcloudDepartmentInfoCoPageResponse == null || !zcloudDepartmentInfoCoPageResponse.isSuccess() || zcloudDepartmentInfoCoPageResponse.getData() == null) {
|
if (zcloudDepartmentInfoCoPageResponse == null || !zcloudDepartmentInfoCoPageResponse.isSuccess() || zcloudDepartmentInfoCoPageResponse.getData() == null) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,11 @@ public class HumanResourcesConfig {
|
||||||
*/
|
*/
|
||||||
private String appSecret;
|
private String appSecret;
|
||||||
|
|
||||||
private Long commonCorpRoleId;
|
private Long corpTypeZeroRoleId;
|
||||||
|
|
||||||
private Long stockCorpRoleId;
|
private Long corpTypeOneRoleId;
|
||||||
|
|
||||||
|
private Long corpTypeTwoRoleId;
|
||||||
|
|
||||||
|
private Long corpTypeSixRoleId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue