feat:瀚高适配

hangao
wangxy 5 months ago
parent c0bf15dfd7
commit e6376dfd91

@ -81,11 +81,11 @@ public class SysTrainnumController extends BaseController {
{ {
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain); List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
list.forEach(tdTrain1 -> { list.forEach(tdTrain1 -> {
tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID())); tdTrain1.setAreaid(sysAreaManager.getAreaName(tdTrain1.getAreaid()));
tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK())); tdTrain1.setFramework(sysAreaManager.getAreaName(tdTrain1.getFramework()));
SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tdTrain1.getUSERNAME())); SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tdTrain1.getUsername()));
if(Objects.nonNull(sysUser)){ if(Objects.nonNull(sysUser)){
tdTrain1.setUSERNAME(sysUser.getUserName()); tdTrain1.setUsername(sysUser.getUserName());
} }
}); });
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class); ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);

@ -74,8 +74,8 @@ public class TdTrainController extends BaseController
{ {
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain); List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
list.forEach(tdTrain1 -> { list.forEach(tdTrain1 -> {
tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID())); tdTrain1.setAreaid(sysAreaManager.getAreaName(tdTrain1.getAreaid()));
tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK())); tdTrain1.setFramework(sysAreaManager.getAreaName(tdTrain1.getFramework()));
}); });
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class); ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);
return util.exportExcel(list, "涉密人员培训数据"); return util.exportExcel(list, "涉密人员培训数据");

Loading…
Cancel
Save