数据字典查询接口 多加一个根据key查询

This commit is contained in:
yuezhihang
2022-03-07 17:05:11 +08:00
parent bf5908d27a
commit 43ef09221d
8 changed files with 61 additions and 4 deletions
@@ -52,8 +52,9 @@ public class exportWkExcel {
ExportParams exportParams = new ExportParams();
exportParams.setType(ExcelType.HSSF);
exportParams.setSheetName(exportName);
Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCode();
List<String> types=new ArrayList<>();
types.add("BUSSSTANDCLASS");
Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCodeByType(types);
workbook = ExcelExportUtilByWk.getHSSFWorkbook(exportParams, exportExcel.class,workbook,"1",dicTypeEO);
os = response.getOutputStream();
workbook.write(os);
@@ -44,9 +44,12 @@ public class IExportServiceImpl implements IExportService {
// //获取数据字典数据
// Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCode();
//获取机构数据
List<TsInstitution> tsInstitutions=tsInstitutionService.list();
QueryWrapper<TsInstitution> wrapper=new QueryWrapper<>();
wrapper.select("id","name");
List<TsInstitution> tsInstitutions=tsInstitutionService.list(wrapper);
//获取人员数据
QueryWrapper<TsUser> tsUserQueryWrapper=new QueryWrapper<>();
tsUserQueryWrapper.select("ACCOUNT","UNAME");
tsUserQueryWrapper.eq("VALID_FLAG","0");
List<TsUser> tsUsers=tsUserService.list(tsUserQueryWrapper);
@@ -58,7 +61,7 @@ public class IExportServiceImpl implements IExportService {
//获取user工具集合
Map<String,String> tsUserMap=new HashMap<>();
tsUsers.forEach(tsUser -> {
tsUserMap.put(tsUser.getUserId(),tsUser.getUname());
tsUserMap.put(tsUser.getAccount(),tsUser.getUname());
});
List<importExcelDTO> res= ExcelImportUtilByWk.readExcelpublic(importExcelDTO.class,file);
DateFormat formater = new SimpleDateFormat("yyyy-MM-dd");