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
6db8641c
authored
Apr 02, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
fdc36d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
6db8641c
...
...
@@ -609,7 +609,11 @@ class ApiController extends Controller
$com_name
=
DB
::
connection
(
'order'
)
->
table
(
'lie_invoice_company'
)
->
where
(
'id'
,
$com_id
)
->
value
(
'com_name'
);
if
(
!
$com_name
)
$this
->
Export
(
-
1
,
'当前公司不存在'
);
$invoice
=
DB
::
connection
(
'order'
)
->
table
(
'lie_taxinfo'
)
->
where
([
'tax_title'
=>
$com_name
,
'inv_type'
=>
$invoice_type
])
->
first
();
$map
=
[];
$map
[
'tax_title'
]
=
$com_name
;
$map
[
'user_id'
]
=
$user_id
;
$map
[
'inv_type'
]
=
$invoice_type
;
$invoice
=
DB
::
connection
(
'order'
)
->
table
(
'lie_taxinfo'
)
->
where
(
$map
)
->
first
();
$tax_info
[
'tax_id'
]
=
isset
(
$invoice
)
?
$invoice
->
tax_id
:
0
;
$tax_info
[
'tax_title'
]
=
isset
(
$invoice
)
?
$invoice
->
tax_title
:
''
;
...
...
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