Commit 77f7571b authored by gaoyingwei's avatar gaoyingwei

修改 隔离点导入模板

parent ea2fab46
...@@ -115,8 +115,13 @@ public class GldryController extends BaseController ...@@ -115,8 +115,13 @@ public class GldryController extends BaseController
// 设置 隔离点名称 下拉框 // 设置 隔离点名称 下拉框
// List<SysDictData> isolation_point = sysDictDataMapper.selectDictDataByType("isolation_point"); // List<SysDictData> isolation_point = sysDictDataMapper.selectDictDataByType("isolation_point");
String glPlace = loginUser.getNickName(); // String glPlace = loginUser.getNickName();
String[] glPlaces={glPlace}; String value = DataUtils.getKey(null,null,null,null,String.valueOf(SecurityUtils.getUserId()));
List<SysDictData> fcPlace = DictUtils.getDictCache("isolation");
List<String> labels = fcPlace.stream().filter(l->value.equals(l.getDictValue()))
.map(SysDictData::getDictLabel).collect(Collectors.toList());
String[] glPlaces = labels.toArray(new String[]{});
// String[] glPlaces={glPlace};
ExcelUtil.setClassExcelAttribute(clazz,"glPlace","combo",glPlaces); ExcelUtil.setClassExcelAttribute(clazz,"glPlace","combo",glPlaces);
......
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 to comment