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
16ea2aaf
authored
Jul 07, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_com_name_20210706'
parents
20307cf6
49f19448
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/content.blade.php
app/Http/Controllers/OrderController.php
View file @
16ea2aaf
...
...
@@ -108,16 +108,15 @@ function getCompanyName($order_id, $user_id)
$tax_title
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_invoice'
)
->
where
(
'order_id'
,
$order_id
)
->
where
(
'inv_type'
,
'<>'
,
1
)
->
value
(
'tax_title'
);
if
(
$tax_title
)
return
$tax_title
;
$contract_com_name
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_extend'
)
->
where
(
'order_id'
,
$order_id
)
->
value
(
'contract_com_name'
);
if
(
$contract_com_name
)
return
$contract_com_name
;
//
$contract_com_name = DB::connection('order')->table('lie_order_extend')->where('order_id', $order_id)->value('contract_com_name');
//
if ($contract_com_name) return $contract_com_name;
return
false
;
// $company = DB::connection('order')->table('lie_user_company')->where(['user_id' => $user_id])->select('com_name')->first();
// return false;
// if (!$company) return false;
$com_name
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_company'
)
->
where
(
'user_id'
,
$user_id
)
->
value
(
'com_name'
);
if
(
$com_name
)
return
$com_name
;
// return $company->com_nam
e;
return
fals
e
;
}
// 获取操作人名称
...
...
resources/views/detail/content.blade.php
View file @
16ea2aaf
...
...
@@ -40,8 +40,8 @@
// 公司名称
if
(
isset
(
$order_invoice_info
[
'tax_title'
])
&&
$order_invoice_info
[
'tax_title'
])
$contract_com_name
=
$order_invoice_info
[
'tax_title'
];
//
else if (isset($company_info['com_name']) && $company_info['com_name']) /* 取消个人公司信息 20210706 */
//
$contract_com_name = $company_info['com_name'];
else
if
(
isset
(
$company_info
[
'com_name'
])
&&
$company_info
[
'com_name'
])
/* 取消个人公司信息 20210706 */
$contract_com_name
=
$company_info
[
'com_name'
];
else
if
(
isset
(
$user_info
))
$contract_com_name
=
isset
(
$user_info
[
'mobile'
])
?
$user_info
[
'mobile'
]
:
$user_info
[
'email'
];
...
...
@@ -51,8 +51,8 @@
// 公司地址
if
(
isset
(
$order_invoice_info
[
'company_address'
])
&&
$order_invoice_info
[
'company_address'
])
$contract_com_addr
=
$order_invoice_info
[
'company_address'
];
//
else if (isset($company_info['com_address']) && $company_info['com_address'])
//
$contract_com_addr = $company_info['com_address'];
else
if
(
isset
(
$company_info
[
'com_address'
])
&&
$company_info
[
'com_address'
])
$contract_com_addr
=
$company_info
[
'com_address'
];
else
$contract_com_addr
=
$order_address_info
[
'province_val'
]
.
$order_address_info
[
'city_val'
]
.
$order_address_info
[
'district_val'
]
.
$order_address_info
[
'address'
];
...
...
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