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
af6716cd
Commit
af6716cd
authored
Jan 09, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
86bd6971
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
xggsve-order/app/base/api/impl/op/action.js
+6
-0
xggsve-order/app/base/db/impl/product/oprocessDao.js
+11
-7
xggsve-order/app/base/service/impl/product/oprocessSve.js
+6
-0
No files found.
xggsve-order/app/base/api/impl/op/action.js
View file @
af6716cd
...
...
@@ -17,6 +17,8 @@ class ActionAPI extends APIBase {
this
.
oorderSve
=
system
.
getObject
(
"service.order.oorderSve"
);
this
.
oorderdeliverSve
=
system
.
getObject
(
"service.order.oorderdeliverSve"
);
this
.
oprocessSve
=
system
.
getObject
(
"service.product.oprocessSve"
);
}
/**
* 接口跳转
...
...
@@ -63,6 +65,10 @@ class ActionAPI extends APIBase {
opResult
=
await
this
.
oorderSve
.
addSourceOrder
(
action_body
);
break
;
case
"allProcess"
:
// 查询业务进度
opResult
=
await
this
.
oprocessSve
.
allNames
(
action_body
);
break
;
//******************************************************************** */
// 订单
...
...
xggsve-order/app/base/db/impl/product/oprocessDao.js
View file @
af6716cd
...
...
@@ -5,11 +5,15 @@ class OprocessDao extends Dao {
super
(
Dao
.
getModelName
(
OprocessDao
));
}
async
mapAll
(
attrs
)
{
var
result
=
{};
async
getAll
(
attrs
)
{
attrs
=
attrs
||
"*"
;
var
sql
=
"SELECT "
+
attrs
+
" FROM `o_process`"
;
var
list
=
await
this
.
customQuery
(
sql
);
let
sql
=
"SELECT "
+
attrs
+
" FROM `o_process` ORDER BY `status` ASC"
;
return
await
this
.
customQuery
(
sql
);
}
async
mapAll
(
attrs
)
{
let
result
=
{};
let
list
=
await
this
.
getAll
(
attrs
);
if
(
!
list
||
list
.
length
==
0
)
{
return
result
;
}
...
...
@@ -20,14 +24,14 @@ class OprocessDao extends Dao {
}
async
findMapByIds
(
ids
,
attrs
)
{
var
result
=
{};
let
result
=
{};
if
(
!
ids
||
ids
.
length
==
0
)
{
return
result
;
}
attrs
=
attrs
||
"*"
;
var
sql
=
"SELECT "
+
attrs
+
" FROM `o_process` WHERE id IN (:ids)"
;
let
sql
=
"SELECT "
+
attrs
+
" FROM `o_process` WHERE id IN (:ids)"
;
var
list
=
await
this
.
customQuery
(
sql
,
{
let
list
=
await
this
.
customQuery
(
sql
,
{
ids
:
ids
});
...
...
xggsve-order/app/base/service/impl/product/oprocessSve.js
View file @
af6716cd
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
)
/**
* 订单产品表
*/
...
...
@@ -8,6 +9,10 @@ class OprocessService extends ServiceBase {
super
(
"product"
,
ServiceBase
.
getDaoName
(
OprocessService
));
}
async
allNames
()
{
let
all
=
await
this
.
dao
.
getAll
(
"status, name"
);
return
system
.
getResultSuccess
(
all
);
}
}
module
.
exports
=
OprocessService
;
\ 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