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
bb9deb7f
Commit
bb9deb7f
authored
Aug 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清理经纪人看客户记录
parent
3d6b3e83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
TLookAgentUserModel.php
application/model/TLookAgentUserModel.php
+6
-0
route.php
application/route.php
+1
-0
AgentLookUserTask.php
application/task/controller/AgentLookUserTask.php
+41
-0
No files found.
application/model/TLookAgentUserModel.php
View file @
bb9deb7f
...
@@ -41,4 +41,9 @@ class TLookAgentUserModel extends BaseModel
...
@@ -41,4 +41,9 @@ class TLookAgentUserModel extends BaseModel
}
}
return
$id
;
return
$id
;
}
}
public
function
delData
(
$where
)
{
return
$this
->
db_
->
where
(
$where
)
->
delete
();
}
}
}
\ No newline at end of file
application/route.php
View file @
bb9deb7f
...
@@ -782,6 +782,7 @@ Route::group('task', [
...
@@ -782,6 +782,7 @@ Route::group('task', [
'delCache'
=>
[
'task/UpdateRedisCache/delCache'
,
[
'method'
=>
'get'
]],
//清空多种缓存
'delCache'
=>
[
'task/UpdateRedisCache/delCache'
,
[
'method'
=>
'get'
]],
//清空多种缓存
'delGroup'
=>
[
'task/UpdateRedisCache/delGroup'
,
[
'method'
=>
'get'
]],
//批量去除角色缓存
'delGroup'
=>
[
'task/UpdateRedisCache/delGroup'
,
[
'method'
=>
'get'
]],
//批量去除角色缓存
'delRule'
=>
[
'task/UpdateRedisCache/delRule'
,
[
'method'
=>
'get'
]],
//批量去除规则缓存
'delRule'
=>
[
'task/UpdateRedisCache/delRule'
,
[
'method'
=>
'get'
]],
//批量去除规则缓存
'delAgentUserLog'
=>
[
'task/AgentLookUserTask/delAgentUserLog'
,
[
'method'
=>
'get'
]],
//清理经纪人看客户记录
'selectDailyUncommitted'
=>
[
'task/DailyUncommittedTask/selectDailyUncommitted'
,
[
'method'
=>
'get'
]],
//未提交财务日报的门店
'selectDailyUncommitted'
=>
[
'task/DailyUncommittedTask/selectDailyUncommitted'
,
[
'method'
=>
'get'
]],
//未提交财务日报的门店
]);
]);
...
...
application/task/controller/AgentLookUserTask.php
0 → 100644
View file @
bb9deb7f
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/8/28
* Time: 15:51
*/
namespace
app\task\controller
;
use
app\model\TLookAgentUserModel
;
class
AgentLookUserTask
{
/**
* 清理经纪人看客户记录
*/
public
function
delAgentUserLog
()
{
$m_look
=
new
TLookAgentUserModel
();
$where
[
'create_time'
]
=
[
'<'
,
date
(
'Y-m-d H:i:s'
,
strtotime
(
'-2 month'
))];
//两个月前
$total
=
$m_look
->
getTotal
(
$where
);
$page_size
=
500
;
$page_no
=
ceil
(
$total
/
$page_size
);
for
(
$i
=
0
;
$i
<
$page_no
;
$i
++
)
{
$data
=
$m_look
->
getList
(
$i
,
$page_size
,
''
,
'id'
,
$where
);
foreach
(
$data
as
$v
)
{
$del_id
[]
=
$v
[
'id'
];
}
if
(
isset
(
$del_id
))
{
$del_where
[
'id'
]
=
[
'in'
,
$del_id
];
$m_look
->
delData
(
$del_where
);
unset
(
$del_id
);
}
}
}
}
\ No newline at end of file
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