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
11c7737f
Commit
11c7737f
authored
Nov 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app\model\HouseInfos
parent
c4a8655e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
64 deletions
+6
-64
AppointmentTime.php
application/api/controller/AppointmentTime.php
+0
-2
Index.php
application/api/controller/Index.php
+0
-2
TradeLog.php
application/api/controller/TradeLog.php
+6
-6
ReportService.php
application/api_broker/service/ReportService.php
+0
-1
Index.php
application/app_broker/controller/Index.php
+0
-1
AppChat.php
application/chat/controller/AppChat.php
+0
-4
Exclusive.php
application/task/controller/Exclusive.php
+0
-48
No files found.
application/api/controller/AppointmentTime.php
View file @
11c7737f
...
...
@@ -11,7 +11,6 @@ use app\model\GHouses;
use
app\model\GHousesImgs
;
use
app\model\GHousesToAgents
;
use
app\model\GImageDepot
;
use
app\model\HouseInfos
;
use
app\model\OReportModel
;
use
app\model\Users
;
...
...
@@ -38,7 +37,6 @@ class AppointmentTime extends Basic
{
parent
::
__construct
(
$request
);
$this
->
appointmentTimeModel
=
new
AppointWatchShop
();
//$this->houseInfoModel = new HouseInfos();
$this
->
houseInfoModel
=
new
GHouses
();
$this
->
dbImg
=
new
GHousesImgs
();
$this
->
appliesModel
=
new
Applies
();
...
...
application/api/controller/Index.php
View file @
11c7737f
...
...
@@ -13,8 +13,6 @@ namespace app\api\controller;
use
app\api\extend\Basic
;
use
app\model\GHouses
;
use
app\model\HouseInfos
;
use
app\model\JournalAccounts
;
use
app\model\OrderModel
;
use
app\model\Users
;
...
...
application/api/controller/TradeLog.php
View file @
11c7737f
...
...
@@ -4,8 +4,8 @@ namespace app\api\controller;
use
app\api\extend\Basic
;
use
app\model\Evaluate
;
use
app\model\GHouses
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\JournalAccounts
;
use
app\model\OrderModel
;
use
app\model\SubletModel
;
...
...
@@ -33,7 +33,7 @@ class TradeLog extends Basic
$this
->
journalAccountsMode
=
new
JournalAccounts
();
$this
->
orderModel
=
new
OrderModel
();
$this
->
dbImg
=
new
HouseImgs
();
$this
->
houseInfoModel
=
new
HouseInfo
s
();
$this
->
houseInfoModel
=
new
GHouse
s
();
$this
->
evaluateMode
=
new
Evaluate
();
$this
->
subletModel
=
new
SubletModel
();
}
...
...
@@ -69,9 +69,9 @@ class TradeLog extends Basic
return
$this
->
response
(
"200"
,
"请求数据为空"
);
}
foreach
(
$result
as
$key
=>
$val
)
{
$houseInfo
=
$this
->
houseInfoModel
->
getHouse
Details
(
"a.room_num_left,b.foreign_name"
,
array
(
"a.
id"
=>
$val
[
"house_id"
]
));
$houseInfo
=
$this
->
houseInfoModel
->
getHouse
Info
(
"residue_num,external_title"
,
array
(
"
id"
=>
$val
[
"house_id"
]
));
$result
[
$key
][
"room_num_left"
]
=
$houseInfo
[
"room_num_left"
];
$result
[
$key
][
"foreign_name"
]
=
$houseInfo
[
"
foreign_nam
e"
];
$result
[
$key
][
"foreign_name"
]
=
$houseInfo
[
"
external_titl
e"
];
$result
[
$key
][
"api_path"
]
=
IMG_PATH
;
$imgParam
[
"house_id"
]
=
$val
[
"house_id"
];
$imgParam
[
"imgtype"
]
=
1
;
//默认主图
...
...
@@ -114,9 +114,9 @@ class TradeLog extends Basic
return
$this
->
response
(
"200"
,
"请求数据为空"
);
}
foreach
(
$result
as
$key
=>
$val
)
{
$houseInfo
=
$this
->
houseInfoModel
->
getHouse
Details
(
"a.room_num_left,b.foreign_name"
,
array
(
"a.
id"
=>
$val
[
"house_id"
]
));
$houseInfo
=
$this
->
houseInfoModel
->
getHouse
Info
(
"residue_num,external_title"
,
array
(
"
id"
=>
$val
[
"house_id"
]
));
$result
[
$key
][
"room_num_left"
]
=
$houseInfo
[
"room_num_left"
];
$result
[
$key
][
"foreign_name"
]
=
$houseInfo
[
"
foreign_nam
e"
];
$result
[
$key
][
"foreign_name"
]
=
$houseInfo
[
"
external_titl
e"
];
$result
[
$key
][
"api_path"
]
=
IMG_PATH
;
$imgParam
[
"house_id"
]
=
$val
[
"house_id"
];
$imgParam
[
"imgtype"
]
=
1
;
//默认主图
...
...
application/api_broker/service/ReportService.php
View file @
11c7737f
...
...
@@ -5,7 +5,6 @@ namespace app\api_broker\service;
use
app\api\untils\GeTuiUntils
;
use
app\model\GHouses
;
use
app\model\GHousesToAgents
;
use
app\model\HouseInfos
;
use
app\model\OrderModel
;
use
app\model\OReportModel
;
use
app\model\Users
;
...
...
application/app_broker/controller/Index.php
View file @
11c7737f
...
...
@@ -5,7 +5,6 @@ namespace app\app_broker\controller;
use
app\api\untils\WxCallbackUntils
;
use
app\model\AppVersion
;
use
app\model\HouseImgs
;
use
app\model\HouseInfos
;
use
app\model\Users
;
use
app\model\UWxInfo
;
use
think\Controller
;
...
...
application/chat/controller/AppChat.php
View file @
11c7737f
...
...
@@ -17,11 +17,7 @@ use app\chat\utils\RPush;
use
app\extra\RedisPackage
;
use
app\model\ChatMsg
;
use
app\model\GHouses
;
use
app\model\GHousesExt
;
use
app\model\GHousesImgs
;
use
app\model\HouseImgs
;
use
app\model\HouseinfoExts
;
use
app\model\HouseInfos
;
use
app\model\MPushMessage
;
use
app\model\Users
;
use
think\Cache
;
...
...
application/task/controller/Exclusive.php
deleted
100755 → 0
View file @
c4a8655e
<?php
/**
* Description of Autoexec
*
* @author : hujun
* @date : 2018-1-9 14:39:26
* @internal : 自动执行
*/
namespace
app\task\controller
;
use
app\model\HouseInfos
;
use
think\Log
;
class
Exclusive
{
/**
* 独家时间过期下架商铺
*
* @return string
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
exclusiveExpirationTime
()
{
$house
=
new
HouseInfos
();
$house_data
=
$house
->
field
(
'id,room_num_left,exclusive_end'
)
->
where
(
'exclusive_type'
,
1
)
->
where
(
'is_delete'
,
0
)
->
where
(
'room_num_left'
,
'<>'
,
0
)
->
select
();
$result
=
array
();
if
(
$house_data
)
{
$insert
=
array
();
foreach
(
$house_data
as
$k
=>
$v
)
{
if
((
strtotime
(
$v
[
'exclusive_end'
]
.
' 23:59:59'
)
>
time
())
&&
(
$v
[
'exclusive_end'
]
!=
NULL
))
{
continue
;
}
$insert
[
$k
][
'id'
]
=
$v
[
'id'
];
$insert
[
$k
][
'room_num_left'
]
=
0
;
}
$result
=
$house
->
saveAll
(
$insert
);
}
Log
::
record
(
'exclusiveExpirationTime:'
.
json_encode
(
$result
),
'TASK'
);
return
;
}
}
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