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
905573b2
Commit
905573b2
authored
Jan 07, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
bc71906e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
xgg-web/app/base/service/impl/bmorderSve.js
+20
-18
xgg-web/app/base/wxapplet/impl/chuangfuApplet.js
+0
-0
No files found.
xgg-web/app/base/service/impl/bmorderSve.js
View file @
905573b2
...
...
@@ -6,7 +6,7 @@ class BmorderService extends ServiceBase {
//this.appDao=system.getObject("db.appDao");
this
.
bmuserbizDao
=
system
.
getObject
(
"db.bmuserbizDao"
);
this
.
statusMap
=
{
0
:
"待审核"
,
1
:
"审核通过"
,
2
:
"审核驳回"
,
0
:
"待审核"
,
1
:
"审核通过"
,
2
:
"审核驳回"
,
};
}
...
...
@@ -119,52 +119,54 @@ class BmorderService extends ServiceBase {
let
self
=
this
;
let
res
=
await
this
.
db
.
transaction
(
async
function
(
t
)
{
// 创建订单
await
self
.
dao
.
model
.
update
(
order
,{
where
:{
id
:
order
.
id
}},
t
);
await
self
.
dao
.
model
.
update
(
order
,
{
where
:
{
id
:
order
.
id
}
},
t
);
// 创建用户材料
await
self
.
bmuserbizDao
.
model
.
update
(
userbiz
,{
where
:{
orderId
:
order
.
id
}}
,
t
);
await
self
.
bmuserbizDao
.
model
.
update
(
userbiz
,
{
where
:
{
orderId
:
order
.
id
}
},
t
);
});
return
{
code
:
1
,
msg
:
"success"
,
data
:
res
data
:
res
};
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
error
);
return
system
.
getResult
(
null
,
error
);
}
}
/**
* 查询明细
* @param {*} params
*/
async
queryOrderInfo
(
params
){
if
(
!
params
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误 订单ID 不能为空`
);
async
queryOrderInfo
(
params
)
{
if
(
!
params
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误 订单ID 不能为空`
);
}
try
{
let
order
=
await
this
.
findById
(
params
.
id
);
if
(
!
order
)
{
return
system
.
getResult
(
null
,
`订单不存在`
);
if
(
!
order
)
{
return
system
.
getResult
(
null
,
`订单不存在`
);
}
order
.
dataValues
.
auditStatusName
=
this
.
statusMap
[
order
.
auditStatus
];
order
.
dataValues
.
statusName
=
order
.
dataValues
.
auditStatusName
;
let
child
=
await
this
.
bmuserbizDao
.
findOne
({
orderId
:
params
.
id
});
let
child
=
await
this
.
bmuserbizDao
.
findOne
({
orderId
:
params
.
id
});
order
.
dataValues
.
child
=
child
||
{};
return
{
code
:
1
,
msg
:
"success"
,
orderInfo
:
order
orderInfo
:
order
};
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
error
);
return
system
.
getResult
(
null
,
error
);
}
}
async
setBizs
(
list
)
{
if
(
!
list
||
list
.
length
==
0
)
{
...
...
xgg-web/app/base/wxapplet/impl/chuangfuApplet.js
View file @
905573b2
This diff is collapsed.
Click to expand it.
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