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
d5acade9
Commit
d5acade9
authored
Dec 24, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
3b4431e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
center-app/app/base/service/impl/dbproduct/productSve.js
+6
-2
No files found.
center-app/app/base/service/impl/dbproduct/productSve.js
View file @
d5acade9
...
@@ -243,9 +243,9 @@ class ProductService extends ServiceBase {
...
@@ -243,9 +243,9 @@ class ProductService extends ServiceBase {
async
getRegProducePrice
(
actionBody
){
async
getRegProducePrice
(
actionBody
){
console
.
log
(
'actionBody---'
,
actionBody
)
console
.
log
(
'actionBody---'
,
actionBody
)
var
itemCode
=
{
var
itemCode
=
{
item_code
:
actionBody
.
type
Code
item_code
:
actionBody
.
channelItem
Code
}
}
var
pathSql
=
"SELECT path_code,channel_item_code FROM p_product WHERE item_code = :item_code"
;
var
pathSql
=
"SELECT path_code,channel_item_code
,service_business_code
FROM p_product WHERE item_code = :item_code"
;
var
pathCodeData
=
await
this
.
customQuery
(
pathSql
,
itemCode
);
var
pathCodeData
=
await
this
.
customQuery
(
pathSql
,
itemCode
);
if
(
actionBody
.
pathCode
){
if
(
actionBody
.
pathCode
){
var
pathCode
=
actionBody
.
pathCode
;
var
pathCode
=
actionBody
.
pathCode
;
...
@@ -262,6 +262,9 @@ class ProductService extends ServiceBase {
...
@@ -262,6 +262,9 @@ class ProductService extends ServiceBase {
var
channelItemCode
=
pathCodeData
[
0
].
channel_item_code
;
var
channelItemCode
=
pathCodeData
[
0
].
channel_item_code
;
}
}
}
}
if
(
pathCodeData
){
var
serviceBusinessCode
=
pathCodeData
[
0
].
service_business_code
;
}
const
code1
=
pathCode
.
split
(
'/'
)[
1
];
//一级产品码
const
code1
=
pathCode
.
split
(
'/'
)[
1
];
//一级产品码
const
code2
=
pathCode
.
split
(
'/'
)[
2
];
//二级产品码
const
code2
=
pathCode
.
split
(
'/'
)[
2
];
//二级产品码
let
channel_item_code
=
code2
;
let
channel_item_code
=
code2
;
...
@@ -363,6 +366,7 @@ class ProductService extends ServiceBase {
...
@@ -363,6 +366,7 @@ class ProductService extends ServiceBase {
actionBody
.
payCode
=
produceinfo
[
0
].
payCode
;
actionBody
.
payCode
=
produceinfo
[
0
].
payCode
;
actionBody
.
channelItemCode
=
produceinfo
[
0
].
channelItemCode
;
actionBody
.
channelItemCode
=
produceinfo
[
0
].
channelItemCode
;
actionBody
.
price
=
produceinfo
[
0
].
price
;
actionBody
.
price
=
produceinfo
[
0
].
price
;
actionBody
.
serviceBusinessCode
=
serviceBusinessCode
return
system
.
getResultSuccess
(
actionBody
);
return
system
.
getResultSuccess
(
actionBody
);
}
else
{
}
else
{
return
system
.
getResult
(
null
,
"getRegProduce fail , please check actionBody"
);
return
system
.
getResult
(
null
,
"getRegProduce fail , please check actionBody"
);
...
...
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