This commit is contained in:
邹宗楠
2022-12-16 12:52:24 +08:00
parent 9212f14ffd
commit e138e49e27
3 changed files with 13 additions and 6 deletions

View File

@@ -34,4 +34,9 @@ func BindStoreList(req *model.AddPrinterParam, userId string) error {
return CreateEntity(GetDB(), param)
}
// 删除绑定门店
// DeleteStoreList 删除绑定门店
func DeleteStoreList(printNo string, storeId string) error {
sql := ` DELETE FROM print_bind_store WHERE print_no = ? AND store_id = ? `
_, err := ExecuteSQL(GetDB(), sql, []interface{}{printNo, storeId}...)
return err
}