Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bbec3030
authored
Dec 11, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整导出关联
parent
a4d8aec0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Model/OrderModel.php
app/Model/OrderModel.php
View file @
bbec3030
...
...
@@ -29,14 +29,14 @@ class OrderModel extends Model
$list
=
$this
->
from
(
'lie_order as o'
)
->
join
(
'lie_order_items as it'
,
'o.order_id'
,
'='
,
'it.order_id'
)
->
leftJoin
(
'lie_order_invoice as i'
,
'o.order_id'
,
'='
,
'i.order_id'
)
->
j
oin
(
'lie_order_extend as oe'
,
'o.order_id'
,
'='
,
'oe.order_id'
)
->
leftJ
oin
(
'lie_order_extend as oe'
,
'o.order_id'
,
'='
,
'oe.order_id'
)
// ->leftJoin('lie_order_address as a', function($join) {
// $join->on('o.order_id', '=', 'a.order_id')->where('a.address_type', '=', 1);
// })
// ->leftJoin('lie_order_shipping as s', function($join) {
// $join->on('o.order_id', '=', 's.order_id')->where('s.shipping_type', '=', 1);
// })
->
j
oin
(
'lie_user_main as u'
,
'o.user_id'
,
'='
,
'u.user_id'
)
->
leftJ
oin
(
'lie_user_main as u'
,
'o.user_id'
,
'='
,
'u.user_id'
)
// ->leftJoin('lie_user_company as c', 'o.user_id', '=', 'c.user_id')
->
where
(
function
(
$query
)
use
(
$map
)
{
// 查询类型
...
...
@@ -407,7 +407,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'order_type'
]
=
!
empty
(
$order
[
$i
][
'order_pay_type'
])
?
Config
(
'params.order_pay_type'
)[
$order
[
$i
][
'order_pay_type'
]]
:
'未知'
;
$tmp
[
$i
][
'order_status'
]
=
!
empty
(
$order
[
$i
][
'status'
])
?
Config
(
'params.order_status'
)[
$order
[
$i
][
'status'
]]
:
'未知'
;
$tmp
[
$i
][
'shipping_status'
]
=
isset
(
$current_order_shipping
[
'status'
])
?
$shipping_status
[
$current_order_shipping
[
'status'
]]
:
'无发货信息'
;
// 发货状态
$tmp
[
$i
][
'shipping_status'
]
=
!
empty
(
$current_order_shipping
[
'status'
])
?
$shipping_status
[
$current_order_shipping
[
'status'
]]
:
'无发货信息'
;
// 发货状态
//查询发货地址的省市区
if
(
$current_order_addr
)
{
...
...
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