Browse Source

fix: 智能研报操作人

hsun 1 year ago
parent
commit
567b33147e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      controllers/smart_report/smart_report.go

+ 5 - 5
controllers/smart_report/smart_report.go

@@ -91,7 +91,7 @@ func (this *SmartReportController) Add() {
 	item.AdminId = sysUser.AdminId
 	item.AdminRealName = sysUser.RealName
 	item.LastModifyAdminId = sysUser.AdminId
-	item.LastModifyAdminName = sysUser.AdminName
+	item.LastModifyAdminName = sysUser.RealName
 	item.State = smart_report.SmartReportStateWaitPublish
 	item.CreateTime = time.Now().Local()
 	item.ModifyTime = time.Now().Local()
@@ -231,9 +231,9 @@ func (this *SmartReportController) Edit() {
 	item.ContentStruct = req.ContentStruct
 	item.ModifyTime = time.Now().Local()
 	if contentModify {
-		fmt.Println(contentModify)
+		//fmt.Println(contentModify)
 		item.LastModifyAdminId = sysUser.AdminId
-		item.LastModifyAdminName = sysUser.AdminName
+		item.LastModifyAdminName = sysUser.RealName
 		item.ContentModifyTime = time.Now().Local()
 		cols = append(cols, "LastModifyAdminId", "LastModifyAdminName", "ContentModifyTime")
 	}
@@ -719,7 +719,7 @@ func (this *SmartReportController) SaveContent() {
 		item.ContentStruct = req.ContentStruct
 		item.ContentModifyTime = time.Now().Local()
 		item.LastModifyAdminId = sysUser.AdminId
-		item.LastModifyAdminName = sysUser.AdminName
+		item.LastModifyAdminName = sysUser.RealName
 		item.ModifyTime = time.Now().Local()
 		cols := []string{"Content", "ContentSub", "ContentStruct", "ContentModifyTime", "LastModifyAdminId", "LastModifyAdminName", "ModifyTime"}
 		if e = item.Update(cols); e != nil {
@@ -735,7 +735,7 @@ func (this *SmartReportController) SaveContent() {
 			saveLog.ContentSub = item.ContentSub
 			saveLog.ContentStruct = item.ContentStruct
 			saveLog.AdminId = sysUser.AdminId
-			saveLog.AdminName = sysUser.AdminName
+			saveLog.AdminName = sysUser.RealName
 			saveLog.CreateTime = time.Now().Local()
 			_ = saveLog.Create()
 		}()