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
e36f2b81
Commit
e36f2b81
authored
Nov 11, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'igirl-channel' of gitlab.gongsibao.com:jiangyong/zhichan into igirl-channel
parents
a00e390f
ef71aebf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
+12
-12
No files found.
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
View file @
e36f2b81
...
@@ -603,7 +603,7 @@ class OrderTmProductService extends ServiceBase {
...
@@ -603,7 +603,7 @@ class OrderTmProductService extends ServiceBase {
var
nclones
=
params
.
nclones
||
null
;
var
nclones
=
params
.
nclones
||
null
;
var
channelOrder
=
params
.
channelOrder
||
null
;
var
channelOrder
=
params
.
channelOrder
||
null
;
var
orderType
=
params
.
orderType
||
"dkxd"
;
//订单类型,zzdd: 自主订单,dkxd: 代客下单
var
orderType
=
params
.
orderType
||
"dkxd"
;
//订单类型,zzdd: 自主订单,dkxd: 代客下单
var
needNo
=
"ztest512021303d1"
;
//
channelOrder.needNo;
var
needNo
=
channelOrder
.
needNo
;
if
(
!
needNo
)
{
if
(
!
needNo
)
{
return
system
.
getResult
(
null
,
"需求编号不能为空"
);
return
system
.
getResult
(
null
,
"需求编号不能为空"
);
}
}
...
@@ -614,25 +614,25 @@ class OrderTmProductService extends ServiceBase {
...
@@ -614,25 +614,25 @@ class OrderTmProductService extends ServiceBase {
if
(
!
order
||
!
order
.
id
){
if
(
!
order
||
!
order
.
id
){
return
system
.
getResult
(
null
,
"未知订单"
);
return
system
.
getResult
(
null
,
"未知订单"
);
}
}
//获取渠道用户数据
//
//
获取渠道用户数据
var
channelUser
=
await
this
.
userDao
.
model
.
findOne
({
//
var channelUser = await this.userDao.model.findOne({
where
:{
channelUserId
:
order
.
channelUserId
,
app_id
:
order
.
app_id
},
//
where:{channelUserId:order.channelUserId,app_id:order.app_id},
raw
:
true
,
//
raw:true,
attributes
:[
"id"
,
"app_id"
,
"channelUserId"
,
"channelUserName"
,
"userMoblie"
,
"nickname"
]
//
attributes:["id","app_id","channelUserId","channelUserName","userMoblie","nickname"]
});
//
});
channelOrder
[
"channelServiceNo"
]
=
order
.
channelServiceNo
;
channelOrder
[
"channelServiceNo"
]
=
order
.
channelServiceNo
;
channelOrder
[
"payTime"
]
=
order
.
payTime
;
channelOrder
[
"payTime"
]
=
order
.
payTime
;
if
(
channelUser
&&
channelUser
.
userMobile
){
//
if(channelUser && channelUser.userMobile){
channelUser
[
"channelUserMobile"
]
=
channelUser
.
userMobile
;
//
channelUser["channelUserMobile"]=channelUser.userMobile;
}
//
}
if
(
!
nclones
||
nclones
.
length
<
1
)
{
if
(
!
nclones
||
nclones
.
length
<
1
)
{
return
system
.
getResult
(
null
,
"尼斯大类不能为空"
);
return
system
.
getResult
(
null
,
"尼斯大类不能为空"
);
}
}
if
(
!
itemCode
)
{
if
(
!
itemCode
)
{
return
system
.
getResult
(
null
,
"itemCode参数错误"
);
return
system
.
getResult
(
null
,
"itemCode参数错误"
);
}
}
itemCode
=
"zzsbzc"
;
//测试
//
itemCode="zzsbzc";//测试
var
productItem
=
await
this
.
appproductDao
.
findOneByCode
(
itemCode
,
1
);
//获取产品
var
productItem
=
await
this
.
appproductDao
.
findOneByCode
(
itemCode
,
user
.
app_id
);
//获取产品
if
(
!
productItem
)
{
if
(
!
productItem
)
{
return
system
.
getResult
(
null
,
"未知的产品"
);
return
system
.
getResult
(
null
,
"未知的产品"
);
}
}
...
...
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