Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
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
HTML5-李恒逸
sunac-quanmin
Commits
329c0ff3
Commit
329c0ff3
authored
Jun 17, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 前端状态跟踪bug
parent
d676e9d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
report.php
html/application/controllers/admin/report.php
+2
-4
customer_building_model.php
html/application/models/customer_building_model.php
+2
-2
index_info.php
html/application/views/admin/report/index_info.php
+5
-0
report_again.php
html/application/views/admin/report/report_again.php
+4
-0
No files found.
html/application/controllers/admin/report.php
View file @
329c0ff3
...
...
@@ -118,7 +118,6 @@ class Report extends CI_Controller
$this
->
data
[
'count'
]
=
$count
;
$customers
=
$this
->
customer_building
->
get_report_list
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
// echo '<pre>';
// print_r($customers);die;
if
(
$customers
)
{
...
...
@@ -139,14 +138,13 @@ class Report extends CI_Controller
$this
->
data
[
'recommend_status'
]
=
$this
->
_status
;
//获取分页
$this
->
data
[
'num_link'
]
=
set_page_new
(
$data_arr
,
$this
,
site_url
(
'admin/report/index'
),
$count
,
self
::
PAGE_SIZE
,
4
,
''
,
true
);
$this
->
data
[
'num_start'
]
=
(
$page_no
-
1
)
*
self
::
PAGE_SIZE
+
1
;
$this
->
data
[
'managers'
]
=
$this
->
manager
->
get_manager_name
();
$this
->
load
->
view
(
'admin/report/index_info'
,
$this
->
data
);
}
...
...
@@ -1251,7 +1249,7 @@ class Report extends CI_Controller
$count
=
$this
->
customer_building
->
get_report_count
(
$where
);
$this
->
data
[
'count'
]
=
$count
;
$customers
=
$this
->
customer_building
->
get_report_list
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
//
$customers = $this->customer_building->get_report_list($where, $page_no, self::PAGE_SIZE);
$customers
=
$this
->
customer_building
->
get_reportagain_list
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
$this
->
data
[
'customers'
]
=
$customers
;
...
...
html/application/models/customer_building_model.php
View file @
329c0ff3
...
...
@@ -138,7 +138,7 @@ class Customer_building_model extends MY_Model{
public
function
get_report_list
(
$where
=
''
,
$page
=
1
,
$page_size
=
10
,
$order
=
NULL
)
{
$this
->
db
->
distinct
()
->
select
(
'D.company_name,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name'
)
->
select
(
'D.company_name,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name
,CB.is_expired expired
'
)
->
from
(
'tb_customer_building CB'
)
->
join
(
'tb_building B'
,
'B.id = CB.building_id '
,
'left'
)
->
join
(
'tb_customer C'
,
'C.id = CB.customer_id '
,
'left'
)
...
...
@@ -172,7 +172,7 @@ class Customer_building_model extends MY_Model{
//二次报备列表
public
function
get_reportagain_list
(
$where
=
''
,
$page
=
1
,
$page_size
=
10
,
$order
=
NULL
)
{
$this
->
db
->
select
(
'D.company_name,CB.report_time,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name'
)
$this
->
db
->
select
(
'D.company_name,CB.report_time,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name
,CB.is_expired expired
'
)
->
from
(
'tb_customer_building CB'
)
->
join
(
'tb_building B'
,
'B.id = CB.building_id '
,
'left'
)
->
join
(
'tb_customer C'
,
'C.id = CB.customer_id '
,
'left'
)
...
...
html/application/views/admin/report/index_info.php
View file @
329c0ff3
...
...
@@ -223,6 +223,7 @@
}
?>
</div>
<div
style=
'margin-top:5px;'
></div>
<button
type=
"submit"
class=
"btn blue"
id=
"search"
>
搜索
</button>
...
...
@@ -270,7 +271,11 @@
<td>
<?php
echo
$customer_type
[
$customer
[
'customer_type'
]];
?>
</td>
<td>
<?php
echo
date
(
'Y-m-d H:i'
,
$customer
[
'create_time'
]);
?>
</td>
<td>
<?php
echo
$customer
[
'assign_time'
]
?
date
(
'Y-m-d H:i'
,
$customer
[
'assign_time'
])
:
''
;
?>
</td>
<?php
if
(
$customer
[
'expired'
]
==
0
){
?>
<td>
<?php
echo
$recommend_status
[
$customer
[
'recommend_status'
]];
?>
</td>
<?php
}
else
{
?>
<td>
已过期
</td>
<?php
}
?>
<td>
<?php
echo
$customer
[
'Strue_name'
];
?>
</td>
<td>
<?php
echo
$customer
[
'Mtrue_name'
];
?>
</td>
<td>
<?php
echo
$customer
[
'agent_name'
];
?>
</td>
...
...
html/application/views/admin/report/report_again.php
View file @
329c0ff3
...
...
@@ -153,7 +153,11 @@
<td>
<?php
echo
$customer_type
[
$customer
[
'customer_type'
]];
?>
</td>
<td>
<?php
echo
date
(
'Y-m-d H:i'
,
$customer
[
'create_time'
]);
?>
</td>
<td>
<?php
echo
date
(
'Y-m-d H:i'
,
$customer
[
'report_time'
]);
?>
</td>
<?php
if
(
$customer
[
'expired'
]
==
0
){
?>
<td>
<?php
echo
$recommend_status
[
$customer
[
'recommend_status'
]];
?>
</td>
<?php
}
else
{
?>
<td>
已过期
</td>
<?php
}
?>
<td>
<?php
echo
$customer
[
'Strue_name'
];
?>
</td>
<td>
<?php
echo
$customer
[
'Mtrue_name'
];
?>
</td>
<td>
<?php
echo
$customer
[
'agent_name'
];
?>
</td>
...
...
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