Authored by 杨延青

Merge branch 'hotfix/task' into 'master'

fix incre relation



See merge request !11
/**
* 每天定时增量更新,UFO商品到爬虫关系表中
*/
const _ = require('lodash');
const {logger} = require('../../libs/logger');
const {sendMessage} = require('../../libs/influx-report');
const {mysqlPool} = require('../../libs/mysql');
... ... @@ -23,7 +23,9 @@ module.exports = async() => {
`);
const relations = ufoProducts.map(product => {
const duFind = duProducts.find(dp => dp.articleNumber === product.product_code);
const duFind = duProducts.find(dp => {
return _.toUpper(dp.articleNumber) === _.toUpper(product.product_code);
});
const sjFinds = sjProduct.filter(dp => dp.model === product.product_code);
return {
... ...