This commit is contained in:
richboo111
2023-08-30 15:06:19 +08:00
parent 50b59ae4b0
commit 802f04bd28
8 changed files with 187 additions and 29 deletions

View File

@@ -182,6 +182,11 @@ func UpdateSkuNameTiktokBrandName(db *DaoDB, upc, brandName, brandId string) {
ExecuteSQL(db, sql, []interface{}{brandName, brandId, upc}...)
}
func UpdateSkuNameMtAttr(db *DaoDB, id int64, attr string) {
sql := ` UPDATE sku_name SET mt_attribute = ? WHERE id = ? `
ExecuteSQL(db, sql, []interface{}{attr, id}...)
}
func GetSkuNames(db *DaoDB, nameIDs []int, upcs []string, name string, isExd bool) (skuNameList []*model.SkuName, err error) {
sql := `
SELECT t1.*