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
5b33f505
Commit
5b33f505
authored
Jun 24, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
3dd34c7f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
center-manage/app/base/service/impl/product/a.txt
+2
-2
center-manage/app/base/service/impl/product/productSve.js
+2
-1
center-manage/app/base/service/impl/product/productpriceSve.js
+1
-1
center-manage/app/base/service/impl/product/xproductSve.js
+4
-2
No files found.
center-manage/app/base/service/impl/product/a.txt
View file @
5b33f505
国外
\ No newline at end of file
新疆维吾尔自治区
\ No newline at end of file
center-manage/app/base/service/impl/product/productSve.js
View file @
5b33f505
...
...
@@ -40,7 +40,8 @@ class ProductService extends ServiceBase {
company_id
:
p
.
company_id
,
skucode
:
p
.
skucode
?
p
.
skucode
:
self
.
getUUID
(),
skuname
:
p
.
skuname
?
p
.
skuname
:
p
.
name
,
sptags
:
p
.
sptags
sptags
:
p
.
sptags
,
channeltags
:
p
.
channeltags
}
productprices
.
push
(
pps
)
})
...
...
center-manage/app/base/service/impl/product/productpriceSve.js
View file @
5b33f505
...
...
@@ -29,7 +29,7 @@ class ProductpriceService extends ServiceBase {
regioninfo
[
"label"
]
=
regionName
//按照名字去取地区编码
let
areainfos
=
rs
.
filter
(
f
=>
{
if
(
f
.
name
==
regionName
)
{
if
(
f
.
name
.
indexOf
(
regionName
)
>=
0
)
{
return
true
}
else
{
return
false
...
...
center-manage/app/base/service/impl/product/xproductSve.js
View file @
5b33f505
...
...
@@ -35,14 +35,16 @@ function findTitlePath(items, findstr, results) {
let
product
=
{}
product
.
code
=
xp
.
path_code
+
xp
.
id
results
=
[]
findTitlePath
(
rs
,
xp
.
region_name
,
results
)
//
findTitlePath(rs, xp.region_name, results)
if
(
results
.
length
==
0
||
!
results
[
0
]){
fs
.
writeFileSync
(
"./a.txt"
,
xp
.
region_name
)
}
product
.
regionpath
=
results
[
0
]
//product.regionpath = results[0]//反查国家标准地区名称
product
.
regionpath
=
xp
.
region_name
product
.
productcatpath
=
"产品分类"
+
xp
.
path_name
product
.
name
=
product
.
productcatpath
+
"~"
+
product
.
regionpath
product
.
sptags
=
xp
.
servicer_name
product
.
channeltags
=
"腾讯"
product
.
desc
=
product
.
name
product
.
company_id
=
1
//构造策略ids
...
...
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