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
0c92c857
Commit
0c92c857
authored
Jun 07, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
160ea3cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+15
-14
No files found.
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
0c92c857
...
@@ -86,7 +86,8 @@ class OrderInfoService extends ServiceBase {
...
@@ -86,7 +86,8 @@ class OrderInfoService extends ServiceBase {
channelItemName
:
actionBody
.
product_info
.
channel_item_name
,
// 渠道产品名称
channelItemName
:
actionBody
.
product_info
.
channel_item_name
,
// 渠道产品名称
channelItemAppendName
:
actionBody
.
channelItemAppendName
||
""
,
//服务商产品附加名称
channelItemAppendName
:
actionBody
.
channelItemAppendName
||
""
,
//服务商产品附加名称
serviceItemCode
:
actionBody
.
product_info
.
service_item_code
,
// 服务商产品编码
serviceItemCode
:
actionBody
.
product_info
.
service_item_code
,
// 服务商产品编码
payAfterJumpUrl
:
actionBody
.
product_info
.
pay_after_jump_url
,
payAfterJumpH5Url
:
actionBody
.
product_info
.
pay_after_jump_h5url
||
""
,
payAfterJumpPcUrl
:
actionBody
.
product_info
.
pay_after_jump_pcurl
||
""
,
picUrl
:
actionBody
.
product_info
.
pic_url
,
// 产品图片地址
picUrl
:
actionBody
.
product_info
.
pic_url
,
// 产品图片地址
price
:
actionBody
.
product_info
.
price_item
.
price
,
//定价
price
:
actionBody
.
product_info
.
price_item
.
price
,
//定价
priceDesc
:
actionBody
.
product_info
.
price_item
.
price_desc
,
//定价描述
priceDesc
:
actionBody
.
product_info
.
price_item
.
price_desc
,
//定价描述
...
@@ -319,7 +320,7 @@ class OrderInfoService extends ServiceBase {
...
@@ -319,7 +320,7 @@ class OrderInfoService extends ServiceBase {
});
});
});
});
}
}
async
packagingLogoDeliveryData
(
pobj
,
actionBody
)
{
//重新组装Logo交付信息
async
packagingLogoDeliveryData
(
pobj
,
actionBody
)
{
//重新组装Logo交付信息
if
(
!
actionBody
.
deliveryData
||
Object
.
keys
(
actionBody
.
deliveryData
).
length
==
0
)
{
if
(
!
actionBody
.
deliveryData
||
Object
.
keys
(
actionBody
.
deliveryData
).
length
==
0
)
{
return
system
.
getResult
(
null
,
"交付数据不能为空,20135"
);
return
system
.
getResult
(
null
,
"交付数据不能为空,20135"
);
...
@@ -348,21 +349,21 @@ class OrderInfoService extends ServiceBase {
...
@@ -348,21 +349,21 @@ class OrderInfoService extends ServiceBase {
if
(
packagingTmResult
.
status
!=
0
)
{
if
(
packagingTmResult
.
status
!=
0
)
{
return
packagingTmResult
;
return
packagingTmResult
;
}
}
if
(
pobj
.
actionBody
.
deliveryData
.
color_description
)
{
if
(
pobj
.
actionBody
.
deliveryData
.
color_description
)
{
pobj
.
actionBody
.
deliveryData
.
color_description
=
pobj
.
actionBody
.
deliveryData
.
color_description
.
replace
(
/
\"
/g
,
"
\\
\"
"
);;
pobj
.
actionBody
.
deliveryData
.
color_description
=
pobj
.
actionBody
.
deliveryData
.
color_description
.
replace
(
/
\"
/g
,
"
\\
\"
"
);;
}
}
if
(
pobj
.
actionBody
.
deliveryData
.
font_description
)
{
if
(
pobj
.
actionBody
.
deliveryData
.
font_description
)
{
pobj
.
actionBody
.
deliveryData
.
font_description
=
pobj
.
actionBody
.
deliveryData
.
font_description
.
replace
(
/
\"
/g
,
"
\\
\"
"
);;
pobj
.
actionBody
.
deliveryData
.
font_description
=
pobj
.
actionBody
.
deliveryData
.
font_description
.
replace
(
/
\"
/g
,
"
\\
\"
"
);;
}
}
pobj
.
actionBody
.
deliveryData
.
itemCode
=
"znlogosjcp"
;
pobj
.
actionBody
.
deliveryData
.
itemCode
=
"znlogosjcp"
;
var
sql
=
"SELECT * FROM "
+
var
sql
=
"SELECT * FROM "
+
"( SELECT sourceOrderNo FROM `c_order_delivery` WHERE deliveryContent -> '$.logo_id' = "
+
pobj
.
actionBody
.
deliveryData
.
logo_id
+
"( 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 "
+
" or deliveryContent -> '$.logo_id' = '"
+
pobj
.
actionBody
.
deliveryData
.
logo_id
+
"' ) AS delivery "
+
"LEFT JOIN "
+
"LEFT JOIN "
+
"( SELECT orderNo, orderStatus FROM `c_order_info` WHERE orderStatus = '2' or orderStatus='4' or orderStatus='8') AS orderinfo "
+
"( SELECT orderNo, orderStatus FROM `c_order_info` WHERE orderStatus = '2' or orderStatus='4' or orderStatus='8') AS orderinfo "
+
" ON delivery.sourceOrderNo = orderinfo.orderNo"
;
" ON delivery.sourceOrderNo = orderinfo.orderNo"
;
var
deliveryList
=
await
this
.
customQuery
(
sql
);
var
deliveryList
=
await
this
.
customQuery
(
sql
);
if
(
deliveryList
&&
deliveryList
.
length
>
0
)
{
if
(
deliveryList
&&
deliveryList
.
length
>
0
)
{
return
system
.
getResult
(
null
,
"该品牌已售出,20200"
);
return
system
.
getResult
(
null
,
"该品牌已售出,20200"
);
}
}
var
self
=
this
;
var
self
=
this
;
...
...
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