delete freight

This commit is contained in:
richboo111
2022-11-15 10:49:39 +08:00
parent 6e3459c299
commit 37b17da767
2 changed files with 2 additions and 2 deletions

View File

@@ -1194,7 +1194,7 @@ func UpdateSkuImg(ctx *jxcontext.Context, skuID int, payload map[string]interfac
if skuID == 0 {
return "skuID必传", nil
} else if payload["img"] == "" {
return "img必传", nil
return "所有 img 字段必传", nil
}
if _, err := dao.ExecuteSQL(db, `
UPDATE sku_name s

View File

@@ -1624,7 +1624,7 @@ func DeleteStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
}
}
//删除抖店映射
if _, err1 := dao.ExecuteSQL(db, "DELETE FROM freight_template f WHERE f.store_id = ?", storeID); err != nil {
if _, err1 := dao.ExecuteSQL(db, "DELETE FROM freight_template WHERE freight_template.store_id = ? ", storeID); err != nil {
err = fmt.Errorf("%v,%v", err, err1)
}
return num, err