漏洞修复

This commit is contained in:
筱锋xiao_lfeng 2023-08-19 19:33:09 +08:00
parent ad9b37db63
commit f9c12373d5

View File

@ -104,14 +104,17 @@ public class UploadSheetService {
// 数据修改 // 数据修改
ExcelInfoEntity excelInfoUpdate = new ExcelInfoEntity(); ExcelInfoEntity excelInfoUpdate = new ExcelInfoEntity();
excelInfoUpdate excelInfoUpdate
.setId(excelInfo.getId())
.setFileName(excelInfo.getFileName()) .setFileName(excelInfo.getFileName())
.setSheetName(excelInfo.getSheetName()) .setSheetName(excelInfo.getSheetName())
.setTableName(excelInfo.getTableName())
.setType(excelInfo.getType()) .setType(excelInfo.getType())
.setCreateBy(excelInfo.getCreateBy()) .setCreateBy(excelInfo.getCreateBy())
.setParentId(excelInfo.getParentId()) .setParentId(excelInfo.getParentId())
.setUpdateBy(excelInfo.getUpdateBy()) .setUpdateBy(excelInfo.getCreateBy())
.setCreateTime(excelInfo.getCreateTime()) .setCreateTime(excelInfo.getCreateTime())
.setUpdateBy(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); .setCreateBy(excelInfo.getCreateBy())
.setUpdateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
if (excelInfoMapper.updateExcelInfo(excelInfoUpdate)) { if (excelInfoMapper.updateExcelInfo(excelInfoUpdate)) {
returnResult = ResultUtil.success(); returnResult = ResultUtil.success();
} else { } else {