diff --git a/src/com/engine/organization/entity/hrmresource/vo/HrmResourceVO.java b/src/com/engine/organization/entity/hrmresource/vo/HrmResourceVO.java
index 251659cf..77f70c1e 100644
--- a/src/com/engine/organization/entity/hrmresource/vo/HrmResourceVO.java
+++ b/src/com/engine/organization/entity/hrmresource/vo/HrmResourceVO.java
@@ -30,8 +30,7 @@ import lombok.NoArgsConstructor;
sortway = " asc",
primarykey = "id",
operates = {
- @OrganizationTableOperate(index = "0", text = "查看"),
- @OrganizationTableOperate(index = "1", text = "编辑")
+ @OrganizationTableOperate(text = "查看")
},
tableType = WeaTableType.CHECKBOX
)
diff --git a/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.java b/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.java
index e04c4ab2..219439ec 100644
--- a/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.java
+++ b/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.java
@@ -17,6 +17,9 @@ public interface HrmResourceMapper {
*/
Long getMaxId();
+ Long getMaxShowOrder();
+
+
/**
* 根据ID查询姓名
*
diff --git a/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.xml b/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.xml
index b7eb8550..c459937f 100644
--- a/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.xml
+++ b/src/com/engine/organization/mapper/hrmresource/HrmResourceMapper.xml
@@ -50,6 +50,10 @@
inner join hrmresource b on a.uuid = b.uuid
where b.id = #{ecResourceId}
+
diff --git a/src/com/engine/organization/service/impl/HrmPersonnelCardServiceImpl.java b/src/com/engine/organization/service/impl/HrmPersonnelCardServiceImpl.java
index e9ef05bc..8809d07e 100644
--- a/src/com/engine/organization/service/impl/HrmPersonnelCardServiceImpl.java
+++ b/src/com/engine/organization/service/impl/HrmPersonnelCardServiceImpl.java
@@ -20,10 +20,13 @@ import com.engine.organization.util.db.MapperProxyFactory;
import com.engine.organization.util.field.FieldDefinedValueUtil;
import com.engine.portal.biz.constants.ModuleConstants;
import com.engine.portal.biz.nonstandardfunction.SysModuleInfoBiz;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.lang3.StringUtils;
import weaver.blog.BlogShareManager;
import weaver.cowork.CoworkShareManager;
import weaver.crm.CrmShareBase;
import weaver.docs.search.DocSearchComInfo;
+import weaver.general.BaseBean;
import weaver.general.Util;
import weaver.workflow.search.WorkflowRequestUtil;
@@ -86,18 +89,21 @@ public class HrmPersonnelCardServiceImpl extends Service implements HrmPersonnel
List formItemList = new ArrayList<>();
for (ExtendGroupPO groupPO : extendGroupList) {
FormItem formItem = getFormItem(groupPO, uId);
+ if (CollectionUtils.isEmpty(formItem.getItems())) {
+ continue;
+ }
formItemList.add(formItem);
}
// 所有锚点
List anchorList = new ArrayList<>();
// 添加字段分组信息
- for (ExtendGroupPO extendGroupPO : extendGroupList) {
- anchorList.add(Anchor.builder().id("group_" + extendGroupPO.getId()).title(extendGroupPO.getGroupName()).build());
+ for (FormItem formItem : formItemList) {
+ anchorList.add(Anchor.builder().id(formItem.getId()).title(formItem.getTitle()).build());
}
// 添加拓展页面信息
List resourceBaseTabList = getPersonnelCardMapper().getResourceBaseTabList();
for (ResourceBaseTab resourceBaseTab : resourceBaseTabList) {
- anchorList.add(Anchor.builder().id("tab_" + resourceBaseTab.getId()).title(resourceBaseTab.getGroupName()).build());
+ anchorList.add(Anchor.builder().id("tab" + resourceBaseTab.getId()).title(resourceBaseTab.getGroupName()).build());
}
resultMap.put("user", userInfo);
@@ -113,7 +119,7 @@ public class HrmPersonnelCardServiceImpl extends Service implements HrmPersonnel
List