Commit 73fc2f86 by 杨伟程

老人导出修改bug

parent a6e3e7f8
......@@ -60,7 +60,9 @@ public class ConfigConverter implements Converter<String> {
String s = Arrays.stream(cellData.getStringValue().split(dictEnumFormat.split())).filter(StringUtils::isNotBlank).map(m::get).filter(StringUtils::isNotBlank).collect(Collectors.joining(","));
if (StringUtils.isBlank(s)) {
s = "";
//s = "";
s = cellData.getStringValue();
}
return s;
......@@ -89,7 +91,10 @@ public class ConfigConverter implements Converter<String> {
String s = Arrays.stream(value.split(",")).filter(StringUtils::isNotBlank).map(m::get).filter(StringUtils::isNotBlank).collect(Collectors.joining(dictEnumFormat.split().substring(dictEnumFormat.split().length() - 1)));
if (StringUtils.isBlank(s)) {
s = "";
//s = "";
s = value;
}
return new WriteCellData(s);
......
......@@ -258,6 +258,12 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
List<TreeDTOVO> treeList = BeanDtoVoUtils.listVo(spaceList, TreeDTOVO.class);
treeList.forEach(e->{
if(StringUtils.isBlank(e.getParentId())){
e.setParentId(TreeConst.TOP_LEVEL);
}
});
List<PlatRoom> roomList = platRoomService.list(new QueryWrapper<PlatRoom>().lambda()
.in(PlatRoom::getName, spaceNameList));
......@@ -325,7 +331,7 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
if (c != 0) {
int lastNotBlankIndex = -1;
for (int j = 0; j < 4; j++) {
for (int j = 0; j < 3; j++) {
if (StringUtils.isNotBlank(spaceName.get(j))) {
lastNotBlankIndex = j;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment