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
44d3d26d
Commit
44d3d26d
authored
Apr 30, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo order
parent
81cc1a72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+12
-0
No files found.
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
44d3d26d
...
@@ -328,6 +328,7 @@ class OrderInfoService extends ServiceBase {
...
@@ -328,6 +328,7 @@ class OrderInfoService extends ServiceBase {
if
(
!
deliveryData
.
logo_id
)
{
if
(
!
deliveryData
.
logo_id
)
{
return
system
.
getResult
(
null
,
"logo_Id不能为空,20150"
);
return
system
.
getResult
(
null
,
"logo_Id不能为空,20150"
);
}
}
deliveryData
.
logo_id
=
deliveryData
.
logo_id
.
toString
();
if
(
!
deliveryData
.
description
)
{
if
(
!
deliveryData
.
description
)
{
return
system
.
getResult
(
null
,
"描述信息不能为空,20180"
);
return
system
.
getResult
(
null
,
"描述信息不能为空,20180"
);
}
}
...
@@ -347,6 +348,17 @@ class OrderInfoService extends ServiceBase {
...
@@ -347,6 +348,17 @@ class OrderInfoService extends ServiceBase {
if
(
packagingTmResult
.
status
!=
0
)
{
if
(
packagingTmResult
.
status
!=
0
)
{
return
packagingTmResult
;
return
packagingTmResult
;
}
}
pobj
.
actionBody
.
deliveryData
.
itemCode
=
"znlogosjcp"
;
var
sql
=
"SELECT * FROM "
+
"( SELECT sourceOrderNo FROM `c_order_delivery` WHERE deliveryContent -> '$.logo_id' = "
+
pobj
.
actionBody
.
deliveryData
.
logo_id
+
" or deliveryContent -> '$.logo_id' = '"
+
pobj
.
actionBody
.
deliveryData
.
logo_id
+
"' ) AS delivery "
+
"LEFT JOIN "
+
"( SELECT orderNo, orderStatus FROM `c_order_info` WHERE orderStatus = '2' or orderStatus='4' or orderStatus='8') AS orderinfo "
+
" ON delivery.sourceOrderNo = orderinfo.orderNo"
;
var
deliveryList
=
await
this
.
customQuery
(
sql
);
if
(
deliveryList
&&
deliveryList
.
length
>
0
){
return
system
.
getResult
(
null
,
"该品牌已售出,20200"
);
}
var
self
=
this
;
var
self
=
this
;
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
var
orderNo
=
await
self
.
getBusUid
(
"logo"
+
pobj
.
appInfo
.
uapp_id
);
var
orderNo
=
await
self
.
getBusUid
(
"logo"
+
pobj
.
appInfo
.
uapp_id
);
...
...
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