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
55711554
Commit
55711554
authored
Apr 29, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xggsve-order' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-order
parents
9220be86
700e3709
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletions
+33
-1
xggsve-order/app/base/db/impl/product/oproductDao.js
+14
-0
xggsve-order/app/base/service/impl/order/oorderSve.js
+13
-0
xggsve-order/app/base/service/impl/order/oorderstatusSve.js
+6
-1
No files found.
xggsve-order/app/base/db/impl/product/oproductDao.js
View file @
55711554
...
@@ -62,5 +62,18 @@ class OproductDao extends Dao {
...
@@ -62,5 +62,18 @@ class OproductDao extends Dao {
return
result
;
return
result
;
}
}
async
findMapAll
()
{
let
result
=
{};
let
sql
=
"SELECT * FROM o_product ORDER BY sort ASC"
;
let
list
=
await
this
.
customQuery
(
sql
,
{});
if
(
!
list
||
list
.
length
==
0
)
{
return
result
;
}
for
(
var
item
of
list
)
{
result
[
item
.
id
]
=
item
;
}
return
result
;
}
}
}
module
.
exports
=
OproductDao
;
module
.
exports
=
OproductDao
;
\ No newline at end of file
xggsve-order/app/base/service/impl/order/oorderSve.js
View file @
55711554
...
@@ -447,6 +447,7 @@ class OorderService extends ServiceBase {
...
@@ -447,6 +447,7 @@ class OorderService extends ServiceBase {
}
}
}
}
/**
/**
* 格式化订单产品
* 格式化订单产品
* @param {*} orderList
* @param {*} orderList
...
@@ -463,6 +464,18 @@ class OorderService extends ServiceBase {
...
@@ -463,6 +464,18 @@ class OorderService extends ServiceBase {
for
(
let
item
of
orderList
)
{
for
(
let
item
of
orderList
)
{
item
.
oproduct
=
productMap
[
item
.
product_id
]
||
{}
item
.
oproduct
=
productMap
[
item
.
product_id
]
||
{}
}
}
let
productAllMap
=
await
this
.
oproductDao
.
findMapAll
();
for
(
let
item
of
orderList
)
{
if
(
!
item
.
service_items
){
continue
;
}
let
childProductServiceItem
=
""
;
for
(
let
ele
of
item
.
service_items
.
split
(
','
)){
childProductServiceItem
+=
`
${
productAllMap
[
ele
].
name
}
、`
;
}
item
.
oproduct
.
childProductServiceItem
=
childProductServiceItem
||
""
;
}
}
}
/**
/**
...
...
xggsve-order/app/base/service/impl/order/oorderstatusSve.js
View file @
55711554
...
@@ -142,6 +142,8 @@ class OorderstatusService extends ServiceBase {
...
@@ -142,6 +142,8 @@ class OorderstatusService extends ServiceBase {
}
}
/**
/**
* 业务员完善订单信息
* 业务员完善订单信息
* @param {*} params
* @param {*} params
...
@@ -151,7 +153,10 @@ class OorderstatusService extends ServiceBase {
...
@@ -151,7 +153,10 @@ class OorderstatusService extends ServiceBase {
*/
*/
async
perfectInformation
(
params
)
{
async
perfectInformation
(
params
)
{
//验证参数
//验证参数
this
.
verificationPerfectInformation
(
params
);
let
r
=
this
.
verificationPerfectInformation
(
params
);
if
(
r
&&
r
.
status
!=
0
){
return
r
;
}
let
_oorderinforeg
=
await
this
.
oorderinforegDao
.
findById
(
params
.
_order
.
id
);
let
_oorderinforeg
=
await
this
.
oorderinforegDao
.
findById
(
params
.
_order
.
id
);
if
(
!
_oorderinforeg
)
{
if
(
!
_oorderinforeg
)
{
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