This commit is contained in:
richboo111
2023-03-08 17:22:17 +08:00
parent 9722278068
commit 0e95eea7ac
3 changed files with 20 additions and 16 deletions

View File

@@ -16,6 +16,8 @@ SELECT ?,?,?,?,?,? FROM DUAL WHERE NOT EXISTS(SELECT COUNT(store_id) FROM freigh
_, err := ExecuteSQL(GetDB(), sqlStr, sqlParam)
return err
}
// 全参数更新插入
func ReplaceInsertFreight(tem *model.FreightTemplate) error {
if tem.StoreID == 0 || len(tem.VendorStoreID) == 0 {
return fmt.Errorf("storeID或vendorStoreID不允许为空")