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
ce4f97b6
Commit
ce4f97b6
authored
Oct 23, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表详情显示对外地址 报备时间轴显示对内地址
parent
2eb1fc11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
OrderLog.php
application/api_broker/controller/OrderLog.php
+2
-12
Shop.php
application/api_broker/controller/Shop.php
+6
-3
OrderLogService.php
application/api_broker/service/OrderLogService.php
+0
-0
OrderModel.php
application/model/OrderModel.php
+13
-3
No files found.
application/api_broker/controller/OrderLog.php
View file @
ce4f97b6
...
@@ -375,11 +375,6 @@ class OrderLog extends Basic
...
@@ -375,11 +375,6 @@ class OrderLog extends Basic
/**
/**
* 报备时间轴
* 报备时间轴
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
selectReportAll
()
public
function
selectReportAll
()
{
{
...
@@ -390,17 +385,12 @@ class OrderLog extends Basic
...
@@ -390,17 +385,12 @@ class OrderLog extends Basic
if
(
!
isset
(
$params
[
"order_id"
]))
{
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$data
=
$this
->
service_
->
selectListByOrderNo
(
$params
[
"order_id"
])
;
$data
=
[]
;
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
/**
/**
* 报备时间轴
* 报备时间轴
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
selectReportAllV2
()
public
function
selectReportAllV2
()
{
{
...
@@ -411,7 +401,7 @@ class OrderLog extends Basic
...
@@ -411,7 +401,7 @@ class OrderLog extends Basic
if
(
!
isset
(
$params
[
"order_id"
]))
{
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$data
=
$this
->
service_
->
selectListByOrderNoV2
(
$params
[
"order_id"
])
;
$data
=
[]
;
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
...
...
application/api_broker/controller/Shop.php
View file @
ce4f97b6
...
@@ -98,7 +98,8 @@ class Shop extends Basic
...
@@ -98,7 +98,8 @@ class Shop extends Basic
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_exclusive_type"
;
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_exclusive_type"
;
}
else
{
}
else
{
$field
=
"id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
// $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field
=
"id,external_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,is_exclusive_type"
;
,is_exclusive_type"
;
...
@@ -374,7 +375,8 @@ class Shop extends Basic
...
@@ -374,7 +375,8 @@ class Shop extends Basic
if
(
$params
[
'site_area'
]
==
3
)
{
if
(
$params
[
'site_area'
]
==
3
)
{
$field
=
"a.id,a.internal_title as title,a.internal_address as address,a.city,a.disc,a.business_district_id,a.status,
// $field = "a.id,a.internal_title as title,a.internal_address as address,a.city,a.disc,a.business_district_id,a.status,
$field
=
"a.id,a.external_title as title,a.internal_address as address,a.city,a.disc,a.business_district_id,a.status,
a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type,
a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type,
a.rent_price,a.management_fee,a.slotting_fee,a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,
a.rent_price,a.management_fee,a.slotting_fee,a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,
b.enter_num,b.internal_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
b.enter_num,b.internal_item_advantage as item_advantage,b.sign_rule,b.do_business_date, b.opening_date,b.traffic,
...
@@ -382,7 +384,8 @@ class Shop extends Basic
...
@@ -382,7 +384,8 @@ class Shop extends Basic
a.is_show,a.is_exclusive_type,a.update_time,a.external_title,a.external_address,b.external_item_advantage,b.agent_start_time,b.agent_end_time"
;
a.is_show,a.is_exclusive_type,a.update_time,a.external_title,a.external_address,b.external_item_advantage,b.agent_start_time,b.agent_end_time"
;
$conditions
[
'a.status'
]
=
array
(
"neq"
,
3
);
$conditions
[
'a.status'
]
=
array
(
"neq"
,
3
);
}
else
{
}
else
{
$field
=
"a.id,a.internal_title,a.internal_address,a.external_title,a.external_address,
//$field = "a.id,a.internal_title,a.internal_address,a.external_title,a.external_address,
$field
=
"a.id,a.external_title as internal_title,a.internal_address,a.external_title,a.external_address,
a.city,a.disc,a.business_district_id,a.status,a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,
a.city,a.disc,a.business_district_id,a.status,a.industry_type,a.shop_area_start,a.shop_area_end,a.shop_type,
a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type, a.rent_price,a.management_fee,a.slotting_fee,
a.residue_num,a.shop_sign,a.is_carefully_chosen,a.rent_type, a.rent_price,a.management_fee,a.slotting_fee,
a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,a.is_show,a.is_exclusive_type,
a.total,a.market_area,a.is_has_gas,a.file_path,a.longitude,a.latitude,a.is_show,a.is_exclusive_type,
...
...
application/api_broker/service/OrderLogService.php
View file @
ce4f97b6
This diff is collapsed.
Click to expand it.
application/model/OrderModel.php
View file @
ce4f97b6
...
@@ -37,20 +37,30 @@ class OrderModel extends Model
...
@@ -37,20 +37,30 @@ class OrderModel extends Model
}
}
/**
* @param $filed
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectOrderByOrderId
(
$filed
,
$params
)
public
function
selectOrderByOrderId
(
$filed
,
$params
)
{
{
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
"order_id"
]))
{
if
(
isset
(
$params
[
"order_id"
]))
{
$where_
[
"id"
]
=
$params
[
"order_id"
];
$where_
[
"
a.
id"
]
=
$params
[
"order_id"
];
}
}
if
(
isset
(
$params
[
"f_id"
]))
{
if
(
isset
(
$params
[
"f_id"
]))
{
$where_
[
"f_id"
]
=
$params
[
"f_id"
];
$where_
[
"
a.
f_id"
]
=
$params
[
"f_id"
];
}
}
if
(
isset
(
$params
[
"house_id"
]))
{
if
(
isset
(
$params
[
"house_id"
]))
{
$where_
[
"house_id"
]
=
$params
[
"house_id"
];
$where_
[
"
a.
house_id"
]
=
$params
[
"house_id"
];
}
}
$result
=
$this
->
db_
$result
=
$this
->
db_
->
field
(
$filed
)
->
field
(
$filed
)
->
alias
(
"a"
)
->
join
(
"g_houses b"
,
"a.house_id = b.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
select
();
->
select
();
//echo $this->db_->getLastSql();
//echo $this->db_->getLastSql();
...
...
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