feat:导出问题bug修改

kingbase
wangxy 9 months ago
parent 57bc7cec14
commit e3d6ee3672

@ -91,6 +91,7 @@ public class TdTrainController extends BaseController
{ {
tdTrain.setCreateStaffid(getLoginName()); tdTrain.setCreateStaffid(getLoginName());
tdTrain.setCreateDate(new Date()); tdTrain.setCreateDate(new Date());
tdTrain.setCreateDepartid(String.valueOf(getSysUser().getDeptId()));
return toAjax(tdTrainService.insertTdTrain(tdTrain)); return toAjax(tdTrainService.insertTdTrain(tdTrain));
} }
@ -118,6 +119,7 @@ public class TdTrainController extends BaseController
{ {
tdTrain.setUpdateStaffid(getLoginName()); tdTrain.setUpdateStaffid(getLoginName());
tdTrain.setUpdateDate(new Date()); tdTrain.setUpdateDate(new Date());
tdTrain.setUpdateDepartid(String.valueOf(getSysUser().getDeptId()));
return toAjax(tdTrainService.updateTdTrain(tdTrain)); return toAjax(tdTrainService.updateTdTrain(tdTrain));
} }

@ -29,11 +29,11 @@ public class TdTrain extends BaseEntity
private String deptName; private String deptName;
/** 培训类型 */ /** 培训类型 */
@Excel(name = "培训类型") @Excel(name = "培训类型",readConverterExp = "0=资料学习,1=视频学习,2=音频学习")
private String trainType; private String trainType;
/** 培训对象 */ /** 培训对象 */
@Excel(name = "培训对象") @Excel(name = "培训对象",readConverterExp = "0=涉密文件,1=涉密设备,2=涉密资产3=涉密人员")
private String trainSubject; private String trainSubject;
/** 培训地点 */ /** 培训地点 */
@ -50,7 +50,6 @@ public class TdTrain extends BaseEntity
private String createStaffid; private String createStaffid;
/** 创建单位 */ /** 创建单位 */
@Excel(name = "创建单位")
private String createDepartid; private String createDepartid;
/** 创建日期 */ /** 创建日期 */
@ -59,7 +58,6 @@ public class TdTrain extends BaseEntity
private Date createDate; private Date createDate;
/** 更新单位 */ /** 更新单位 */
@Excel(name = "更新单位")
private String updateDepartid; private String updateDepartid;
/** 更新人员 */ /** 更新人员 */
@ -84,7 +82,7 @@ public class TdTrain extends BaseEntity
private String trainName; private String trainName;
/** 培训状态 */ /** 培训状态 */
@Excel(name = "培训状态") @Excel(name = "培训状态",readConverterExp = "0=通过,1=未通过,2=待审核")
private Long trainState; private Long trainState;
/** 培训结束时间 */ /** 培训结束时间 */

Loading…
Cancel
Save