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
f9c2975c
Commit
f9c2975c
authored
Aug 21, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数组分页
parent
57b09f4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
Broker.php
application/index/controller/Broker.php
+6
-8
No files found.
application/index/controller/Broker.php
View file @
f9c2975c
...
@@ -443,17 +443,16 @@ class Broker extends Basic
...
@@ -443,17 +443,16 @@ class Broker extends Basic
unset
(
$list
);
unset
(
$list
);
if
(
isset
(
$key_array
))
{
if
(
isset
(
$key_array
))
{
$total
=
count
(
$key_array
);
$total
=
count
(
$key_array
);
$max
=
400
;
$size
=
300
;;
$page_total
=
ceil
(
$total
/
$size
);
$m_bank
=
new
AAgentsBank
();
$m_bank
=
new
AAgentsBank
();
$bank_field
=
'agent_id,account,bank,card_no,id_card'
;
$bank_field
=
'agent_id,account,bank,card_no,id_card'
;
for
(
$i
=
0
;
$i
<
$total
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$page_total
;
$i
++
)
{
$id_string
[]
=
$key_array
[
$i
];
$id_array
=
array_slice
(
$key_array
,
$i
*
$size
,
$size
);
if
(
$i
==
$max
)
{
$bank_data
=
$m_bank
->
getDataAll
(
$bank_field
,
[
'agent_id'
=>
[
'in'
,
$id_array
],
'is_del'
=>
0
]);
$max
+=
400
;
$bank_data
=
$m_bank
->
getDataAll
(
$bank_field
,
[
'agent_id'
=>
[
'in'
,
$id_string
],
'is_del'
=>
0
]);
foreach
(
$bank_data
as
$v2
)
{
foreach
(
$bank_data
as
$v2
)
{
$key
=
$v2
[
'agent_id'
];
$key
=
$v2
[
'agent_id'
];
$excel_data
[
$key
][
'id_card'
]
=
$v2
[
'id_card'
];
$excel_data
[
$key
][
'id_card'
]
=
"
\t
"
.
$v2
[
'id_card'
];
$excel_data
[
$key
][
'account'
]
=
$v2
[
'account'
];
$excel_data
[
$key
][
'account'
]
=
$v2
[
'account'
];
$excel_data
[
$key
][
'card_no'
]
=
$v2
[
'card_no'
];
$excel_data
[
$key
][
'card_no'
]
=
$v2
[
'card_no'
];
$excel_data
[
$key
][
'bank'
]
=
$v2
[
'bank'
];
$excel_data
[
$key
][
'bank'
]
=
$v2
[
'bank'
];
...
@@ -462,7 +461,6 @@ class Broker extends Basic
...
@@ -462,7 +461,6 @@ class Broker extends Basic
unset
(
$bank_data
);
unset
(
$bank_data
);
}
}
}
}
}
$export
=
new
ExportExcelUntil
();
$export
=
new
ExportExcelUntil
();
$title
=
[
'注册时间'
,
'经纪人ID'
,
'账号类型'
,
'账号城市'
,
'所在部门'
,
'所在门店'
,
'姓名'
,
'手机号'
,
'身份证号码'
,
'户名'
,
'卡号'
,
'开户行'
];
$title
=
[
'注册时间'
,
'经纪人ID'
,
'账号类型'
,
'账号城市'
,
'所在部门'
,
'所在门店'
,
'姓名'
,
'手机号'
,
'身份证号码'
,
'户名'
,
'卡号'
,
'开户行'
];
$export
->
exportTable
(
'经纪人信息'
,
$excel_data
,
11
,
'经纪人信息'
,
$title
);
$export
->
exportTable
(
'经纪人信息'
,
$excel_data
,
11
,
'经纪人信息'
,
$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