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
d2188fd3
authored
Apr 13, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_inquiry_order_20210311'
parents
1b12633c
68e0eb8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
d2188fd3
...
@@ -574,10 +574,10 @@ class ApiController extends Controller
...
@@ -574,10 +574,10 @@ class ApiController extends Controller
$map
[
'sale_id'
]
=
$request
->
user
->
userId
;
$map
[
'sale_id'
]
=
$request
->
user
->
userId
;
$map
[
'status'
]
=
0
;
$map
[
'status'
]
=
0
;
$com_i
d
=
DB
::
connection
(
'crm'
)
->
table
(
'invoice_com_user'
)
->
where
(
$map
)
->
value
(
'com_id'
);
$com_i
nfo
=
DB
::
connection
(
'crm'
)
->
table
(
'invoice_com_user'
)
->
where
(
$map
)
->
first
(
);
if
(
!
$com_i
d
)
$this
->
Export
(
-
1
,
'当前登录用户未绑定该联系人'
);
if
(
!
$com_i
nfo
)
$this
->
Export
(
-
1
,
'当前登录用户未绑定该联系人'
);
$com_name
=
DB
::
connection
(
'crm'
)
->
table
(
'invoice_company'
)
->
where
(
'id'
,
$com_id
)
->
value
(
'com_name'
);
$com_name
=
DB
::
connection
(
'crm'
)
->
table
(
'invoice_company'
)
->
where
(
'id'
,
$com_i
nfo
->
i
d
)
->
value
(
'com_name'
);
$this
->
Export
(
0
,
''
,
[
'com_id'
=>
$com_id
,
'com_name'
=>
$com_name
,
'user_id'
=>
$user_id
,
'account'
=>
$account
]);
$this
->
Export
(
0
,
''
,
[
'com_id'
=>
$com_id
,
'com_name'
=>
$com_name
,
'user_id'
=>
$user_id
,
'account'
=>
$account
]);
}
}
...
...
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