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
4078273e
Commit
4078273e
authored
Apr 16, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
3f4b4da8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
+25
-1
center-app/app/base/api/impl/action/opProduct.js
+1
-1
center-app/app/base/service/impl/dbproduct/producttypeSve.js
+24
-0
No files found.
center-app/app/base/api/impl/action/opProduct.js
View file @
4078273e
...
@@ -38,7 +38,7 @@ class OpProductAPI extends APIBase {
...
@@ -38,7 +38,7 @@ class OpProductAPI extends APIBase {
case
"getaliicProduce"
:
//阿里工商获取产品信息
case
"getaliicProduce"
:
//阿里工商获取产品信息
opResult
=
await
this
.
productSve
.
getaliicProduce
(
pobj
.
actionBody
);
opResult
=
await
this
.
productSve
.
getaliicProduce
(
pobj
.
actionBody
);
break
;
break
;
case
"getaliicProduce"
:
//阿里icp获取产品信息
case
"getaliic
p
Produce"
:
//阿里icp获取产品信息
opResult
=
await
this
.
productSve
.
getaliicpProduce
(
pobj
.
actionBody
);
opResult
=
await
this
.
productSve
.
getaliicpProduce
(
pobj
.
actionBody
);
break
;
break
;
case
"getProductTypeInfo"
:
//阿里工商获取需求類型
case
"getProductTypeInfo"
:
//阿里工商获取需求類型
...
...
center-app/app/base/service/impl/dbproduct/producttypeSve.js
View file @
4078273e
...
@@ -17,5 +17,29 @@ class ProductTypeService extends ServiceBase {
...
@@ -17,5 +17,29 @@ class ProductTypeService extends ServiceBase {
var
producttypeinfo
=
await
this
.
findOne
({
"channel_type_code"
:
actionBody
.
type
,
"uapp_id"
:
appInfo
.
uapp_id
});
var
producttypeinfo
=
await
this
.
findOne
({
"channel_type_code"
:
actionBody
.
type
,
"uapp_id"
:
appInfo
.
uapp_id
});
return
system
.
getResultSuccess
(
producttypeinfo
);
return
system
.
getResultSuccess
(
producttypeinfo
);
}
}
async
getProductTypeInfo
(
actionBody
,
appInfo
){
if
(
!
actionBody
.
type
){
return
system
.
getResult
(
null
,
"type item is data empty !"
);
}
if
(
!
appInfo
){
return
system
.
getResult
(
null
,
"appInfo item is data empty !"
);
}
var
producttypeinfo
=
await
this
.
findOne
({
"channel_type_code"
:
actionBody
.
type
,
"uapp_id"
:
appInfo
.
uapp_id
});
return
system
.
getResultSuccess
(
producttypeinfo
);
}
async
getIcpProductTypeInfo
(
actionBody
,
appInfo
){
if
(
!
actionBody
.
type
){
return
system
.
getResult
(
null
,
"channelCode item is data empty !"
);
}
if
(
!
appInfo
){
return
system
.
getResult
(
null
,
"appInfo item is data empty !"
);
}
var
var
producttypeinfo
=
await
this
.
findOne
({
"channel_type_code"
:
actionBody
.
type
,
"uapp_id"
:
appInfo
.
uapp_id
});
return
system
.
getResultSuccess
(
producttypeinfo
);
}
}
}
module
.
exports
=
ProductTypeService
;
module
.
exports
=
ProductTypeService
;
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