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
8fc483a8
Commit
8fc483a8
authored
Jan 08, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
2bf175d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
+54
-2
xggsve-order/app/base/db/impl/product/oprocessDao.js
+11
-0
xggsve-order/app/base/service/impl/order/oorderSve.js
+43
-2
No files found.
xggsve-order/app/base/db/impl/product/oprocessDao.js
View file @
8fc483a8
...
...
@@ -5,5 +5,15 @@ class OprocessDao extends Dao {
super
(
Dao
.
getModelName
(
OprocessDao
));
}
async
findMapByIds
(
ids
)
{
var
result
=
{};
if
(
!
ids
||
ids
.
length
==
0
)
{
return
result
;
}
var
sql
=
"SELECT "
;
}
}
module
.
exports
=
OprocessDao
;
\ No newline at end of file
xggsve-order/app/base/service/impl/order/oorderSve.js
View file @
8fc483a8
...
...
@@ -26,7 +26,7 @@ class OorderService extends ServiceBase {
async
addSourceOrder
(
params
)
{
// 整理参数
let
order
=
{
merchantId
:
""
,
merchantId
:
""
,
channelOrderNo
:
""
,
busi_type
:
1
,
busi_id
:
""
,
...
...
@@ -38,8 +38,20 @@ class OorderService extends ServiceBase {
order
.
notes
=
this
.
trim
(
params
.
notes
);
order
.
contactMobile
=
this
.
trim
(
params
.
contactMobile
);
// 验证sourceId
// 验证来源
let
source
=
await
this
.
osourceDao
.
findById
(
order
.
sourceId
);
if
(
!
source
)
{
return
system
.
getResult
(
null
,
"来源错误"
);
}
// 验证产品
let
product
=
await
this
.
oproductDao
.
findById
(
order
.
productId
);
if
(
!
product
)
{
return
system
.
getResult
(
null
,
"产品错误"
);
}
// 获取产品状态
await
this
.
getProductProcess
();
// 查询产品订单状态
...
...
@@ -66,6 +78,34 @@ class OorderService extends ServiceBase {
// 调用状态func(order, nextObj, params)
}
async
getProductProcessList
(
params
)
{
var
options
=
{};
options
.
where
=
params
;
options
.
raw
=
true
;
options
.
order
=
[[
'sort'
,
'ASC'
]];
var
oplist
=
await
this
.
oproductprocessDao
.
model
.
findAll
(
options
);
if
(
!
oplist
)
{
return
[];
}
let
processIds
=
[];
for
(
var
item
of
oplist
)
{
processIds
.
push
(
item
.
processId
);
}
var
optionsProcess
=
{};
optionsProcess
.
where
=
{
};
optionsProcess
.
raw
=
true
;
optionsProcess
.
order
=
[[
'sort'
,
'ASC'
]];
await
this
.
oprocessDao
.
model
.
findAll
();
}
}
module
.
exports
=
OorderService
;
\ No newline at end of file
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