- 准备处理平台价格字段
This commit is contained in:
@@ -390,11 +390,11 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus bo
|
||||
t1.*,
|
||||
t2.name_id, t2.id sku_id, t2.spec_quality sku_spec_quality, t2.spec_unit sku_spec_unit, t2.weight, t2.jd_id sku_jd_id,
|
||||
t2.comment, t2.category_id sku_category_id, t2.status sku_status,
|
||||
|
||||
t4.created_at bind_created_at, t4.updated_at bind_updated_at, t4.last_operator bind_last_operator, t4.deleted_at bind_deleted_at,
|
||||
t4.sub_store_id, t4.price bind_price, IF(t4.unit_price IS NOT NULL, t4.unit_price, t1.price) unit_price, t4.status store_sku_status,
|
||||
t4.sub_store_id, t4.price bind_price, IF(t4.unit_price IS NOT NULL, t4.unit_price, t1.price) unit_price, t4.status store_sku_status, t4.auto_sale_at,
|
||||
t4.ebai_id, t4.mtwm_id, t4.wsc_id, t4.wsc_id2,
|
||||
t4.jd_sync_status, t4.ebai_sync_status, t4.mtwm_sync_status, t4.wsc_sync_status, t4.auto_sale_at
|
||||
t4.jd_sync_status, t4.ebai_sync_status, t4.mtwm_sync_status, t4.wsc_sync_status/*,
|
||||
t4.jd_price, t4.ebai_price, t4.mtwm_price, t4.wsc_price*/
|
||||
` + sql
|
||||
var tmpList []*tGetStoresSkusInfo
|
||||
beginTime := time.Now()
|
||||
|
||||
@@ -228,6 +228,9 @@ func sku2Update(vendorID int, sku *dao.StoreSkuSyncInfo, syncStatus int8) (item
|
||||
sku.StoreSkuSyncStatus = sku.StoreSkuSyncStatus & ^syncStatus
|
||||
}
|
||||
kvs[dao.GetSyncStatusStructField(model.VendorNames[vendorID])] = sku.StoreSkuSyncStatus
|
||||
// if sku.VendorPrice > 0 {
|
||||
// kvs[dao.GetVendorPriceStructField(model.VendorNames[vendorID])] = sku.VendorPrice
|
||||
// }
|
||||
storeSku := &model.StoreSkuBind{}
|
||||
storeSku.ID = sku.BindID
|
||||
item = &dao.KVUpdateItem{
|
||||
|
||||
@@ -120,6 +120,18 @@ func GetSyncStatusDBField(prefix string) string {
|
||||
return ConvertDBFieldPrefix(prefix) + "_sync_status"
|
||||
}
|
||||
|
||||
func GetVendorPriceStructField(prefix string) string {
|
||||
return ConvertStructFieldPrefix(prefix) + "Price"
|
||||
}
|
||||
|
||||
func GetVendorPriceJsonField(prefix string) string {
|
||||
return ConvertJsonFieldPrefix(prefix) + "Price"
|
||||
}
|
||||
|
||||
func GetVendorPriceDBField(prefix string) string {
|
||||
return ConvertDBFieldPrefix(prefix) + "_price"
|
||||
}
|
||||
|
||||
func GetCategoryIDStructField(prefix string) string {
|
||||
return ConvertStructFieldPrefix(prefix) + "CategoryID"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user