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
31285933
Commit
31285933
authored
Jun 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
where
parent
7071617b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
Finance.php
application/index/controller/Finance.php
+2
-2
OfficeBargain.php
application/index/controller/OfficeBargain.php
+2
-2
AAgents.php
application/model/AAgents.php
+4
-0
OBargainModel.php
application/model/OBargainModel.php
+1
-1
OfficeOBargainModel.php
application/model/OfficeOBargainModel.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
31285933
...
...
@@ -2760,9 +2760,9 @@ class Finance extends Basic
if
(
!
empty
(
$where
))
{
//获取被修改人信息
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
agentBargainAll
(
'a.id,a.store_id,a.district_id,
b.creat
e_time'
,
$where
);
$agent_data
=
$m_agent
->
agentBargainAll
(
'a.id,a.store_id,a.district_id,
d.incom
e_time'
,
$where
);
foreach
(
$agent_data
as
$k
=>
$v
)
{
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'
creat
e_time'
]));
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'
incom
e_time'
]));
$this
->
totalOfficialReceipts
(
$v
[
'id'
],
$v
[
'district_id'
],
$v
[
'store_id'
],
$create_time
);
}
$data
[
'status'
]
=
'successful'
;
...
...
application/index/controller/OfficeBargain.php
View file @
31285933
...
...
@@ -830,9 +830,9 @@ class OfficeBargain extends Basic
if
(
!
empty
(
$where
))
{
//获取被修改人信息
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
agentBargainOfficeAll
(
'a.id,a.store_id,a.district_id,
b.creat
e_time'
,
$where
);
$agent_data
=
$m_agent
->
agentBargainOfficeAll
(
'a.id,a.store_id,a.district_id,
d.incom
e_time'
,
$where
);
foreach
(
$agent_data
as
$k
=>
$v
)
{
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'
creat
e_time'
]));
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'
incom
e_time'
]));
$this
->
totalOfficialReceipts
(
$v
[
'id'
],
$v
[
'district_id'
],
$v
[
'store_id'
],
$create_time
);
}
$data
[
'status'
]
=
'successful'
;
...
...
application/model/AAgents.php
View file @
31285933
...
...
@@ -1346,6 +1346,8 @@ class AAgents extends BaseModel
$data
=
$this
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'o_bargain b'
,
'a.id = b.agent_id'
,
'left'
)
->
join
(
"o_partial_commission c"
,
"b.id = c.bargain_id"
,
"left"
)
->
join
(
'o_real_income d'
,
'c.real_income_id = d.id'
,
'left'
)
->
where
(
$where
)
->
select
();
}
catch
(
\Exception
$e
)
{
...
...
@@ -1364,6 +1366,8 @@ class AAgents extends BaseModel
$data
=
$this
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'office_o_bargain b'
,
'a.id = b.agent_id'
,
'left'
)
->
join
(
"office_o_partial_commission c"
,
"b.id = c.bargain_id"
,
"left"
)
->
join
(
'office_o_real_income d'
,
'c.real_income_id = d.id'
,
'left'
)
->
where
(
$where
)
->
select
();
}
catch
(
\Exception
$e
)
{
...
...
application/model/OBargainModel.php
View file @
31285933
...
...
@@ -640,7 +640,7 @@ class OBargainModel extends Model
if
(
isset
(
$params
[
"create_time"
]))
{
$where_
[
"c.income_time"
]
=
$params
[
"create_time"
];
}
$where_
[
"a.status"
]
=
array
(
"in"
,
"10,11,13"
);
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
"a"
)
...
...
application/model/OfficeOBargainModel.php
View file @
31285933
...
...
@@ -571,6 +571,7 @@ class OfficeOBargainModel extends Model
if
(
isset
(
$params
[
"create_time"
]))
{
$where_
[
"c.income_time"
]
=
$params
[
"create_time"
];
}
$where_
[
"a.status"
]
=
array
(
"in"
,
"10,11,13"
);
return
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
...
...
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