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
5c952de2
Commit
5c952de2
authored
May 31, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页成交报告中提交的业态/品牌显示到详情页已入驻
parent
e135d4b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
Shop.php
application/api_broker/controller/Shop.php
+7
-0
Basic.php
application/api_broker/extend/Basic.php
+1
-1
OBargainModel.php
application/model/OBargainModel.php
+21
-0
No files found.
application/api_broker/controller/Shop.php
View file @
5c952de2
...
@@ -9,6 +9,7 @@ use app\model\AttentionModel;
...
@@ -9,6 +9,7 @@ use app\model\AttentionModel;
use
app\model\GHouses
;
use
app\model\GHouses
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesImgs
;
use
app\model\GHousesImgs
;
use
app\model\OBargainModel
;
use
app\model\Regions
;
use
app\model\Regions
;
use
think\Log
;
use
think\Log
;
...
@@ -292,6 +293,12 @@ class Shop extends Basic
...
@@ -292,6 +293,12 @@ class Shop extends Basic
if
(
count
(
$attResult
)
>
0
)
if
(
count
(
$attResult
)
>
0
)
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
$result
[
"attention"
]
=
$attResult
[
0
][
"id"
];
}
}
//todo 查询成交报告中的提交的业态拼接到已入驻中
$bargaomModel
=
new
OBargainModel
();
$str
=
$bargaomModel
->
selectBargainListByHouseId
(
$params
[
"id"
]);
$result
[
"enter_num"
]
.=
$str
;
$verify
=
new
VerifyService
();
$verify
=
new
VerifyService
();
$agentId
=
$verify
->
getPanpartyAgentsByHouseId
(
$params
[
"id"
]);
$agentId
=
$verify
->
getPanpartyAgentsByHouseId
(
$params
[
"id"
]);
$result
[
"panParty"
]
=
$agentId
;
$result
[
"panParty"
]
=
$agentId
;
...
...
application/api_broker/extend/Basic.php
View file @
5c952de2
...
@@ -96,7 +96,7 @@ class Basic extends Controller
...
@@ -96,7 +96,7 @@ class Basic extends Controller
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
//过滤掉不需要验证token的接口
//过滤掉不需要验证token的接口
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
$this
->
tokenVerify
();
//
$this->tokenVerify();
// $this->userAuth(trim($requestPath));
// $this->userAuth(trim($requestPath));
}
}
unset
(
$this
->
params
[
"AuthToken"
]);
unset
(
$this
->
params
[
"AuthToken"
]);
...
...
application/model/OBargainModel.php
View file @
5c952de2
...
@@ -106,6 +106,27 @@ class OBargainModel extends Model
...
@@ -106,6 +106,27 @@ class OBargainModel extends Model
->
select
();
->
select
();
}
}
/**
* 根据商铺号查询成交报告中业态
* @param $house_id
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
selectBargainListByHouseId
(
$house_id
){
$params
[
"b.house_id"
]
=
$house_id
;
$params
[
"a.status"
]
=
array
(
"not in"
,
"21,30"
);
$data
=
$this
->
db_
->
field
(
"a.id,a.industry_type"
)
->
alias
(
"a"
)
->
join
(
"o_order b"
,
"a.order_id=b.id"
,
"left"
)
->
where
(
$params
)
->
select
();
$str
=
""
;
foreach
(
$data
as
$item
){
$str
.=
" "
.
$item
[
"industry_type"
];
}
return
$str
;
}
/**
/**
* 查询成交报告记录
* 查询成交报告记录
*
*
...
...
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