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
2d1bbfcc
Commit
2d1bbfcc
authored
Mar 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进代码恢复
parent
401cd0f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletion
+41
-1
Remarks.php
application/model/Remarks.php
+41
-1
No files found.
application/model/Remarks.php
View file @
2d1bbfcc
...
...
@@ -101,5 +101,45 @@ class Remarks extends Model
->
where
(
$params
)
->
count
();
}
/**
* @param int $p
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $join
* @param string $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getListJoin
(
$p
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$join
=
''
,
$where
=
''
)
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'r'
)
->
join
(
$join
)
->
where
(
$where
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$p
)
->
select
();
//echo $this->getLastSql();
if
(
!
$data
){
return
$data
;
}
/****************************处理客户电话****************************************/
foreach
(
$data
as
$k
=>
$li
)
{
$phonestr
=
htmlentities
(
trim
(
$li
[
"phpone"
]));
$phonearr
=
explode
(
'|'
,
$phonestr
);
$customer_phone
=
''
;
foreach
(
$phonearr
as
$v
)
{
if
(
$v
)
{
$customer_phone
.=
substr_replace
(
$v
,
'****'
,
3
,
4
)
.
'|'
;
}
}
$data
[
$k
][
'phpone'
]
=
trim
(
$customer_phone
,
'|'
);
}
/****************************处理客户电话****************************************/
return
$data
;
}
}
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