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
e8109a82
Commit
e8109a82
authored
Jul 08, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
办公楼报备搜索
parent
790e7e98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
OfficeOrderLog.php
application/api_broker/controller/OfficeOrderLog.php
+1
-1
OfficeOrderLogService.php
application/api_broker/service/OfficeOrderLogService.php
+11
-5
No files found.
application/api_broker/controller/OfficeOrderLog.php
View file @
e8109a82
...
@@ -332,7 +332,7 @@ class OfficeOrderLog extends Basic{
...
@@ -332,7 +332,7 @@ class OfficeOrderLog extends Basic{
}
}
try
{
try
{
$list
=
$this
->
service_
->
searchBargainAgents
(
$params
[
"type"
],
$params
[
"order_id"
]);
$list
=
$this
->
service_
->
searchBargainAgents
(
$params
[
"type"
],
$params
[
"order_id"
]
,
$this
->
siteId
);
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$list
);
return
$this
->
response
(
"200"
,
"request success"
,
$list
);
}
else
{
}
else
{
...
...
application/api_broker/service/OfficeOrderLogService.php
View file @
e8109a82
...
@@ -1424,14 +1424,18 @@ class OfficeOrderLogService
...
@@ -1424,14 +1424,18 @@ class OfficeOrderLogService
$Users
->
update_user_status
([
'id'
=>
$result
[
0
][
"user_id"
],
'user_status'
=>
1
]);
$Users
->
update_user_status
([
'id'
=>
$result
[
0
][
"user_id"
],
'user_status'
=>
1
]);
}
}
}
}
/**
/**
* 成交报告客户搜索
* 成交报告客户搜索
* @param $type
* @param $type
* @param $order_id
* @param $order_id
* @return false|null|\PDOStatement|string|\think\Collection
* @param $site_id
* @return false|\PDOStatement|string|\think\Collection|null
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
searchBargainAgents
(
$type
,
$order_id
)
public
function
searchBargainAgents
(
$type
,
$order_id
,
$site_id
)
{
{
$orderModel
=
new
OfficeOrderModel
();
$orderModel
=
new
OfficeOrderModel
();
$field
=
"a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone,
$field
=
"a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone,
...
@@ -1453,10 +1457,12 @@ class OfficeOrderLogService
...
@@ -1453,10 +1457,12 @@ class OfficeOrderLogService
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
$list
=
$houseAgents
->
getAgentsByHouseId
(
$fields
,
$params
);
break
;
break
;
case
2
:
case
2
:
$fields
=
"c.id,c.phone,c.name"
;
$userModel
=
new
Users
();
$userModel
=
new
Users
();
$params
[
"a.id"
]
=
$result
[
0
][
"user_id"
];
$params
[
"a.id"
]
=
$result
[
0
][
"user_id"
];
$params
[
"b.status"
]
=
0
;
$params
[
"c.status"
]
=
0
;
$list
=
$userModel
->
getAgentByUserId
(
$fields
,
$params
);
$params
[
"b.site_id"
]
=
$site_id
;
$list
=
$userModel
->
getAgentBySiteId
(
$fields
,
$params
);
break
;
break
;
case
3
:
//反签 == 报备人
case
3
:
//反签 == 报备人
$reportModel
=
new
OfficeOReportModel
();
$reportModel
=
new
OfficeOReportModel
();
...
...
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