This commit is contained in:
邹宗楠
2024-01-12 10:23:16 +08:00
parent b4ddfa37df
commit 349b8fd4dc
6 changed files with 84 additions and 22 deletions

View File

@@ -1854,7 +1854,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
// dao.UpdateEntity(db, storeDetail, "Address")
// // 添加同步
valid["address"] = payload["address"].(string)
//syncStatus |= model.SyncFlagStoreName
syncStatus |= model.SyncFlagStoreName
address = payload["address"].(string)
}

View File

@@ -6692,23 +6692,11 @@ func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string][]mtwmap
}
// BatchSetMTBoxPrice 批量修改美团包装费为0
//func BatchSetMTBoxPrice(jxStoreId []int) error {
// var db = dao.GetDB()
// for _, v := range jxStoreId {
// storeDetail, err := dao.GetStoreDetail(db, v, model.VendorIDMTWM, "")
// if err != nil {
// return err
// }
//
// storeSkuList, err := dao.GetStoresSkusInfo(db, []int{v}, nil)
// if err != nil {
// return err
// }
//
// }
//
// utils.CallFuncAsync(func() {
//
// })
// return nil
//}
func BatchSetMTBoxPrice(ctx *jxcontext.Context, jxStoreId []int) error {
var db = dao.GetDB()
for _, v := range jxStoreId {
mtwm.UpdateBoxPrice(ctx, db, v)
}
return nil
}