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