This commit is contained in:
richboo111
2022-11-16 09:52:07 +08:00
parent 7cca209659
commit c206127db6
4 changed files with 39 additions and 5 deletions

View File

@@ -6636,3 +6636,13 @@ func SyncTiktokMainIdToLocal(ctx *jxcontext.Context, param *tiktok_store.MainSku
}
return nil
}
//批量更新美团商品进货价
func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string]interface{}) error {
//spuData := []*mtwmapi.SpuData{}
//for k, v := range preData {
// //获取京西平台storeID
// err := dao.GetStoreDetail()
//}
return nil
}

View File

@@ -1622,3 +1622,9 @@ func InsertIntoFreightTemplate(storeID int, vendorStoreID string, templateID, wa
fmt.Println(tStr2)
return err
}
//只获取美团平台的京西storeID
func GetStoreIDByMeiTuan(vendorStoreID string) (storeID int, err error) {
return 0, err
}

View File

@@ -261,12 +261,12 @@ func CreateOrUpdateAll(vendorOrgCode string, storeID, vendorStoreID, deliveryFee
StoreID: int(storeID),
VendorStoreID: utils.Int64ToStr(vendorStoreID),
}
if err = dao.CreateEntity(db, FreightTemplate); err != nil {
if err := dao.CreateEntity(db, FreightTemplate); err != nil {
_, err1 := dao.UpdateEntity(db, FreightTemplate, "TemplateID", "WarehouseID", "FenceID", "TradeLimitID")
if err1 == nil {
errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err))
} else {
if err1 != nil {
errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err1))
} else {
errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err))
}
}
endErr := errList.GetErrListAsOne()
@@ -278,7 +278,7 @@ func CreateOrUpdateAll(vendorOrgCode string, storeID, vendorStoreID, deliveryFee
}
}
func CreateAndBindAllV2(vendorOrgCode string, storeID, vendorStoreID, deliveryFeeDeductionFee, minPrice int64, userName string) error {
func CreateAndBindAllV2(vendorOrgCode string, storeID, vendorStoreID, deliveryFeeDeductionFee, minPrice int64) error {
var (
db *dao.DaoDB
ctx *jxcontext.Context