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
6ecbb3c4
authored
Dec 13, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_export_20191209'
parents
6b1b6ed2
fea9be4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
app/Http/Controllers/OrderController.php
app/Model/OrderModel.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
6ecbb3c4
...
@@ -170,7 +170,7 @@ function getGoodsName($goods_id)
...
@@ -170,7 +170,7 @@ function getGoodsName($goods_id)
}
}
// 获取订单来源
// 获取订单来源
function
getOrderSource
(
$order_id
,
$order_type
=
1
)
function
getOrderSource
(
$order_id
,
$order_type
=
1
,
$order_goods_type
=
1
)
{
{
if
(
$order_type
==
1
)
{
if
(
$order_type
==
1
)
{
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_extend'
)
->
where
(
'order_id'
,
$order_id
)
->
select
(
'order_type'
)
->
first
();
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_extend'
)
->
where
(
'order_id'
,
$order_id
)
->
select
(
'order_type'
)
->
first
();
...
@@ -202,7 +202,7 @@ function getOrderSource($order_id, $order_type=1)
...
@@ -202,7 +202,7 @@ function getOrderSource($order_id, $order_type=1)
}
else
if
(
$order_type
==
3
)
{
}
else
if
(
$order_type
==
3
)
{
return
'京东'
;
return
'京东'
;
}
else
if
(
$order_type
==
4
)
{
}
else
if
(
$order_type
==
4
)
{
return
'象牙宝'
;
return
$order_goods_type
==
1
?
'开放平台'
:
'象牙宝'
;
}
}
return
false
;
return
false
;
...
...
app/Model/OrderModel.php
View file @
6ecbb3c4
...
@@ -365,7 +365,7 @@ class OrderModel extends Model
...
@@ -365,7 +365,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$order
[
$i
][
'create_time'
]);
$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'
]);
$tmp
[
$i
][
'create_time_sec'
]
=
date
(
'H:i:s'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'com_name'
]
=
!
empty
(
$order
[
$i
][
'tax_title'
])
?
$order
[
$i
][
'tax_title'
]
:
$current_com_name
;
$tmp
[
$i
][
'com_name'
]
=
!
empty
(
$order
[
$i
][
'tax_title'
])
?
$order
[
$i
][
'tax_title'
]
:
$current_com_name
;
$tmp
[
$i
][
'items_source'
]
=
$this
->
getOrderSource
(
$order
[
$i
][
'order_id'
],
$order
[
$i
][
'order_type'
],
$order
[
$i
][
'extend_order_type'
],
$order
[
$i
][
'order_source'
]);
$tmp
[
$i
][
'items_source'
]
=
$this
->
getOrderSource
(
$order
[
$i
][
'order_id'
],
$order
[
$i
][
'order_type'
],
$order
[
$i
][
'
order_goods_type'
],
$order
[
$i
][
'
extend_order_type'
],
$order
[
$i
][
'order_source'
]);
$tmp
[
$i
][
'goods_id'
]
=
$order
[
$i
][
'goods_id'
];
$tmp
[
$i
][
'goods_id'
]
=
$order
[
$i
][
'goods_id'
];
...
@@ -539,7 +539,7 @@ class OrderModel extends Model
...
@@ -539,7 +539,7 @@ class OrderModel extends Model
}
}
// 获取订单来源
// 获取订单来源
public
function
getOrderSource
(
$order_id
,
$order_type
=
1
,
$extend_order_type
=
0
,
$order_source
=
''
)
public
function
getOrderSource
(
$order_id
,
$order_type
=
1
,
$
order_goods_type
=
1
,
$
extend_order_type
=
0
,
$order_source
=
''
)
{
{
if
(
$order_type
==
1
)
{
if
(
$order_type
==
1
)
{
if
(
$extend_order_type
)
return
'后台'
;
if
(
$extend_order_type
)
return
'后台'
;
...
@@ -560,7 +560,7 @@ class OrderModel extends Model
...
@@ -560,7 +560,7 @@ class OrderModel extends Model
}
else
if
(
$order_type
==
3
)
{
}
else
if
(
$order_type
==
3
)
{
return
'京东'
;
return
'京东'
;
}
else
if
(
$order_type
==
4
)
{
}
else
if
(
$order_type
==
4
)
{
return
'象牙宝'
;
return
$order_goods_type
==
1
?
'开放平台'
:
'象牙宝'
;
}
}
return
false
;
return
false
;
...
...
resources/views/selfOrder/content.blade.php
View file @
6ecbb3c4
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getSalesName
(
$v
[
'sale_id'
]));
?>
</td>
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getSalesName
(
$v
[
'sale_id'
]));
?>
</td>
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
],
$v
[
'order_type'
]);
?>
</td>
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
],
$v
[
'order_type'
]
,
2
);
?>
</td>
<td
class=
"show-list"
class=
"show-list"
>
<td
class=
"show-list"
class=
"show-list"
>
<?php
<?php
...
...
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