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
ab40634f
Commit
ab40634f
authored
Jun 20, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
41b62ddf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
33 deletions
+34
-33
OfficeRoom.php
application/api_broker/controller/OfficeRoom.php
+0
-0
OfficeOrderLogService.php
application/api_broker/service/OfficeOrderLogService.php
+31
-31
MetroStations.php
application/model/MetroStations.php
+2
-1
Regions.php
application/model/Regions.php
+1
-1
route.php
application/route.php
+0
-0
No files found.
application/api_broker/controller/OfficeRoom.php
View file @
ab40634f
This diff is collapsed.
Click to expand it.
application/api_broker/service/OfficeOrderLogService.php
View file @
ab40634f
...
...
@@ -361,9 +361,9 @@ class OfficeOrderLogService
}
if
(
$father_id
>
0
)
{
//修改办公楼已租状态
$orderModel
=
new
OfficeOrderModel
();
$houseArr
=
$orderModel
->
selectOrderByOrderId
(
"b.id,c.type"
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$houseArr
)
>
0
&&
$houseArr
[
0
][
"type"
]
!=
5
)
{
//没找到楼盘和共享楼盘不改状态
$room_id
=
$houseArr
[
0
][
"id"
];
$houseArr
=
$orderModel
->
selectOrderByOrderId
(
"b.id,c.type"
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$houseArr
)
>
0
&&
$houseArr
[
0
][
"type"
]
!=
5
)
{
//没找到楼盘和共享楼盘不改状态
$room_id
=
$houseArr
[
0
][
"id"
];
$roomModel
=
new
OfficeGRoom
();
$roomModel
->
updateHouseNumByRevocationBargain
(
$room_id
);
}
...
...
@@ -540,19 +540,19 @@ class OfficeOrderLogService
}
}
//退款审核
$field_turn_down
=
"id,refund_id,status,remark,operation_id,operation_name,create_time"
;
$turn_down
[
"order_id"
]
=
$order_id
;
$turn_down
[
"status"
]
=
array
(
"in"
,
(
"2,4"
));
$turn_down
[
"is_del"
]
=
0
;
$turnDownData
=
$oRefundLogModel
->
getListAll
(
$field_turn_down
,
$turn_down
);
if
(
count
(
$turnDownData
)
>
0
)
{
foreach
(
$turnDownData
as
$k2
=>
$v2
)
{
$v2
[
"step_name"
]
=
"refund_check"
;
$v2
[
"img_path"
]
=
CHAT_IMG_URL
;
$v2
[
"img"
]
=
$this
->
getOImg
(
$v2
[
"id"
],
4
);
$result
[
$sort
++
]
=
$v2
;
}
}
$field_turn_down
=
"id,refund_id,status,remark,operation_id,operation_name,create_time"
;
$turn_down
[
"order_id"
]
=
$order_id
;
$turn_down
[
"status"
]
=
array
(
"in"
,
(
"2,4"
));
$turn_down
[
"is_del"
]
=
0
;
$turnDownData
=
$oRefundLogModel
->
getListAll
(
$field_turn_down
,
$turn_down
);
if
(
count
(
$turnDownData
)
>
0
)
{
foreach
(
$turnDownData
as
$k2
=>
$v2
)
{
$v2
[
"step_name"
]
=
"refund_check"
;
$v2
[
"img_path"
]
=
CHAT_IMG_URL
;
$v2
[
"img"
]
=
$this
->
getOImg
(
$v2
[
"id"
],
4
);
$result
[
$sort
++
]
=
$v2
;
}
}
return
$this
->
sortByTime
(
$result
);
}
...
...
@@ -1442,15 +1442,15 @@ class OfficeOrderLogService
return
null
;
}
$houseAgents
=
new
OfficeGRoomToAgent
();
$fields
=
"b.id,b.phone,b.name"
;
$fields
=
"b.id,b.phone,b.name"
;
switch
(
$type
)
{
//1盘方,2客方,3反签,4独家,5合作方
case
1
:
$params
[
"a.house_id"
]
=
$result
[
0
][
"house_id"
];
$params
[
"a.type"
]
=
2
;
$params
[
"a.is_del"
]
=
0
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
$params
[
"a.type"
]
=
2
;
$params
[
"a.is_del"
]
=
0
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
break
;
case
2
:
$userModel
=
new
Users
();
...
...
@@ -1466,10 +1466,10 @@ class OfficeOrderLogService
break
;
case
4
:
$params
[
"a.house_id"
]
=
$result
[
0
][
"house_id"
];
$params
[
"a.type"
]
=
3
;
$params
[
"a.is_del"
]
=
0
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
$params
[
"a.type"
]
=
3
;
$params
[
"a.is_del"
]
=
0
;
$params
[
"b.status"
]
=
0
;
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
break
;
case
5
:
return
null
;
...
...
@@ -1513,13 +1513,13 @@ class OfficeOrderLogService
return
null
;
}
$houseAgents
=
new
OfficeGRoomToAgent
();
$fields
=
"b.id,b.phone,b.name,a.type"
;
$houseAgents
=
new
OfficeGRoomToAgent
();
$fields
=
"b.id,b.phone,b.name,a.type"
;
$where_house
[
"a.house_id"
]
=
$result
[
0
][
"house_id"
];
$where_house
[
"a.type"
]
=
[
'in'
,
'2,3'
];
$where_house
[
"a.is_del"
]
=
0
;
$where_house
[
"b.status"
]
=
0
;
$agent_house
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$where_house
);
$where_house
[
"a.type"
]
=
[
'in'
,
'2,3'
];
$where_house
[
"a.is_del"
]
=
0
;
$where_house
[
"b.status"
]
=
0
;
$agent_house
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$where_house
);
$list
=
[];
$key
=
0
;
...
...
application/model/MetroStations.php
View file @
ab40634f
...
...
@@ -50,9 +50,10 @@ class MetroStations extends BaseModel
public
function
getMetroStations
(
$field
,
$params
)
{
$result
=
$this
$result
=
$this
->
db_
->
field
(
$field
)
->
where
(
$params
)
->
order
(
"sort_value asc"
)
->
select
();
return
$result
;
}
...
...
application/model/Regions.php
View file @
ab40634f
...
...
@@ -129,7 +129,7 @@ class Regions extends Model
public
function
getRegionsByCity
(
$city
)
{
$data
=
[];
$param
[
"type"
]
=
2
;
$param
[
"fullName"
]
=
array
(
"like"
,
"%"
.
trim
(
$city
)
.
"%"
);
$param
[
"fullName"
]
=
array
(
"like"
,
trim
(
$city
)
.
"%"
);
$city_data
=
$this
->
field
(
'code,fullName'
)
->
where
(
$param
)
...
...
application/route.php
View file @
ab40634f
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