Commit b36c5fd2 by 蒋勇

d

parent 0529c1c1
新疆维吾尔自治区 合肥
\ No newline at end of file \ No newline at end of file
[
{"id":41,"price_code":"sv_business_registration_category_indi7","product_name":"/ic/cpreg/","price_name":"个体工商","created_at":null,"updated_at":null,"deleted_at":null,"version":null},
{"id":42,"price_code":"sv_business_registration_category_lp7","product_name":"/ic/cpreg/","price_name":"有限公司","created_at":null,"updated_at":null,"deleted_at":null,"version":null},
{"id":43,"price_code":"sv_business_registration_category_sole7","product_name":"/ic/cpreg/","price_name":"个人独资","created_at":null,"updated_at":null,"deleted_at":null,"version":null}
]
\ No newline at end of file
...@@ -49,10 +49,13 @@ function findTitlePath(items, findstr, results) { ...@@ -49,10 +49,13 @@ function findTitlePath(items, findstr, results) {
product.company_id=1 product.company_id=1
//构造策略ids //构造策略ids
let stsinfos = await ps.db.models.xproductprice.findAll({ where:{product_name:xp.path_code},raw: true }) let stsinfos = await ps.db.models.xproductprice.findAll({ where:{product_name:xp.path_code},raw: true })
if(xp.region_name=="重庆" && xp.path_code=="/ic/cpreg/"){
fs.writeFileSync("./b.txt",JSON.stringify(stsinfos))
}
let straid=[] let straid=[]
let skucodemap={} let skucodemap={}
for(let stinfo of stsinfos){ for(let stinfo of stsinfos){
let tg=stinfo.price_name.replace("EDI","").replace("ICP","").replace("(",",").replace(")","").replace("章","").replace("税控","").replace("完成","").replace("\t\r\n","").replace("天","工作日") let tg=stinfo.price_name.replace("EDI","").replace("ICP","").replace("(",",").replace(")","").replace("章","").replace("完成","").replace("\t\r\n","").replace("天","工作日")
//按照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){
......
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