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
1d1c0300
authored
Jun 12, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整导出
parent
b90cf0c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
app/Model/OrderModel.php
app/Model/OrderModel.php
View file @
1d1c0300
...
...
@@ -326,18 +326,9 @@ class OrderModel extends Model
$tmp
[
$i
][
'order_id'
]
=
$order
[
$i
][
'order_id'
];
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
if
(
$order
[
$i
][
'order_goods_type'
]
==
2
)
{
$tmp
[
$i
][
'sale_type'
]
=
$order
[
$i
][
'sale_type'
]
==
1
?
'现卖'
:
'预售'
;
$tmp
[
$i
][
'business_type'
]
=
$order
[
$i
][
'business_type'
]
?
Config
(
'params.business_type'
)[
$order
[
$i
][
'business_type'
]]
:
'正常订单'
;
// 自营其他业务类型
}
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
// $tmp[$i]['is_new'] = $order[$i]['is_new'] == 1 ? '是' : '否'; // 是否为新用户
if
(
$order
[
$i
][
'order_goods_type'
]
==
1
)
{
$tmp
[
$i
][
'is_new_order'
]
=
$order
[
$i
][
'is_new_order'
]
==
1
?
'是'
:
'否'
;
// 是否为新订单
}
$tmp
[
$i
][
'consignee'
]
=
isset
(
$order
[
$i
][
'consignee'
])
?
$order
[
$i
][
'consignee'
]
:
''
;
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'create_time_sec'
]
=
date
(
'H:i:s'
,
$order
[
$i
][
'create_time'
]);
...
...
@@ -382,7 +373,7 @@ class OrderModel extends Model
if
(
$i
>
0
&&
$order
[
$i
][
'order_id'
]
==
$order
[
$i
-
1
][
'order_id'
])
{
$tmp
[
$i
][
'adtags'
]
=
''
;
$tmp
[
$i
][
'client_source'
]
=
''
;
$tmp
[
$i
][
'cancel_reason'
]
=
''
;
$tmp
[
$i
][
'cancel_reason'
]
=
$tmp
[
$i
][
'send_remark'
]
=
''
;
}
else
{
$tmp
[
$i
][
'adtags'
]
=
$order
[
$i
][
'order_source'
];
...
...
@@ -393,6 +384,13 @@ class OrderModel extends Model
$tmp
[
$i
][
'is_test'
]
=
$order
[
$i
][
'is_test'
]
==
1
?
'是'
:
'否'
;
if
(
$order
[
$i
][
'order_goods_type'
]
==
2
)
{
$tmp
[
$i
][
'sale_type'
]
=
$order
[
$i
][
'sale_type'
]
==
1
?
'现卖'
:
'预售'
;
$tmp
[
$i
][
'business_type'
]
=
$order
[
$i
][
'business_type'
]
?
Config
(
'params.business_type'
)[
$order
[
$i
][
'business_type'
]]
:
'正常订单'
;
// 自营其他业务类型
}
else
{
$tmp
[
$i
][
'is_new_order'
]
=
$order
[
$i
][
'is_new_order'
]
==
1
?
'是'
:
'否'
;
// 是否为新订单
}
unset
(
$sales
);
}
...
...
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