diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java index 36f1449..9d07f03 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysTrainnumController.java @@ -81,11 +81,11 @@ public class SysTrainnumController extends BaseController { { List list = tdTrainService.selectTdTrainList(tdTrain); list.forEach(tdTrain1 -> { - tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID())); - tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK())); - SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tdTrain1.getUSERNAME())); + tdTrain1.setAreaid(sysAreaManager.getAreaName(tdTrain1.getAreaid())); + tdTrain1.setFramework(sysAreaManager.getAreaName(tdTrain1.getFramework())); + SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tdTrain1.getUsername())); if(Objects.nonNull(sysUser)){ - tdTrain1.setUSERNAME(sysUser.getUserName()); + tdTrain1.setUsername(sysUser.getUserName()); } }); ExcelUtil util = new ExcelUtil(TdTrain.class); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java index c0044b4..a0af4d3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java @@ -74,8 +74,8 @@ public class TdTrainController extends BaseController { List list = tdTrainService.selectTdTrainList(tdTrain); list.forEach(tdTrain1 -> { - tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID())); - tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK())); + tdTrain1.setAreaid(sysAreaManager.getAreaName(tdTrain1.getAreaid())); + tdTrain1.setFramework(sysAreaManager.getAreaName(tdTrain1.getFramework())); }); ExcelUtil util = new ExcelUtil(TdTrain.class); return util.exportExcel(list, "涉密人员培训数据");