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
e5c19d11
Commit
e5c19d11
authored
Apr 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
63daf8c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
OrderLog.php
application/api_broker/controller/OrderLog.php
+1
-1
OrderLogService.php
application/api_broker/service/OrderLogService.php
+7
-7
No files found.
application/api_broker/controller/OrderLog.php
View file @
e5c19d11
...
...
@@ -214,7 +214,7 @@ class OrderLog extends Basic
{
$params
=
$this
->
params
;
/* $params = array(
"type" => 1,//
0盘方,1客方,2反签,3独家,4
合作方
"type" => 1,//
1盘方,2客方,3反签,4独家,5
合作方
"order_id" => 1,
);*/
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"order_id"
]))
{
...
...
application/api_broker/service/OrderLogService.php
View file @
e5c19d11
...
...
@@ -704,40 +704,40 @@ class OrderLogService
$where_
[
"order_id"
]
=
$order_id
;
$result
=
$orderModel
->
selectOrderDetail
(
$field
,
$where_
);
//dump($result);
if
(
count
(
$result
)
<=
0
)
{
if
(
count
(
$result
)
<=
0
||
$result
[
"house_id"
]
<=
0
||
$result
[
"user_id"
]
<=
0
)
{
return
null
;
}
$houseAgents
=
new
GHousesToAgents
();
$field
=
"b.id,b.phone,b.name"
;
switch
(
$type
)
{
//0盘方,1客方,2反签,3独家,4合作方
case
0
:
case
1
:
$params
[
"a.house_id"
]
=
$result
[
"house_id"
];
$params
[
"a.type"
]
=
2
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$field
,
$params
);
break
;
case
1
:
case
2
:
$userModel
=
new
Users
();
$params
[
"a.id"
]
=
$result
[
"user_id"
];
$params
[
"b.status"
]
=
0
;
$list
=
$userModel
->
getAgentByUserId
(
$field
,
$params
);
break
;
case
2
:
//反签 == 报备人
case
3
:
//反签 == 报备人
$reportModel
=
new
OReportModel
();
$params
[
"a.order_id"
]
=
$result
[
"id"
];
$params
[
"b.status"
]
=
0
;
$list
=
$reportModel
->
getAgentByOrderId
(
$field
,
$params
);
break
;
case
3
:
case
4
:
$params
[
"a.house_id"
]
=
$result
[
"house_id"
];
$params
[
"a.type"
]
=
3
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$field
,
$params
);
break
;
case
4
:
case
5
:
return
null
;
break
;
default
:
return
null
;
...
...
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