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
9687ea5f
Commit
9687ea5f
authored
Feb 26, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告收款记录
parent
abdb91a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
15 deletions
+36
-15
Performance.php
application/api_broker/controller/Performance.php
+2
-2
PerformanceService.php
application/api_broker/service/PerformanceService.php
+12
-12
GHousesToAgents.php
application/model/GHousesToAgents.php
+21
-0
OPayLogModel.php
application/model/OPayLogModel.php
+1
-1
No files found.
application/api_broker/controller/Performance.php
View file @
9687ea5f
...
@@ -667,10 +667,10 @@ class Performance extends Basic
...
@@ -667,10 +667,10 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"bargain_id"
=>
121
,
"bargain_id"
=>
121
,
"agent_id"
=>
5775
,
"agent_id"
=>
5775
,
);
*/
);
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verifyCollectionList"
);
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verifyCollectionList"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
...
...
application/api_broker/service/PerformanceService.php
View file @
9687ea5f
...
@@ -910,25 +910,25 @@ class PerformanceService
...
@@ -910,25 +910,25 @@ class PerformanceService
$reportModel
=
new
OReportModel
();
$reportModel
=
new
OReportModel
();
$gModel
=
new
GHousesToAgents
();
$gModel
=
new
GHousesToAgents
();
$field_report
=
"c.name"
;
$field_report
=
"c.name"
;
foreach
(
$list
as
$item
){
foreach
(
$list
as
$
key
=>
$
item
){
$
item
[
"salesman"
]
=
""
;
$
list
[
$key
]
[
"salesman"
]
=
""
;
if
(
$item
[
"type"
]
==
91
){
if
(
$item
[
"type"
]
==
91
){
$params
[
"a.id"
]
=
$item
[
"report_id"
];
$params
[
"a.id"
]
=
$item
[
"report_id"
];
$result
=
$reportModel
->
getReport
(
$field_report
,
$params
);
$result
=
$reportModel
->
getReport
(
$field_report
,
$params
);
$
item
[
"salesman"
]
=
$result
[
0
][
"name"
];
$
list
[
$key
]
[
"salesman"
]
=
$result
[
0
][
"name"
];
}
}
if
(
$item
[
"type"
]
==
92
){
if
(
$item
[
"type"
]
==
92
){
$param
s
[
"a.houses_id"
]
=
$item
[
"house_id"
];
$param
[
"a.houses_id"
]
=
$item
[
"house_id"
];
$param
s
[
"a.type"
]
=
3
;
$param
[
"a.type"
]
=
3
;
$param
s
[
"a.is_del"
]
=
0
;
$param
[
"a.is_del"
]
=
0
;
$exclusive
=
$gModel
->
getAgentsHouses
List
(
1
,
1
,
''
,
"a.houses_id,b.name"
,
$params
);
$exclusive
=
$gModel
->
getAgentsHouses
(
"a.houses_id,b.name"
,
$param
);
if
(
empty
(
$exclusive
)){
if
(
empty
(
$exclusive
)){
$param
s
[
"type"
]
=
1
;
$param
[
"type"
]
=
1
;
$param
s
[
"is_del"
]
=
0
;
$param
[
"is_del"
]
=
0
;
$data
=
$gModel
->
getAgentsHouses
List
(
1
,
1
,
''
,
"a.houses_id,b.name"
,
$params
);
$data
=
$gModel
->
getAgentsHouses
(
"a.houses_id,b.name"
,
$param
);
$
item
[
"salesman"
]
=
$data
[
0
][
"name"
];
$
list
[
$key
]
[
"salesman"
]
=
$data
[
0
][
"name"
];
}
else
{
}
else
{
$
item
[
"salesman"
]
=
$exclusive
[
0
][
"name"
];
$
list
[
$key
]
[
"salesman"
]
=
$exclusive
[
0
][
"name"
];
}
}
}
}
}
}
...
...
application/model/GHousesToAgents.php
View file @
9687ea5f
...
@@ -266,6 +266,27 @@ class GHousesToAgents extends BaseModel
...
@@ -266,6 +266,27 @@ class GHousesToAgents extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getAgentsHouses
(
$field
=
''
,
$params
=
''
)
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agents_id = b.id'
,
'left'
)
->
where
(
$params
)
->
select
();
echo
$this
->
getLastSql
();
return
$data
;
}
/**
/**
* @param $field
* @param $field
* @param $params
* @param $params
...
...
application/model/OPayLogModel.php
View file @
9687ea5f
...
@@ -139,7 +139,7 @@ class OPayLogModel extends Model
...
@@ -139,7 +139,7 @@ class OPayLogModel extends Model
$where_
[
"b.house_title"
]
=
$params
[
"house_title"
];
$where_
[
"b.house_title"
]
=
$params
[
"house_title"
];
}
}
if
(
isset
(
$params
[
"bargain_id"
]))
{
if
(
isset
(
$params
[
"bargain_id"
]))
{
$where_
[
"
b
.bargain_id"
]
=
$params
[
"bargain_id"
];
$where_
[
"
a
.bargain_id"
]
=
$params
[
"bargain_id"
];
}
}
$where_
[
"a.is_del"
]
=
0
;
$where_
[
"a.is_del"
]
=
0
;
return
Db
::
table
(
$this
->
table
)
return
Db
::
table
(
$this
->
table
)
...
...
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