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
4ca419ee
Commit
4ca419ee
authored
Mar 19, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计
parent
f600f945
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
4 deletions
+45
-4
OBargainModel.php
application/model/OBargainModel.php
+20
-3
OReportModel.php
application/model/OReportModel.php
+17
-0
TAgentTotalModel.php
application/model/TAgentTotalModel.php
+3
-1
route.php
application/route.php
+5
-0
ResultsSummaryTask.php
application/task/controller/ResultsSummaryTask.php
+0
-0
No files found.
application/model/OBargainModel.php
View file @
4ca419ee
...
...
@@ -282,15 +282,32 @@ class OBargainModel extends Model
->
where
(
$params
)
->
find
();
}
public
function
getAddBargainNumGroupTime
(
$params
){
$field
=
"count(1) as num,DATE(create_time) as day"
;
/**
* @param $params
* @param $type
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getAddBargainNumGroupTime
(
$params
,
$type
){
$field
=
""
;
$where_
=
[];
if
(
$type
==
1
){
$field
=
"sum(scale_fee) as num,DATE(create_time) as day"
;
}
elseif
(
$type
==
2
){
$field
=
"sum(practical_fee) as num,DATE(create_time) as day"
;
}
elseif
(
$type
==
3
){
$field
=
"count(1) as num,DATE(create_time) as day"
;
}
$where_
[
"status"
]
=
11
;
//审核成功
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"
reception
_id"
]
=
$params
[
"agent_id"
];
$where_
[
"
agent
_id"
]
=
$params
[
"agent_id"
];
}
if
(
isset
(
$params
[
"create_time"
])){
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
}
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
where
(
$where_
)
...
...
application/model/OReportModel.php
View file @
4ca419ee
...
...
@@ -136,5 +136,21 @@ class OReportModel extends Model
}
public
function
getAddReportNumGroupTime
(
$params
){
$field
=
"count(1) as num,DATE(create_time) as day"
;
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"report_agent_id"
]
=
$params
[
"agent_id"
];
}
if
(
isset
(
$params
[
"create_time"
])){
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
}
$where_
[
"status"
]
=
0
;
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
where
(
$where_
)
->
group
(
"day"
)
->
select
();
}
}
\ No newline at end of file
application/model/TAgentTotalModel.php
View file @
4ca419ee
...
...
@@ -17,7 +17,7 @@ class TAgentTotalModel extends Model{
function
__construct
()
{
$this
->
db_
=
Db
::
tabl
e
(
$this
->
table
);
$this
->
db_
=
Db
::
nam
e
(
$this
->
table
);
}
/**
...
...
@@ -31,6 +31,8 @@ class TAgentTotalModel extends Model{
Db
::
commit
();
return
1
;
}
catch
(
\Exception
$e
)
{
print_r
(
$e
);
Db
::
rollback
();
return
0
;
}
...
...
application/route.php
View file @
4ca419ee
...
...
@@ -272,6 +272,11 @@ Route::group('task',[
'addReport'
=>
[
'task/PrivacyNumber/addReport'
,
[
'method'
=>
'get|post'
]],
//阿里大于隐私号码回调
'queryRecordFile'
=>
[
'task/PrivacyNumber/queryRecordFile'
,
[
'method'
=>
'get'
]],
//下载录音
'releaseNumber'
=>
[
'task/PrivacyNumber/releaseNumber'
,
[
'method'
=>
'get'
]],
//释放号码
'totalAgentResults'
=>
[
'task/ResultsSummaryTask/totalAgentResults'
,
[
'method'
=>
'get'
]],
//释放号码
]);
Route
::
group
(
'broker'
,
[
...
...
application/task/controller/ResultsSummaryTask.php
View file @
4ca419ee
This diff is collapsed.
Click to expand it.
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