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
66395107
Commit
66395107
authored
Jan 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg
parent
ed5d8084
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
Remark.php
application/index/controller/Remark.php
+9
-0
PhoneFollowUpService.php
application/index/service/PhoneFollowUpService.php
+5
-2
No files found.
application/index/controller/Remark.php
View file @
66395107
...
@@ -196,6 +196,15 @@ class Remark extends Basic
...
@@ -196,6 +196,15 @@ class Remark extends Basic
if
(
!
empty
(
$this
->
params
[
'agent_id'
]))
{
if
(
!
empty
(
$this
->
params
[
'agent_id'
]))
{
$where
[
'agent_id'
]
=
$this
->
params
[
'agent_id'
];
$where
[
'agent_id'
]
=
$this
->
params
[
'agent_id'
];
}
}
if
(
!
empty
(
$this
->
params
[
'content'
]))
{
$where
[
'content'
]
=
$this
->
params
[
'content'
];
}
if
(
!
empty
(
$this
->
params
[
'remark_store_id'
]))
{
$where
[
'store_id'
]
=
$this
->
params
[
'remark_store_id'
];
}
if
(
!
empty
(
$this
->
params
[
'remark_district_id'
]))
{
$where
[
'district_id'
]
=
$this
->
params
[
'remark_district_id'
];
}
$result_data
=
$follow_up_service
->
getPhoneFollowList
(
$this
->
params
[
'start_date'
],
$this
->
params
[
'end_date'
],
$where
,
$this
->
userId
);
$result_data
=
$follow_up_service
->
getPhoneFollowList
(
$this
->
params
[
'start_date'
],
$this
->
params
[
'end_date'
],
$where
,
$this
->
userId
);
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
...
...
application/index/service/PhoneFollowUpService.php
View file @
66395107
...
@@ -49,7 +49,6 @@ class PhoneFollowUpService
...
@@ -49,7 +49,6 @@ class PhoneFollowUpService
$page_no
=
isset
(
$params
[
'page_no'
])
?
$params
[
'page_no'
]
:
1
;
$page_no
=
isset
(
$params
[
'page_no'
])
?
$params
[
'page_no'
]
:
1
;
$page_size
=
isset
(
$params
[
'page_size'
])
?
$params
[
'page_size'
]
:
15
;
$page_size
=
isset
(
$params
[
'page_size'
])
?
$params
[
'page_size'
]
:
15
;
$is_check
=
$vrs
->
followUpClick
(
$agent_id
);
$is_check
=
$vrs
->
followUpClick
(
$agent_id
);
if
(
$page_no
==
1
&&
!
$is_check
){
if
(
$page_no
==
1
&&
!
$is_check
){
$is_bool
=
$vrs
->
getCurrTimeSection
();
$is_bool
=
$vrs
->
getCurrTimeSection
();
...
@@ -83,12 +82,16 @@ class PhoneFollowUpService
...
@@ -83,12 +82,16 @@ class PhoneFollowUpService
$agent_where
[
'district_id'
]
=
$params
[
'district_id'
];
$agent_where
[
'district_id'
]
=
$params
[
'district_id'
];
}
}
if
(
!
empty
(
$params
[
'content'
]))
{
$where
.=
" AND content LIKE '%
{
$params
[
'content'
]
}
%'"
;
}
if
(
!
empty
(
$agent_where
))
{
if
(
!
empty
(
$agent_where
))
{
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
$agent_id
=
$m_agent
->
getAgentsByWhereColumn
(
$agent_where
,
'id'
);
$agent_id
=
$m_agent
->
getAgentsByWhereColumn
(
$agent_where
,
'id'
);
if
(
empty
(
$agent_id
))
{
if
(
empty
(
$agent_id
))
{
return
$data
;
return
[
'code'
=>
'101'
,
'data'
=>
'暂无数据'
]
;
}
else
{
}
else
{
$where
.=
" AND agent_id in {implode(',',
$agent_id
)}"
;
$where
.=
" AND agent_id in {implode(',',
$agent_id
)}"
;
}
}
...
...
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