Merge branch 'master' of git.oa00.com:supply-chain/service

finance
黄伟 2 years ago
commit 441b3cbe57

@ -14,6 +14,9 @@ type GoodsSearch struct {
CategoryId uint64 // 类目id CategoryId uint64 // 类目id
BrandName string // 品牌名 BrandName string // 品牌名
Handle uint // 处理状态 1=待处理 2=入库 3=废弃 Handle uint // 处理状态 1=待处理 2=入库 3=废弃
SkuId uint // 供应商skuId
MinSupplyPrice decimal.Decimal // 最小采购价
MaxSupplyPrice decimal.Decimal // 最大采购价
} }
type ArgsGoodsList struct { type ArgsGoodsList struct {
Search GoodsSearch Search GoodsSearch
@ -168,3 +171,18 @@ func (g *goods) ReHandle(ctx context.Context, goodsIds []uint) (reply []AdoptIte
err = xClient.Call(ctx, "ReHandle", goodsIds, &reply) err = xClient.Call(ctx, "ReHandle", goodsIds, &reply)
return return
} }
type ReplyByIdItem struct {
SkuId uint `json:"skuId"`
SourceName string `json:"sourceName"`
}
// FindBySkuIds @Title 根据商品Ids获取商品信息
func (g *goods) FindBySkuIds(ctx context.Context, goodsIds []uint) (reply []ReplyByIdItem, err error) {
xClient, err := client.GetClient(g)
if err != nil {
return nil, err
}
err = xClient.Call(ctx, "FindBySkuIds", goodsIds, &reply)
return
}

@ -146,10 +146,12 @@ type SkuItem struct {
SourceStatus uint `json:"sourceStatus"` // 供应商状态 1=上架 2=下架 SourceStatus uint `json:"sourceStatus"` // 供应商状态 1=上架 2=下架
CustomerPrice decimal.Decimal `json:"customerPrice"` // 供货最高价 CustomerPrice decimal.Decimal `json:"customerPrice"` // 供货最高价
CustomerProfitRate decimal.Decimal `json:"customerProfitRate"` // 供货利润率 供货利润/供货最高价% CustomerProfitRate decimal.Decimal `json:"customerProfitRate"` // 供货利润率 供货利润/供货最高价%
CustomerDiscount decimal.Decimal `json:"customerDiscount"` // 折扣
AdjustType uint `json:"adjustType"` // 加价类型 AdjustType uint `json:"adjustType"` // 加价类型
AdjustPrice decimal.Decimal `json:"adjustPrice"` // 加价金额 AdjustPrice decimal.Decimal `json:"adjustPrice"` // 加价金额
AfterAdjustType uint `json:"afterAdjustType"` // 改价后加价类型 AfterAdjustType uint `json:"afterAdjustType"` // 改价后加价类型
AfterAdjustPrice decimal.Decimal `json:"afterAdjustPrice"` // 改价后加价金额 AfterAdjustPrice decimal.Decimal `json:"afterAdjustPrice"` // 改价后加价金额
Reason string // 改价驳回原因
} }
// Lists @Title 商品列表 // Lists @Title 商品列表

Loading…
Cancel
Save