Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2023-03-09 09:38:32 +08:00
3 changed files with 22 additions and 18 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不允许为空")