aa
This commit is contained in:
@@ -1136,14 +1136,8 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
|
||||
return 0, err
|
||||
}
|
||||
|
||||
func GetStoreVendorMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, vendorID int) (storeMaps []*model.StoreMap, err error) {
|
||||
cond := map[string]interface{}{
|
||||
model.FieldStoreID: storeID,
|
||||
}
|
||||
if vendorID != -1 {
|
||||
cond[model.FieldVendorID] = vendorID
|
||||
}
|
||||
return storeMaps, dao.GetEntitiesByKV(db, &storeMaps, cond, false)
|
||||
func GetStoreVendorMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, vendorID int) (store *dao.StoreDetail, err error) {
|
||||
return dao.GetStoreDetail(db, storeID, vendorID, "")
|
||||
}
|
||||
|
||||
// todo 需要对字段做有效性检查
|
||||
|
||||
Reference in New Issue
Block a user