Authored by 陈峰

comm

... ... @@ -259,4 +259,89 @@
{"productId": 21829, "yhId": 10006623},
{"productId": 10145, "yhId": 10004317},
{"productId": 19155, "yhId": 10008227},
{"productId": 20071, "yhId": 10007989}]
\ No newline at end of file
{"productId": 20071, "yhId": 10007989},
{"productId": 24306, "yhId": 10008413},
{"productId": 24482, "yhId": 10009859},
{"productId": 19607, "yhId": 10007711},
{"productId": 18877, "yhId": 10000347},
{"productId": 16856, "yhId": 10007441},
{"productId": 23767, "yhId": 10008877},
{"productId": 15357, "yhId": 10000461},
{"productId": 22635, "yhId": 10007451},
{"productId": 24696, "yhId": 10009957},
{"productId": 22265, "yhId": 10007533},
{"productId": 23612, "yhId": 10008609},
{"productId": 22657, "yhId": 10008611},
{"productId": 11132, "yhId": 10000771},
{"productId": 15081, "yhId": 10000179},
{"productId": 26, "yhId": 10000353},
{"productId": 24247, "yhId": 10009625},
{"productId": 17438, "yhId": 10006303},
{"productId": 23678, "yhId": 10009243},
{"productId": 24374, "yhId": 10009471},
{"productId": 8815, "yhId": 10000343},
{"productId": 19602, "yhId": 10006137},
{"productId": 24892, "yhId": 10009959},
{"productId": 3428, "yhId": 10000345},
{"productId": 12366, "yhId": 10000169},
{"productId": 24377, "yhId": 10009863},
{"productId": 2356, "yhId": 10000953},
{"productId": 9242, "yhId": 10000163},
{"productId": 12508, "yhId": 10007129},
{"productId": 24234, "yhId": 10008411},
{"productId": 18506, "yhId": 10004739},
{"productId": 790, "yhId": 10000151},
{"productId": 23044, "yhId": 10008135},
{"productId": 18437, "yhId": 10005789},
{"productId": 9236, "yhId": 10000146},
{"productId": 9212, "yhId": 10000143},
{"productId": 24766, "yhId": 10009903},
{"productId": 18409, "yhId": 10001107},
{"productId": 14887, "yhId": 10000117},
{"productId": 15082, "yhId": 10000189},
{"productId": 23574, "yhId": 10008355},
{"productId": 21570, "yhId": 10006559},
{"productId": 9565, "yhId": 10008181},
{"productId": 8158, "yhId": 10004737},
{"productId": 22762, "yhId": 10007889},
{"productId": 23610, "yhId": 10008629},
{"productId": 21864, "yhId": 10006901},
{"productId": 10237, "yhId": 10000129},
{"productId": 24006, "yhId": 10008089},
{"productId": 24, "yhId": 10000351},
{"productId": 22111, "yhId": 10007249},
{"productId": 19632, "yhId": 10006139},
{"productId": 24573, "yhId": 10009273},
{"productId": 23905, "yhId": 10009571},
{"productId": 14683, "yhId": 10000449},
{"productId": 24375, "yhId": 10009475},
{"productId": 1181, "yhId": 10000479},
{"productId": 22421, "yhId": 10007449},
{"productId": 15192, "yhId": 10000451},
{"productId": 9027, "yhId": 10002143},
{"productId": 15693, "yhId": 10000187},
{"productId": 23609, "yhId": 10008167},
{"productId": 25, "yhId": 10000357},
{"productId": 22643, "yhId": 10008005},
{"productId": 10337, "yhId": 10000423},
{"productId": 24130, "yhId": 10009631},
{"productId": 22181, "yhId": 10008131},
{"productId": 8928, "yhId": 10001363},
{"productId": 10242, "yhId": 10000109},
{"productId": 15677, "yhId": 10000469},
{"productId": 14917, "yhId": 10000795},
{"productId": 24232, "yhId": 10009257},
{"productId": 12248, "yhId": 10007319},
{"productId": 9225, "yhId": 10002211},
{"productId": 12578, "yhId": 10000171},
{"productId": 11619, "yhId": 10005079},
{"productId": 15798, "yhId": 10000615},
{"productId": 14058, "yhId": 10004687},
{"productId": 11991, "yhId": 10000557},
{"productId": 23572, "yhId": 10009591},
{"productId": 15689, "yhId": 10006125},
{"productId": 22134, "yhId": 10006743},
{"productId": 23631, "yhId": 10007843},
{"productId": 14184, "yhId": 10005127},
{"productId": 21939, "yhId": 10008145},
{"productId": 11621, "yhId": 10000133}]
\ No newline at end of file
... ...
... ... @@ -13,7 +13,7 @@ module.exports = async(data) => {
});
if (!updateRows) {
const insertRow = await mysqlPool.insert('INSERT `channel_sku_compare` (`product_id`, `sku`, `size_id`,`channel_price`, `low_rate`, `high_rate`, `channel_average_price`, `update_time`, `status`) SELECT `product_id`,`id`,`size_id`, :channelPrice, 0.05, 0.02, 0.00, :updateTime, 0 FROM `storage` WHERE `product_id` = :productId AND `size_id` = :sizeId', {
const insertRow = await mysqlPool.insert('INSERT `channel_sku_compare` (`product_id`, `sku`, `size_id`,`channel_price`, `low_rate`, `high_rate`, `channel_average_price`, `update_time`, `status`) SELECT `product_id`,`id`,`size_id`, :channelPrice, 0.05, 0, 0.00, :updateTime, 0 FROM `storage` WHERE `product_id` = :productId AND `size_id` = :sizeId', {
channelPrice: price,
updateTime: time,
productId,
... ...
... ... @@ -30,7 +30,7 @@ const importDb = async(appendSkns, inx = 0, success = 0) => {
sku: sku.id,
sizeId: sku.size_id,
lowRate: 0.05,
highRate: 0.02,
highRate: 0,
status: 0,
updateUid: 0,
channelPrice: 0,
... ...