1
This commit is contained in:
@@ -261,22 +261,31 @@ func (p *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCod
|
||||
|
||||
//默认只创建固定运费模板
|
||||
func (P *PurchaseHandler) CreateFreightTemplate(storeCode, full, subtraction int) (int64, error) {
|
||||
//获取本地门店信息
|
||||
//var (
|
||||
// columns []freightTemplate_create_request.ColumnsItem
|
||||
//)
|
||||
////获取本地门店信息
|
||||
//storeDetail, err := dao.GetStoreDetail(dao.GetDB(), storeCode, model.VendorIDDD, "")
|
||||
//if err != nil {
|
||||
// return 0, err
|
||||
//}
|
||||
//column := &freightTemplate_create_request.ColumnsItem{
|
||||
// FirstNum: 1,
|
||||
// FirstNumPrice: 0.01,
|
||||
// AddNum: 1,
|
||||
// AddNumPrice: 0.01,
|
||||
//}
|
||||
//param := &freightTemplate_create_request.FreightTemplateCreateParam{
|
||||
// Template: &freightTemplate_create_request.Template{
|
||||
// TemplateName: "门店编码:" + utils.Int2Str(storeCode) + "的运费模板",
|
||||
// ProductProvince: storeDetail.pro,
|
||||
// ProductProvince: int64(storeDetail.ProvinceCode),
|
||||
// ProductCity: int64(storeDetail.CityCode),
|
||||
// //CalculateType: ,
|
||||
// TransferType: 1,
|
||||
// RuleType: 1, //固定运费
|
||||
// FixedAmount: int64(storeDetail.DeliveryFeeDeductionSill), //固定的运费价格 满x包邮,订单需特殊判断vendor_ID=14
|
||||
// CalculateType: 2, //模板类型为1-固定运费、2-卖家包邮、3-货到付款 时,计价类型传 2-按数量
|
||||
// TransferType: 1,
|
||||
// RuleType: 2, //卖家包邮
|
||||
//
|
||||
// },
|
||||
// Columns: columns,
|
||||
//}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user