瀏覽代碼

Merge branch 'feature/eta2.5.9_inspection_stat' into debug

xyxie 1 天之前
父節點
當前提交
cba9cd0da4
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      models/data_manage/edb_inspection/edb_inspection_message.go
  2. 3 0
      services/edb_inspection.go

+ 3 - 0
models/data_manage/edb_inspection/edb_inspection_message.go

@@ -14,6 +14,9 @@ type EdbInspectionMessage struct {
 	AdminId            int64     `gorm:"column:admin_id"`
 	Message            string    `gorm:"column:message"`
 	IsRead             int8      `gorm:"column:is_read"`
+	Source             int8      `gorm:"column:source"`
+	TerminalCode       string    `gorm:"column:terminal_code"`
+	InspectionTime     time.Time `gorm:"column:inspection_time"`
 	CreateTime         time.Time `gorm:"column:create_time"`
 	ModifyTime         time.Time `gorm:"column:modify_time"`
 }

+ 3 - 0
services/edb_inspection.go

@@ -262,6 +262,9 @@ func AddEdbInspectionRecord(cont context.Context) (err error) {
 					AdminId:            adminId,
 					Message:            msg,
 					IsRead:             0,
+					Source:             int8(config.Source),
+					TerminalCode:       config.TerminalCode,
+					InspectionTime:     now,
 					CreateTime:         now,
 					ModifyTime:         now,
 				}