Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
702f372b
Commit
702f372b
authored
Oct 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出意向金预警
parent
5299f449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
PayLog.php
application/index/controller/PayLog.php
+13
-4
No files found.
application/index/controller/PayLog.php
View file @
702f372b
...
...
@@ -30,7 +30,7 @@ class PayLog extends Basic
*/
public
function
intentionsWarning
()
{
if
(
!
$this
->
request
->
isAjax
())
{
if
(
!
$this
->
request
->
isAjax
()
&&
empty
(
$this
->
params
[
'excel'
])
)
{
return
view
(
'intentions_warning'
);
}
...
...
@@ -87,9 +87,18 @@ class PayLog extends Basic
try
{
$order
=
new
OPayLogModel
();
$field
=
'a.create_time,a.id,a.order_id,a.bargain_id,a.income_time,e.name,a.money as real_money'
;
$list
=
$order
->
getPayLogOrderListLimit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$order
->
getPayLogOrderListLimitTotal
(
$where
);
$data
[
'list'
]
=
$list
;
if
(
empty
(
$this
->
params
[
'excel'
]))
{
$list
=
$order
->
getPayLogOrderListLimit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$order
->
getPayLogOrderListLimitTotal
(
$where
);
$data
[
'list'
]
=
$list
;
}
else
{
$list
=
$order
->
getPayLogOrderListLimit
(
1
,
40000
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$export
=
new
ExportExcelUntil
();
$title
=
[
'提交时间'
,
'收款ID'
,
'带看ID'
,
'成交报告ID'
,
'入账日期'
,
'提交人'
,
'收款金额(元)'
];
return
$export
->
exportTable
(
'收款记录'
,
$list
,
6
,
'收款记录'
,
$title
);
}
}
catch
(
\Exception
$e
)
{
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
...
...
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