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
9e9f2286
Commit
9e9f2286
authored
Jun 21, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error
parent
902a33d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
OfficeOMarchInModel.php
application/model/OfficeOMarchInModel.php
+8
-7
No files found.
application/model/OfficeOMarchInModel.php
View file @
9e9f2286
...
@@ -352,7 +352,7 @@ class OfficeOMarchInModel extends Model
...
@@ -352,7 +352,7 @@ class OfficeOMarchInModel extends Model
->
join
(
'o_report d'
,
'a.report_id = d.id'
,
'left'
)
->
join
(
'o_report d'
,
'a.report_id = d.id'
,
'left'
)
->
join
(
'a_store e'
,
'd.report_store_id = e.id'
,
'left'
)
->
join
(
'a_store e'
,
'd.report_store_id = e.id'
,
'left'
)
->
join
(
'office_g_room f'
,
'c.house_id = f.id'
,
'left'
)
->
join
(
'office_g_room f'
,
'c.house_id = f.id'
,
'left'
)
->
join
(
'office_g_building g'
,
'f.building = g.id'
,
'left'
)
->
join
(
'office_g_building g'
,
'f.building
_id
= g.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
order
(
$order_
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
...
@@ -362,22 +362,23 @@ class OfficeOMarchInModel extends Model
...
@@ -362,22 +362,23 @@ class OfficeOMarchInModel extends Model
return
$result
;
return
$result
;
}
}
/**
* @param $field
* @param string $params
* @return int|string
*/
public
function
findmarchInListCount
(
$field
,
$params
=
''
)
public
function
findmarchInListCount
(
$field
,
$params
=
''
)
{
{
return
$this
->
field
(
$field
)
$result
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.reception_id = b.id'
,
'left'
)
->
join
(
'a_agents b'
,
'a.reception_id = b.id'
,
'left'
)
->
join
(
'o_order c'
,
'a.order_id = c.id'
,
'left'
)
->
join
(
'o_order c'
,
'a.order_id = c.id'
,
'left'
)
->
join
(
'o_report d'
,
'a.report_id = d.id'
,
'left'
)
->
join
(
'o_report d'
,
'a.report_id = d.id'
,
'left'
)
->
join
(
'a_store e'
,
'd.report_store_id = e.id'
,
'left'
)
->
join
(
'a_store e'
,
'd.report_store_id = e.id'
,
'left'
)
->
join
(
'office_g_room f'
,
'c.house_id = f.id'
,
'left'
)
->
join
(
'office_g_room f'
,
'c.house_id = f.id'
,
'left'
)
->
join
(
'office_g_building g'
,
'f.building = g.id'
,
'left'
)
->
join
(
'office_g_building g'
,
'f.building
_id
= g.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
count
();
->
count
();
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