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
66939330
Commit
66939330
authored
Jul 08, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
765ef5c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
18 deletions
+45
-18
ImageDepot.php
application/index/controller/ImageDepot.php
+9
-17
UserAgentService.php
application/index/service/UserAgentService.php
+21
-0
UserLogService.php
application/index/service/UserLogService.php
+1
-1
Users.php
application/model/Users.php
+14
-0
No files found.
application/index/controller/ImageDepot.php
View file @
66939330
...
@@ -2,22 +2,9 @@
...
@@ -2,22 +2,9 @@
namespace
app\index\controller
;
namespace
app\index\controller
;
use
app\api\service\ConvertCouponService
;
use
app\api\untils\MessageUntils
;
use
app\api_broker\service\VipService
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\index\service\HouseService
;
use
app\index\service\UserAgentService
;
use
app\index\service\ImageDepotService
;
use
app\index\service\PositionService
;
use
app\index\service\UserService
;
use
app\model\AAgents
;
use
app\model\GBusinessDistrict
;
use
app\model\GImageDepot
;
use
app\model\GImageDepot
;
use
app\model\MetroStations
;
use
app\model\OReportModel
;
use
app\model\Users
;
use
think\Cache
;
use
think\Log
;
/**
/**
* zhuwei
* zhuwei
...
@@ -185,9 +172,14 @@ class ImageDepot extends Basic
...
@@ -185,9 +172,14 @@ class ImageDepot extends Basic
public
function
ceshi
()
public
function
ceshi
()
{
{
$s
=
new
PositionService
();
// $s = new PositionService();
// $res = $s->getPositionDistance('31.067059,121.518854','31.079655,121.51713');
//
$res
=
$s
->
getPositionDistance
(
'31.170841,121.463858'
,
'31.17265,121.464914'
);
// // $res = $s->getPositionDistance('31.067059,121.518854','31.079655,121.51713');
// $res = $s->getPositionDistance('31.170841,121.463858','31.17265,121.464914');
// dump($res);
$s
=
new
UserAgentService
();
$res
=
$s
->
moveHouse
();
dump
(
$res
);
dump
(
$res
);
}
}
...
...
application/index/service/UserAgentService.php
View file @
66939330
...
@@ -99,4 +99,24 @@ class UserAgentService
...
@@ -99,4 +99,24 @@ class UserAgentService
$change_res
=
$this
->
m_user_agent
->
updateUserAgent
(
$where
,
$params
);
$change_res
=
$this
->
m_user_agent
->
updateUserAgent
(
$where
,
$params
);
}
}
/**
* 搬家
*/
public
function
moveHouse
(){
$pageNo
=
1
;
$pageSize
=
10
;
$field
=
"id as user_id,b.id as agent_id,b.site_id"
;
$user_list
=
$this
->
m_user
->
moveHouse
(
$field
,
$pageNo
,
$pageSize
,
"a.id desc"
);
/**
`user_id` int(10) DEFAULT NULL,
`site_id` int(6) DEFAULT '10001' COMMENT '站点id ',
`agent_id` int(10) DEFAULT NULL COMMENT '经纪人id注意:上海的客方可以是杭州的经纪人',
`is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除 0正常 1删除',
`create_time` timestamp NULL DEFAULT NULL,
`update_time`
*/
return
$user_list
;
}
}
}
\ No newline at end of file
application/index/service/UserLogService.php
View file @
66939330
...
@@ -120,7 +120,7 @@ class UserLogService
...
@@ -120,7 +120,7 @@ class UserLogService
//客方
//客方
$s_user_agent
=
new
UserAgentService
();
$s_user_agent
=
new
UserAgentService
();
$user_agent_res
=
$s_user_agent
->
selectUserAgent
(
$user_id
);
$user_agent_res
=
$s_user_agent
->
selectUserAgent
(
$user_id
);
$data
[
'customer_relegation_list'
]
=
$user_agent_res
?
$user_agent_res
:
null
;
$data
[
'customer_relegation_list'
]
=
$user_agent_res
?
$user_agent_res
:
[]
;
return
[
"code"
=>
200
,
"data"
=>
$data
];
return
[
"code"
=>
200
,
"data"
=>
$data
];
}
}
...
...
application/model/Users.php
View file @
66939330
...
@@ -1112,5 +1112,19 @@ class Users extends Model
...
@@ -1112,5 +1112,19 @@ class Users extends Model
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
}
}
public
function
moveHouse
(
$field
,
$pageNo
,
$pageSize
,
$order
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"b.agent_id=a.id"
,
"left"
)
->
field
(
$field
)
// ->where($params)
->
order
(
$order
)
->
page
(
$pageNo
)
->
limit
(
$pageSize
)
->
select
();
return
$result
;
}
}
}
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