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
49c50a67
Commit
49c50a67
authored
Apr 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
6a02b30f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
OrderLog.php
application/api_broker/controller/OrderLog.php
+2
-2
OrderLogService.php
application/api_broker/service/OrderLogService.php
+5
-6
GHousesToAgents.php
application/model/GHousesToAgents.php
+4
-2
No files found.
application/api_broker/controller/OrderLog.php
View file @
49c50a67
...
...
@@ -214,9 +214,9 @@ class OrderLog extends Basic
public
function
searchBargainAgents
()
{
$params
=
$this
->
params
;
/*
$params = array(
/*
$params = array(
"type" => 1,//1盘方,2客方,3反签,4独家,5合作方
"order_id" =>
1
,
"order_id" =>
36
,
);*/
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
application/api_broker/service/OrderLogService.php
View file @
49c50a67
...
...
@@ -708,8 +708,7 @@ class OrderLogService
c.user_pic,c.sex"
;
$where_
[
"order_id"
]
=
$order_id
;
$result
=
$orderModel
->
selectOrderDetail
(
$field
,
$where_
);
//dump($result);
if
(
count
(
$result
)
<=
0
||
$result
[
"house_id"
]
<=
0
||
$result
[
"user_id"
]
<=
0
)
{
if
(
count
(
$result
)
<=
0
||
$result
[
0
][
"house_id"
]
<=
0
||
$result
[
0
][
"user_id"
]
<=
0
)
{
return
null
;
}
$houseAgents
=
new
GHousesToAgents
();
...
...
@@ -717,25 +716,25 @@ class OrderLogService
switch
(
$type
)
{
//1盘方,2客方,3反签,4独家,5合作方
case
1
:
$params
[
"a.house
_id"
]
=
$result
[
"house_id"
];
$params
[
"a.house
s_id"
]
=
$result
[
0
]
[
"house_id"
];
$params
[
"a.type"
]
=
2
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$field
,
$params
);
break
;
case
2
:
$userModel
=
new
Users
();
$params
[
"a.id"
]
=
$result
[
"user_id"
];
$params
[
"a.id"
]
=
$result
[
0
][
"user_id"
];
$params
[
"b.status"
]
=
0
;
$list
=
$userModel
->
getAgentByUserId
(
$field
,
$params
);
break
;
case
3
:
//反签 == 报备人
$reportModel
=
new
OReportModel
();
$params
[
"a.order_id"
]
=
$result
[
"id"
];
$params
[
"a.order_id"
]
=
$result
[
0
][
"id"
];
$params
[
"b.status"
]
=
0
;
$list
=
$reportModel
->
getAgentByOrderId
(
$field
,
$params
);
break
;
case
4
:
$params
[
"a.house_id"
]
=
$result
[
"house_id"
];
$params
[
"a.house_id"
]
=
$result
[
0
][
"house_id"
];
$params
[
"a.type"
]
=
3
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$field
,
$params
);
...
...
application/model/GHousesToAgents.php
View file @
49c50a67
...
...
@@ -162,12 +162,14 @@ class GHousesToAgents extends BaseModel
public
function
getAgentsByHouseId
(
$field
,
$params
){
return
Db
::
name
(
$this
->
table
)
$result
=
Db
::
name
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
->
join
(
"a_agents b"
,
"a.agent
s
_id = b.id"
,
"left"
)
->
where
(
$params
)
->
select
();
//echo Db::name($this->table)->getLastSql();
return
$result
;
}
/**
...
...
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