Browse Source

fix:手工数据-下载导入模板支持下载两种模板

Roc 7 months ago
parent
commit
3805de5f34
1 changed files with 13 additions and 0 deletions
  1. 13 0
      controllers/target.go

+ 13 - 0
controllers/target.go

@@ -183,6 +183,19 @@ func (this *TargetController) DataAdd() {
 		br.ErrMsg = "新增失败,Err:" + err.Error()
 		return
 	}
+
+	// 添加操作记录
+	go func() {
+		record := &models.EdbinfoOpRecord{
+			TradeCode:  edbdata.TradeCode,
+			Remark:     "更新数据",
+			UserId:     this.SysUser.AdminId,
+			UserName:   this.SysUser.RealName,
+			CreateTime: time.Now(),
+		}
+		_ = record.Create()
+	}()
+
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "新增成功"