|
|
|
@ -2,6 +2,7 @@ package com.engine.organization.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.service.HrmCommonService;
|
|
|
|
|
import com.engine.common.service.impl.HrmCommonServiceImpl;
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
|
import com.engine.organization.entity.extend.ExtendInfoOperateType;
|
|
|
|
|
import com.engine.organization.entity.extend.bo.ExtendGroupBO;
|
|
|
|
@ -106,7 +107,12 @@ public class HrmPersonnelCardServiceImpl extends Service implements HrmPersonnel
|
|
|
|
|
if (CollectionUtils.isEmpty(formItem.getItems())) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
// 处理明细表数据
|
|
|
|
|
List<Map<String, Object>> detailList = ServiceUtil.getService(ExtServiceImpl.class, user).getExtendTables(user, "4", groupPO.getId(), "JCL_ORG_HRMRESOURCEEXT_DT1", uId, 1, false);
|
|
|
|
|
formItem.setTables(detailList);
|
|
|
|
|
|
|
|
|
|
formItemList.add(formItem);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 所有锚点
|
|
|
|
|
List<Anchor> anchorList = new ArrayList<>();
|
|
|
|
@ -228,18 +234,15 @@ public class HrmPersonnelCardServiceImpl extends Service implements HrmPersonnel
|
|
|
|
|
// 人员信息有误,返回false
|
|
|
|
|
OrganizationAssert.notBlank(userId, "未获取到对应人员");
|
|
|
|
|
|
|
|
|
|
// 系统管理员、查看本人卡片直接返回true
|
|
|
|
|
if (user.isAdmin() || userId.equals(String.valueOf(user.getUID()))) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean hasAccess = false;
|
|
|
|
|
CardAccessPO cardAccessPO = MapperProxyFactory.getProxy(CardAccessMapper.class).selectById(typeId);
|
|
|
|
|
if (null == cardAccessPO) {
|
|
|
|
|
if (null == cardAccessPO || 0 == cardAccessPO.getStatus()) {
|
|
|
|
|
// 未配置相应数据、或者未启用返回false
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// 所有人,返回true
|
|
|
|
|
if (1 == cardAccessPO.getAllPeople()) {
|
|
|
|
|
|
|
|
|
|
// 系统管理员、查看本人卡片,或者所有人有权限直接返回true
|
|
|
|
|
if (user.isAdmin() || userId.equals(String.valueOf(user.getUID())) || 1 == cardAccessPO.getAllPeople()) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|