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
3c1b87e0
Commit
3c1b87e0
authored
Jan 08, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product
parent
2141605f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
center-app/app/base/api/impl/action/opProduct.js
+1
-1
center-app/app/base/service/impl/dbproduct/productSve.js
+5
-5
No files found.
center-app/app/base/api/impl/action/opProduct.js
View file @
3c1b87e0
...
...
@@ -50,7 +50,7 @@ class OpProductAPI extends APIBase {
opResult
=
await
this
.
productSve
.
findByTypeOneCode
(
action_body
);
break
;
case
"getProductDetailByCode"
:
//获取产品详情
opResult
=
await
this
.
productSve
.
getProductDetailByCode
(
action_body
.
i
temCode
,
pobj
.
uapp_id
);
opResult
=
await
this
.
productSve
.
getProductDetailByCode
(
action_body
.
channelI
temCode
,
pobj
.
uapp_id
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-app/app/base/service/impl/dbproduct/productSve.js
View file @
3c1b87e0
...
...
@@ -36,17 +36,17 @@ class ProductService extends ServiceBase {
}
/**
* 获取产品详情2
* @param {*}
pcode
产品码
* @param {*} appid 渠道id
* @param {*}
channelItemCode 渠道
产品码
* @param {*}
u
appid 渠道id
*/
async
getProductDetailByCode
(
pc
ode
,
uappid
){
if
(
!
pc
ode
){
async
getProductDetailByCode
(
channelItemC
ode
,
uappid
){
if
(
!
channelItemC
ode
){
return
system
.
getResult
(
null
,
"产品编码有误"
);
}
if
(
!
uappid
){
return
system
.
getResult
(
null
,
"渠道编码有误"
);
}
var
sql
=
"select * from v_product where uapp_id="
+
uappid
+
" and
item_code='"
+
pc
ode
+
"'"
;
var
sql
=
"select * from v_product where uapp_id="
+
uappid
+
" and
channel_item_code='"
+
channelItemC
ode
+
"'"
;
var
tmpResult
=
await
this
.
customQuery
(
sql
);
if
(
tmpResult
&&
tmpResult
.
length
>
0
){
for
(
var
i
=
0
;
i
<
tmpResult
.
length
;
i
++
){
...
...
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