...
|
...
|
@@ -15,7 +15,7 @@ module.exports = async(data) => { |
|
|
if (!updateRows) {
|
|
|
return Promise.reject(new Error(`更新channel_sku_compare表失败 ${JSON.stringify(data)}`));
|
|
|
}
|
|
|
const insertId = await mysqlPool.insert('INSERT INTO `channel_sku_compare_record` (`product_id`, `size_id`, `channel_price`, `create_time`) VALUES (:productId, :sizeId, :channelPrice, :createTime)', {
|
|
|
const insertId = await mysqlPool.insert('INSERT INTO `channel_sku_compare_record` (`product_id`, `size_id`, `channel_price`, `create_time`, `sku`) VALUES (:productId, :sizeId, :channelPrice, :createTime, 0)', {
|
|
|
productId,
|
|
|
sizeId,
|
|
|
channelPrice: price,
|
...
|
...
|
|