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
40094e8a
Commit
40094e8a
authored
May 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跟进列表增加搜索条件
parent
67a6bd1a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
Broker.php
application/api/controller/Broker.php
+8
-0
Basic.php
application/api/extend/Basic.php
+1
-1
Remark.php
application/index/controller/Remark.php
+24
-0
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+4
-0
No files found.
application/api/controller/Broker.php
View file @
40094e8a
...
...
@@ -2,6 +2,7 @@
namespace
app\api\controller
;
use
app\api\extend\Basic
;
use
app\api_broker\service\PushMessageService
;
use
app\model\AAgents
;
use
app\model\Agents
;
use
app\model\Evaluate
;
...
...
@@ -229,4 +230,11 @@ class Broker extends Basic{
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
public
function
testtest
()
{
$push
=
new
PushMessageService
();
// $push->pushReportMessage(2362,3670,1);
// $push->pushMarchInMessage(26964);
$push
->
pushBargainCommissionMessage
(
'小杨-业务员'
,
3
,
15539
);
}
}
application/api/extend/Basic.php
View file @
40094e8a
...
...
@@ -95,7 +95,7 @@ class Basic extends Controller
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
//过滤掉不需要验证token的接口
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
$this
->
tokenVerify
();
///
$this->tokenVerify();
}
}
...
...
application/index/controller/Remark.php
View file @
40094e8a
...
...
@@ -41,6 +41,9 @@ class Remark extends Basic
$u_phone_follow
=
new
UPhoneFollowPp
();
$where
[
'e.store_name'
]
=
[
'NULL'
];
$where
[
'f.district_name'
]
=
[
'NULL'
];
if
(
!
empty
(
$this
->
params
[
'start_date'
])
&&
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'a.create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
.
' 00:00:00'
];
}
...
...
@@ -65,6 +68,27 @@ class Remark extends Basic
$where
[
'a.content'
]
=
[
'like'
,
"%
{
$this
->
params
[
'content'
]
}
%"
];
}
//跟进人名字
if
(
!
empty
(
$this
->
params
[
'remark_name'
]))
{
$where
[
'b.name'
]
=
[
'like'
,
"%
{
$this
->
params
[
'remark_name'
]
}
%"
];
}
//跟进人手机号
if
(
!
empty
(
$this
->
params
[
'remark_phone'
]))
{
$where
[
'b.phone'
]
=
[
'like'
,
"%
{
$this
->
params
[
'remark_name'
]
}
%"
];
}
//跟进人门店
if
(
!
empty
(
$this
->
params
[
'remark_store'
]))
{
$where
[
'e.store_name'
]
=
[
'like'
,
"%
{
$this
->
params
[
'remark_name'
]
}
%"
];
}
//跟进人部门
if
(
!
empty
(
$this
->
params
[
'remark_district'
]))
{
$where
[
'e.store_name'
]
=
[
'NOT NULL'
];
$where
[
'f.district_name'
]
=
[
'like'
,
"%
{
$this
->
params
[
'remark_district'
]
}
%"
];
}
$field
=
'c.id,a.create_time,a.content,b.name as admin,d.name as label_name,c.user_nick,c.user_phone,a.user_status'
;
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$data
[
'data'
][
'total'
]
=
$u_phone_follow
->
getFollowTotal
(
$where
);
...
...
application/model/UPhoneFollowPp.php
View file @
40094e8a
...
...
@@ -203,6 +203,8 @@ class UPhoneFollowPp extends BaseModel
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'u_users c'
,
'a.user_id = c.id'
,
'left'
)
->
join
(
'u_labels d'
,
'd.id = a.labels_id'
,
'left'
)
->
join
(
'a_store e'
,
'b.store_id = e.id'
,
'left'
)
->
join
(
'a_district f'
,
'b.district_id= f.id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
...
...
@@ -221,6 +223,8 @@ class UPhoneFollowPp extends BaseModel
return
$this
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'u_users c'
,
'a.user_id = c.id'
,
'left'
)
->
join
(
'a_store e'
,
'b.store_id = e.id'
,
'left'
)
->
join
(
'a_district f'
,
'b.district_id= f.id'
,
'left'
)
->
where
(
$params
)
->
count
();
}
...
...
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