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
13dcd492
Commit
13dcd492
authored
Nov 05, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表中的筛选详情中的下一条查看详情 bug
parent
d2bed045
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
User.php
application/api_broker/controller/User.php
+6
-4
Users.php
application/model/Users.php
+1
-7
No files found.
application/api_broker/controller/User.php
View file @
13dcd492
...
@@ -269,8 +269,10 @@ class User extends Basic
...
@@ -269,8 +269,10 @@ class User extends Basic
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$params
[
'start_date'
]
.
' 00:00:00'
,
$params
[
'end_date'
]
.
' 23:59:59'
]
];
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$params
[
'start_date'
]
.
' 00:00:00'
,
$params
[
'end_date'
]
.
' 23:59:59'
]
];
}
else
{
}
else
{
if
(
empty
(
$params
[
'id'
])
&&
empty
(
$params
[
'phone'
]))
{
if
(
empty
(
$params
[
'id'
])
&&
empty
(
$params
[
'phone'
]))
{
$time_
=
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-1 day"
));
//排除排除保护期内的客户
$where
[
'a.create_time'
]
=
array
(
'lt'
,
$time_
);
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
//protect_time 将截止日期大于当前时间的数据排除掉
$where
[
'a.protect_time'
]
=
array
(
'lt'
,
$time_now
);
}
}
}
}
...
@@ -439,12 +441,12 @@ class User extends Basic
...
@@ -439,12 +441,12 @@ class User extends Basic
$where
[
'a.province'
]
=
$params
[
'province'
];
$where
[
'a.province'
]
=
$params
[
'province'
];
}
}
if
(
!
empty
(
$params
[
'city'
]))
{
/*
if (!empty($params['city'])) {
$where['a.city'] = $params['city'];
$where['a.city'] = $params['city'];
} else {
} else {
// 判断是 杭州还是上海
// 判断是 杭州还是上海
$where['a.city'] = trim($this->city) ? trim($this->city) : '上海市';
$where['a.city'] = trim($this->city) ? trim($this->city) : '上海市';
}
}
*/
if
(
!
empty
(
$params
[
'disc'
]))
{
if
(
!
empty
(
$params
[
'disc'
]))
{
$where
[
'a.disc'
]
=
$params
[
'disc'
];
$where
[
'a.disc'
]
=
$params
[
'disc'
];
...
...
application/model/Users.php
View file @
13dcd492
...
@@ -902,13 +902,7 @@ class Users extends Model
...
@@ -902,13 +902,7 @@ class Users extends Model
->
select
();
->
select
();
}
}
/*$return = Db::name($this->table)
//echo $this->getLastSql();
->field($field)
->where($where)
->limit($limit)
->order($order)
->select();*/
//dump($this->getLastSql());
return
$result
;
return
$result
;
}
}
...
...
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