|
@@ -933,13 +933,15 @@ func (c *ExcelInfoController) Edit() {
|
|
|
excelInfo.ExcelType = req.ExcelType
|
|
|
excelInfo.ExcelClassifyId = req.ExcelClassifyId
|
|
|
excelInfo.ExcelImage = req.ExcelImage
|
|
|
+ excelInfo.UpdateUserId = sysUser.AdminId
|
|
|
+ excelInfo.UpdateUserRealName = sysUser.RealName
|
|
|
excelInfo.Content = content
|
|
|
// 自动保存时不会传缩略图,也就不更新这个字段
|
|
|
var updateExcelInfoParams []string
|
|
|
if req.ExcelImage != "" {
|
|
|
- updateExcelInfoParams = []string{"ModifyTime", "ExcelName", "ExcelType", "ExcelClassifyId", "ExcelImage", "Content"}
|
|
|
+ updateExcelInfoParams = []string{"ModifyTime", "ExcelName", "ExcelType", "ExcelClassifyId", "ExcelImage", "Content", "UpdateUserId", "UpdateUserRealName"}
|
|
|
} else {
|
|
|
- updateExcelInfoParams = []string{"ModifyTime", "ExcelName", "ExcelType", "ExcelClassifyId", "Content"}
|
|
|
+ updateExcelInfoParams = []string{"ModifyTime", "ExcelName", "ExcelType", "ExcelClassifyId", "Content", "UpdateUserId", "UpdateUserRealName"}
|
|
|
}
|
|
|
|
|
|
excelEdbMappingList := make([]*excel3.ExcelEdbMapping, 0)
|
|
@@ -963,20 +965,6 @@ func (c *ExcelInfoController) Edit() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if excelInfo.Source == utils.BALANCE_TABLE && req.IsAuto == false {
|
|
|
- // 更新人变更
|
|
|
- parentExcelInfoId := excelInfo.ParentId
|
|
|
- if excelInfo.BalanceType == 1 {
|
|
|
- parentExcelInfoId = excelInfo.RelExcelInfoId
|
|
|
- }
|
|
|
- err = excel3.ModifyExcelInfoUpdateUserId(parentExcelInfoId, sysUser.AdminId, sysUser.RealName)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "保存失败"
|
|
|
- br.ErrMsg = "保存失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
// 更新excel下载地址(默认的EXCEL需要更新,自定义表格不需要更新)
|
|
|
if excelInfo.Source == 1 {
|
|
|
go excel2.UpdateExcelInfoFileUrl(excelInfo)
|