- skuName place bind man.

This commit is contained in:
gazebo
2018-09-12 23:15:54 +08:00
parent ecd19c55b3
commit f14112c030
14 changed files with 173 additions and 68 deletions

View File

@@ -97,7 +97,7 @@ func GetStores(keyword string, params map[string]interface{}, offset, pageSize i
if params["storeID"] != nil {
sqlWhere += " AND t1.id = ?"
sqlParams = append(sqlParams, params["storeID"].(int))
sqlParams = append(sqlParams, params["id"].(int))
}
if params["name"] != nil {
sqlWhere += " AND t1.name LIKE ?"
@@ -266,8 +266,11 @@ func AddStoreVendorMap(db *dao.DaoDB, storeID, vendorID int, storeMap *model.Sto
}
func DeleteStoreVendorMap(db *dao.DaoDB, storeID, vendorID int, userName string) (num int64, err error) {
storeMap := &model.StoreMap{}
return dao.DeleteEntity(db, storeMap, utils.Params2Map(model.FieldStoreID, storeID, model.FieldVendorID, vendorID), "", nil)
storeMap := &model.StoreMap{
StoreID: storeID,
VendorID: vendorID,
}
return dao.DeleteEntity(db, storeMap, model.FieldStoreID, model.FieldVendorID)
}
func UpdateStoreVendorMap(db *dao.DaoDB, storeID, vendorID int, payload map[string]interface{}, userName string) (num int64, err error) {