Commit 1f669631 by 蒋勇

d

parent 54b0b8f2
...@@ -56,11 +56,11 @@ function findTitlePath(items, findstr, results) { ...@@ -56,11 +56,11 @@ function findTitlePath(items, findstr, results) {
//按照price_name去策略表中查询策略id //按照price_name去策略表中查询策略id
let strategy=await ps.db.models.pricestrategy.findOne({where:{optionunion:tg}}) let strategy=await ps.db.models.pricestrategy.findOne({where:{optionunion:tg}})
if(!strategy){ if(!strategy){
tags.push(tg) tags.push(tg)
}else{ strategy=await ps.db.models.pricestrategy.findOne({where:{optionunion:"通用"}})
straid.push(strategy.id)
skucodemap[strategy.id]=stinfo.price_code
} }
straid.push(strategy.id)
skucodemap[strategy.id]=stinfo.price_code
} }
// //
// console.log(stsinfos.length,"..................") // console.log(stsinfos.length,"..................")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment