|
|
@ -61,7 +61,7 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
|
|
|
|
|
|
|
|
// 2编辑 1查看
|
|
|
|
// 2编辑 1查看
|
|
|
|
OrganizationAssert.notNull(groupId, "请选择对应的拓展页");
|
|
|
|
OrganizationAssert.notNull(groupId, "请选择对应的拓展页");
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, groupId, tableName, ExtendInfoOperateType.EDIT.getValue(), "");
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, groupId, tableName, ExtendInfoOperateType.EDIT.getValue(), "1");
|
|
|
|
String fields = infoPOList.stream().map(ExtendInfoPO::getFieldName).collect(Collectors.joining(","));
|
|
|
|
String fields = infoPOList.stream().map(ExtendInfoPO::getFieldName).collect(Collectors.joining(","));
|
|
|
|
if (StringUtils.isEmpty(fields)) {
|
|
|
|
if (StringUtils.isEmpty(fields)) {
|
|
|
|
return conditionItems;
|
|
|
|
return conditionItems;
|
|
|
@ -96,7 +96,7 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
|
|
|
|
|
|
|
|
// 2编辑 1查看
|
|
|
|
// 2编辑 1查看
|
|
|
|
OrganizationAssert.notNull(groupId, "请选择对应的拓展页");
|
|
|
|
OrganizationAssert.notNull(groupId, "请选择对应的拓展页");
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, groupId, tableName, ExtendInfoOperateType.ADD.getValue(), "");
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, groupId, tableName, ExtendInfoOperateType.ADD.getValue(), "1");
|
|
|
|
// 组装拓展页内容
|
|
|
|
// 组装拓展页内容
|
|
|
|
List<String> readOnlyFieldList = Arrays.asList(readOnlyFields);
|
|
|
|
List<String> readOnlyFieldList = Arrays.asList(readOnlyFields);
|
|
|
|
for (ExtendInfoPO extendInfoPO : infoPOList) {
|
|
|
|
for (ExtendInfoPO extendInfoPO : infoPOList) {
|
|
|
@ -133,7 +133,7 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
// 查询明细表
|
|
|
|
// 查询明细表
|
|
|
|
List<ExtendGroupPO> extendGroupList = getExtendGroupMapper().listGroupByPid(groupId);
|
|
|
|
List<ExtendGroupPO> extendGroupList = getExtendGroupMapper().listGroupByPid(groupId);
|
|
|
|
for (ExtendGroupPO extendGroup : extendGroupList) {
|
|
|
|
for (ExtendGroupPO extendGroup : extendGroupList) {
|
|
|
|
infoPOList.addAll(getExtendInfoMapper().listFields(extendType, extendGroup.getId() + "", tableName, "", ""));
|
|
|
|
infoPOList.addAll(getExtendInfoMapper().listFields(extendType, extendGroup.getId() + "", tableName, "", "1"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 查询所有分布模块,拓展明细表信息
|
|
|
|
// 查询所有分布模块,拓展明细表信息
|
|
|
|
Map<Long, List<ExtendInfoPO>> groupMap = infoPOList.stream().collect(Collectors.groupingBy(ExtendInfoPO::getExtendGroupId));
|
|
|
|
Map<Long, List<ExtendInfoPO>> groupMap = infoPOList.stream().collect(Collectors.groupingBy(ExtendInfoPO::getExtendGroupId));
|
|
|
@ -171,10 +171,11 @@ public class ExtServiceImpl extends Service implements ExtService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<TopTab> getTabInfo(String extendType, String tableName) {
|
|
|
|
public List<TopTab> getTabInfo(String extendType, String tableName) {
|
|
|
|
List<TopTab> topTabs = new ArrayList<>();
|
|
|
|
List<TopTab> topTabs = new ArrayList<>();
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, "", tableName, ExtendInfoOperateType.EDIT.getValue(), "");
|
|
|
|
List<ExtendInfoPO> infoPOList = getExtendInfoMapper().listFields(extendType, "", tableName, ExtendInfoOperateType.EDIT.getValue(), "1");
|
|
|
|
List<ExtendInfoPO> infoPOList1 = getExtendInfoMapper().listFields(extendType, "", tableName.toLowerCase().replace("ext", ""), ExtendInfoOperateType.EDIT.getValue(), "");
|
|
|
|
List<ExtendInfoPO> infoPOList1 = getExtendInfoMapper().listFields(extendType, "", tableName.toLowerCase().replace("ext", ""), ExtendInfoOperateType.EDIT.getValue(), "1");
|
|
|
|
infoPOList.addAll(infoPOList1);
|
|
|
|
infoPOList.addAll(infoPOList1);
|
|
|
|
List<Long> ids = infoPOList.stream().map(ExtendInfoPO::getExtendGroupId).collect(Collectors.toList());
|
|
|
|
List<Long> ids = infoPOList.stream().map(ExtendInfoPO::getExtendGroupId).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
List<ExtendTitlePO> extendTitles = getExtendTitleMapper().getTitlesByIds(ids);
|
|
|
|
List<ExtendTitlePO> extendTitles = getExtendTitleMapper().getTitlesByIds(ids);
|
|
|
|
Set<Long> groupIds = extendTitles.stream().map(ExtendTitlePO::getGroupId).collect(Collectors.toSet());
|
|
|
|
Set<Long> groupIds = extendTitles.stream().map(ExtendTitlePO::getGroupId).collect(Collectors.toSet());
|
|
|
|
List<ExtendGroupPO> extendGroupList = getExtendGroupMapper().listByType(Integer.parseInt(extendType));
|
|
|
|
List<ExtendGroupPO> extendGroupList = getExtendGroupMapper().listByType(Integer.parseInt(extendType));
|
|
|
|