测试UpdateSensitiveWord

This commit is contained in:
平凡梦
2020-07-13 14:24:11 +08:00
parent 5fb37179df
commit e2efc743ab
2 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package dao
import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
"time"
)
@@ -56,6 +57,7 @@ func UpdateSensitiveWord(wordList *model.SensitiveWord, vendorID int, id int, us
wordList.VendorID = vendorID
wordList.UpdatedAt = time.Now()
wordList.LastOperator = userName
globals.SugarLogger.Debug("wordList:", wordList)
if id != 0 {
if _, err := UpdateEntity(nil, wordList, "id", "word", "vendor_id", "last_operator"); err != nil {
return nil, err