Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
b36c5fd2
Commit
b36c5fd2
authored
Jul 14, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
0529c1c1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
center-manage/app/base/service/impl/product/a.txt
+2
-2
center-manage/app/base/service/impl/product/b.txt
+6
-0
center-manage/app/base/service/impl/product/xproductSve.js
+4
-1
No files found.
center-manage/app/base/service/impl/product/a.txt
View file @
b36c5fd2
新疆维吾尔自治区
\ No newline at end of file
合肥
\ No newline at end of file
center-manage/app/base/service/impl/product/b.txt
0 → 100644
View file @
b36c5fd2
[
{"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
center-manage/app/base/service/impl/product/xproductSve.js
View file @
b36c5fd2
...
...
@@ -49,10 +49,13 @@ function findTitlePath(items, findstr, results) {
product
.
company_id
=
1
//构造策略ids
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
skucodemap
=
{}
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
let
strategy
=
await
ps
.
db
.
models
.
pricestrategy
.
findOne
({
where
:{
optionunion
:
tg
}})
if
(
!
strategy
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment