修改自动更新的时候 UpdateSensitiveWord 方法
This commit is contained in:
@@ -679,6 +679,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
//handle error for sensitive words, if find, then insert to table sensitive_words
|
//handle error for sensitive words, if find, then insert to table sensitive_words
|
||||||
if sensitiveWord := GetSensitiveWord(singleStoreHandler, err.Error()); sensitiveWord != "" {
|
if sensitiveWord := GetSensitiveWord(singleStoreHandler, err.Error()); sensitiveWord != "" {
|
||||||
dao.InsertSensitiveWord(sensitiveWord, vendorID, ctx.GetUserName())
|
dao.InsertSensitiveWord(sensitiveWord, vendorID, ctx.GetUserName())
|
||||||
|
words, _ := dao.GetSensitiveWordList(vendorID)
|
||||||
|
word := words[0]
|
||||||
|
word.Word = word.Word + "," + sensitiveWord
|
||||||
|
dao.UpdateSensitiveWord(word, vendorID, 0, ctx.GetUserName())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
successList := putils.UnselectStoreSkuSyncListByVendorSkuIDs(batchedStoreSkuList, GetVendorSkuIDList(failedList))
|
successList := putils.UnselectStoreSkuSyncListByVendorSkuIDs(batchedStoreSkuList, GetVendorSkuIDList(failedList))
|
||||||
|
|||||||
Reference in New Issue
Block a user