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
96a3cf30
Commit
96a3cf30
authored
Jul 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
site_id
parent
f6427d26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
FindShop.php
application/index/controller/FindShop.php
+2
-0
WatchShop.php
application/index/controller/WatchShop.php
+1
-0
UFindShop.php
application/model/UFindShop.php
+5
-3
No files found.
application/index/controller/FindShop.php
View file @
96a3cf30
...
@@ -43,10 +43,12 @@ class FindShop extends Basic
...
@@ -43,10 +43,12 @@ class FindShop extends Basic
if
(
$params
[
'is_my'
]
!=
0
&&
$params
[
'is_my'
]
!=
1
)
{
if
(
$params
[
'is_my'
]
!=
0
&&
$params
[
'is_my'
]
!=
1
)
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$conditions
[
'a.site_id'
]
=
$this
->
siteId
;
if
(
$params
[
'is_my'
]
==
0
&&
empty
(
$params
[
'agent_id'
]))
{
if
(
$params
[
'is_my'
]
==
0
&&
empty
(
$params
[
'agent_id'
]))
{
return
$this
->
response
(
"101"
,
"我的客户经纪人id不能为空"
);
return
$this
->
response
(
"101"
,
"我的客户经纪人id不能为空"
);
}
elseif
(
$params
[
'is_my'
]
==
0
&&
!
empty
(
$params
[
'agent_id'
])){
}
elseif
(
$params
[
'is_my'
]
==
0
&&
!
empty
(
$params
[
'agent_id'
])){
$conditions
[
"b.agent_id"
]
=
$params
[
'agent_id'
];
$conditions
[
"b.agent_id"
]
=
$params
[
'agent_id'
];
$conditions
[
'c.site_id'
]
=
$conditions
[
'a.site_id'
]
=
$this
->
siteId
;
}
}
if
(
isset
(
$params
[
'submit_time_start'
])
&&
isset
(
$params
[
'submit_time_end'
]))
{
if
(
isset
(
$params
[
'submit_time_start'
])
&&
isset
(
$params
[
'submit_time_end'
]))
{
$submit_time_start
=
$params
[
'submit_time_start'
];
$submit_time_start
=
$params
[
'submit_time_start'
];
...
...
application/index/controller/WatchShop.php
View file @
96a3cf30
...
@@ -79,6 +79,7 @@ class WatchShop extends Basic
...
@@ -79,6 +79,7 @@ class WatchShop extends Basic
if
(
$params
[
'check_status'
]
==
2
)
{
if
(
$params
[
'check_status'
]
==
2
)
{
$where
[
'a.appoint_agent_id'
]
=
$this
->
userId
;
$where
[
'a.appoint_agent_id'
]
=
$this
->
userId
;
$where
[
'd.site_id'
]
=
$this
->
siteId
;
$data
[
'list'
]
=
$applies
->
getAppointWatchOurList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'a.*'
,
$where
);
$data
[
'list'
]
=
$applies
->
getAppointWatchOurList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'a.*'
,
$where
);
$data
[
'total'
]
=
$applies
->
getAppointWatchOurTotal
(
$where
);
$data
[
'total'
]
=
$applies
->
getAppointWatchOurTotal
(
$where
);
}
}
...
...
application/model/UFindShop.php
View file @
96a3cf30
...
@@ -53,10 +53,11 @@ class UFindShop extends Model{
...
@@ -53,10 +53,11 @@ class UFindShop extends Model{
$params
[
"a.status"
]
=
0
;
$params
[
"a.status"
]
=
0
;
return
$this
->
db_
return
$this
->
db_
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"u_users b"
,
"a.user_id = b.id"
,
"left"
)
->
join
(
"u_user_agent c"
,
"a.user_id = c.user_id"
,
"left"
)
->
join
(
"u_users b"
,
"c.user_id = b.id"
,
"left"
)
->
field
(
$field
)
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
->
order
(
"id desc"
)
->
order
(
"
a.
id desc"
)
->
page
(
$page_no
)
->
page
(
$page_no
)
->
limit
(
$page_size
)
->
limit
(
$page_size
)
->
select
();
->
select
();
...
@@ -66,7 +67,8 @@ class UFindShop extends Model{
...
@@ -66,7 +67,8 @@ class UFindShop extends Model{
$params
[
"a.status"
]
=
0
;
$params
[
"a.status"
]
=
0
;
return
$this
->
db_
return
$this
->
db_
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"u_users b"
,
"a.user_id = b.id"
,
"left"
)
->
join
(
"u_user_agent c"
,
"a.user_id = c.user_id"
,
"left"
)
->
join
(
"u_users b"
,
"c.user_id = b.id"
,
"left"
)
->
field
(
$field
)
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
->
count
();
->
count
();
...
...
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