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
bba6303c
Commit
bba6303c
authored
Oct 25, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩明细bug
parent
5e4979d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+4
-3
OBargainModel.php
application/model/OBargainModel.php
+3
-1
No files found.
application/index/controller/PerformanceInfo.php
View file @
bba6303c
...
@@ -55,7 +55,8 @@ class PerformanceInfo extends Basic
...
@@ -55,7 +55,8 @@ class PerformanceInfo extends Basic
}
}
// 商铺编号
// 商铺编号
if
(
$this
->
params
[
'house_id'
]
!=
NULL
)
{
if
(
$this
->
params
[
'house_id'
]
!=
NULL
)
{
$where
[
'Houses.id'
]
=
$this
->
params
[
'house_id'
];
$where
[
'Oorder.house_id'
]
=
$this
->
params
[
'house_id'
];
}
}
// 部门
// 部门
...
@@ -85,7 +86,7 @@ class PerformanceInfo extends Basic
...
@@ -85,7 +86,7 @@ class PerformanceInfo extends Basic
if
(
$this
->
params
[
'bargain_id'
]
!=
NULL
)
{
if
(
$this
->
params
[
'bargain_id'
]
!=
NULL
)
{
$where
[
'Obargain.id'
]
=
$this
->
params
[
'bargain_id'
];
$where
[
'Obargain.id'
]
=
$this
->
params
[
'bargain_id'
];
}
}
//dump($where);
$field
=
'Obargain.create_time,'
;
$field
=
'Obargain.create_time,'
;
$field
.=
'Obargain.id,'
;
$field
.=
'Obargain.id,'
;
$field
.=
'Obargain.father_id,'
;
$field
.=
'Obargain.father_id,'
;
...
@@ -152,7 +153,7 @@ class PerformanceInfo extends Basic
...
@@ -152,7 +153,7 @@ class PerformanceInfo extends Basic
}
}
// 商铺编号
// 商铺编号
if
(
$this
->
params
[
'house_id'
]
!=
NULL
)
{
if
(
$this
->
params
[
'house_id'
]
!=
NULL
)
{
$where
[
'
Houses.
id'
]
=
$this
->
params
[
'house_id'
];
$where
[
'
Oorder.house_
id'
]
=
$this
->
params
[
'house_id'
];
}
}
// 部门
// 部门
...
...
application/model/OBargainModel.php
View file @
bba6303c
...
@@ -1411,7 +1411,7 @@ class OBargainModel extends Model
...
@@ -1411,7 +1411,7 @@ class OBargainModel extends Model
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
->
select
();
->
select
();
//
echo $this->db_->getLastSql();
//
echo $this->db_->getLastSql();
return
$result
;
return
$result
;
}
}
...
@@ -1451,6 +1451,8 @@ class OBargainModel extends Model
...
@@ -1451,6 +1451,8 @@ class OBargainModel extends Model
->
join
(
"a_agents Agent"
,
"Obargain.agent_id = Agent.id"
,
"left"
)
->
join
(
"a_agents Agent"
,
"Obargain.agent_id = Agent.id"
,
"left"
)
->
join
(
'a_store Store'
,
'Agent.store_id = Store.id'
,
'left'
)
->
join
(
'a_store Store'
,
'Agent.store_id = Store.id'
,
'left'
)
->
join
(
'a_district District'
,
'Agent.district_id = District.id'
,
'left'
)
->
join
(
'a_district District'
,
'Agent.district_id = District.id'
,
'left'
)
->
join
(
'o_partial_commission PartialCommission'
,
'PartialCommission.bargain_id = Obargain.id'
,
'left'
)
->
where
(
$where
)
->
where
(
$where
)
->
count
();
->
count
();
// echo $this->db_->getLastSql();
// echo $this->db_->getLastSql();
...
...
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