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
818b8c2b
Commit
818b8c2b
authored
Sep 04, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6622ae98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
AmercementService.php
application/index/service/AmercementService.php
+9
-10
No files found.
application/index/service/AmercementService.php
View file @
818b8c2b
...
...
@@ -13,6 +13,7 @@ namespace app\index\service;
use
app\api_broker\service\PushMessageService
;
use
app\api_broker\service\RedisCacheService
;
use
app\index\untils\ExportExcelUntil
;
use
app\model\AAgents
;
use
app\model\OAmercementImgModel
;
use
app\model\OAmercementModel
;
use
app\model\UserAgentModel
;
...
...
@@ -400,9 +401,7 @@ class AmercementService
*/
public
function
getAmercementListPc
(
$params
,
$page_no
,
$page_size
)
{
big_log
(
$params
);
$conditions
=
$this
->
buildConditions
(
$params
);
big_log
(
$conditions
);
$field
=
"id,status,type,money,submit_agent_id,agent_id,remarks,create_time,forfeit_penalty"
;
$result
=
$this
->
m_amercement
->
getAmercementList
(
$conditions
,
$field
,
$page_no
,
$page_size
);
$redis_cache
=
new
RedisCacheService
();
...
...
@@ -513,13 +512,13 @@ class AmercementService
//提交人姓名
if
(
!
empty
(
$params
[
'submit_name'
]))
{
$user_id_str
=
$this
->
get
User
IDList
(
$params
[
'submit_name'
]);
$user_id_str
=
$this
->
get
Agent
IDList
(
$params
[
'submit_name'
]);
$conditions
[
'submit_agent_id'
]
=
[
'in'
,
$user_id_str
];
}
//被罚款人姓名
if
(
!
empty
(
$params
[
'name'
]))
{
$user_id_str
=
$this
->
get
User
IDList
(
$params
[
'name'
]);
$user_id_str
=
$this
->
get
Agent
IDList
(
$params
[
'name'
]);
$conditions
[
'agent_id'
]
=
[
'in'
,
$user_id_str
];
}
return
$conditions
;
...
...
@@ -553,20 +552,20 @@ class AmercementService
* @param $name
* @return string
*/
public
function
get
User
IDList
(
$name
)
public
function
get
Agent
IDList
(
$name
)
{
//查询总监下面门店的所有经纪人
$params
=
[];
$params
[
'name'
]
=
[
'LIKE'
,
'%'
.
$name
.
'%'
];
$params
[
"
is_del
"
]
=
0
;
$m_
user_agent
=
new
UserAgentModel
();
$field
=
'
user_
id'
;
$res
=
$m_
user_agent
->
selectUser
(
$field
,
$params
);
$params
[
"
status
"
]
=
0
;
$m_
agent
=
new
AAgents
();
$field
=
'id'
;
$res
=
$m_
agent
->
getStoreIdByAgentId
(
$field
,
$params
);
$user_id_str
=
""
;
if
(
count
(
$res
)
>
0
)
{
foreach
(
$res
as
$k
=>
$v
)
{
$user_id_str
.=
$v
[
"
user_
id"
]
.
","
;
$user_id_str
.=
$v
[
"id"
]
.
","
;
}
$user_id_str
=
rtrim
(
$user_id_str
,
","
);
}
...
...
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