Showing
1 changed file
with
1 additions
and
1 deletions
@@ -15,7 +15,7 @@ module.exports = async(data) => { | @@ -15,7 +15,7 @@ module.exports = async(data) => { | ||
15 | if (!updateRows) { | 15 | if (!updateRows) { |
16 | return Promise.reject(new Error(`更新channel_sku_compare表失败 ${JSON.stringify(data)}`)); | 16 | return Promise.reject(new Error(`更新channel_sku_compare表失败 ${JSON.stringify(data)}`)); |
17 | } | 17 | } |
18 | - const insertId = await mysqlPool.insert('INSERT INTO `channel_sku_compare_record` (`product_id`, `size_id`, `channel_price`, `create_time`) VALUES (:productId, :sizeId, :channelPrice, :createTime)', { | 18 | + 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)', { |
19 | productId, | 19 | productId, |
20 | sizeId, | 20 | sizeId, |
21 | channelPrice: price, | 21 | channelPrice: price, |
-
Please register or login to post a comment