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
44d63f5d
Commit
44d63f5d
authored
Nov 05, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取经纪人时间段中新添加的楼盘个数
parent
d7afeaa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Statement.php
application/api_broker/controller/Statement.php
+0
-1
GHousesToAgents.php
application/model/GHousesToAgents.php
+23
-0
No files found.
application/api_broker/controller/Statement.php
View file @
44d63f5d
...
@@ -42,7 +42,6 @@ class Statement extends Basic
...
@@ -42,7 +42,6 @@ class Statement extends Basic
"time_start" => date("Y-m-d", time()),
"time_start" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()),
);*/
);*/
Log
::
write
(
json_encode
(
$params
),
'本月完成单数-传入条件44行-7151'
);
//记录日志
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"time_start"
])
||
!
isset
(
$params
[
"time_end"
]))
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"time_start"
])
||
!
isset
(
$params
[
"time_end"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
application/model/GHousesToAgents.php
View file @
44d63f5d
...
@@ -458,4 +458,27 @@ class GHousesToAgents extends BaseModel
...
@@ -458,4 +458,27 @@ class GHousesToAgents extends BaseModel
return
$data
;
return
$data
;
}
}
/**
* 获取经纪人时间段中新添加的楼盘个数
* @param $params
* @return int|string
*/
public
function
getAddHouseNumByAgentId
(
$params
)
{
$where_
=
[];
$where_
[
"is_del"
]
=
0
;
if
(
isset
(
$params
[
"agents_id"
]))
{
$where_
[
"agents_id"
]
=
$params
[
"agents_id"
];
}
if
(
isset
(
$params
[
"create_time"
]))
{
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
}
return
Db
::
table
(
$this
->
table
)
->
where
(
$where_
)
->
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