aa
This commit is contained in:
@@ -1136,8 +1136,14 @@ 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) (store *dao.StoreDetail, err error) {
|
func GetStoreVendorMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, vendorID int) (storeMaps *[]model.StoreMap, err error) {
|
||||||
return dao.GetStoreDetail(db, storeID, vendorID, "")
|
cond := map[string]interface{}{
|
||||||
|
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