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
cf3ad057
Commit
cf3ad057
authored
Jul 31, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约看铺
parent
12b554c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
WatchShop.php
application/index/controller/WatchShop.php
+5
-4
AppointWatchShop.php
application/model/AppointWatchShop.php
+2
-2
No files found.
application/index/controller/WatchShop.php
View file @
cf3ad057
...
...
@@ -72,13 +72,14 @@ class WatchShop extends Basic
$data
[
'list'
]
=
[];
$data
[
'total'
]
=
0
;
if
(
$params
[
'
type
'
]
==
1
)
{
$data
[
'list'
]
=
$applies
->
getAppointWatchShopList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'*'
,
$where
);
if
(
$params
[
'
check_status
'
]
==
1
)
{
$data
[
'list'
]
=
$applies
->
getAppointWatchShopList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'
a.
*'
,
$where
);
$data
[
'total'
]
=
$applies
->
getAppointWatchShopListTotal
(
$where
);
}
if
(
$params
[
'type'
]
==
2
)
{
$data
[
'list'
]
=
$applies
->
getAppointWatchOurList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'*'
,
$where
);
if
(
$params
[
'check_status'
]
==
2
)
{
$where
[
'b.agent_id'
]
=
$this
->
userId
;
$data
[
'list'
]
=
$applies
->
getAppointWatchOurList
(
$pageNo
,
$pageSize
,
'id DESC'
,
'a.*'
,
$where
);
$data
[
'total'
]
=
$applies
->
getAppointWatchOurTotal
(
$where
);
}
...
...
application/model/AppointWatchShop.php
View file @
cf3ad057
...
...
@@ -81,7 +81,7 @@ class AppointWatchShop extends BaseModel
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'u_users b'
,
'a.user_id=b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'b.
id=c.agent_
id'
,
'left'
)
->
join
(
'a_agents c'
,
'b.
agent_id=c.
id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
...
...
@@ -100,7 +100,7 @@ class AppointWatchShop extends BaseModel
return
$this
->
alias
(
'a'
)
->
join
(
'u_users b'
,
'a.user_id=b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'b.
id=c.agent_
id'
,
'left'
)
->
join
(
'a_agents c'
,
'b.
agent_id=c.
id'
,
'left'
)
->
where
(
$params
)
->
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