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
9a30caa2
Commit
9a30caa2
authored
Jun 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model
parent
065dac60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Finance.php
application/index/controller/Finance.php
+1
-1
OBargainModel.php
application/model/OBargainModel.php
+2
-2
No files found.
application/index/controller/Finance.php
View file @
9a30caa2
...
@@ -2791,7 +2791,7 @@ class Finance extends Basic
...
@@ -2791,7 +2791,7 @@ class Finance extends Basic
if
(
!
empty
(
$where
))
{
if
(
!
empty
(
$where
))
{
//获取被修改人信息
//获取被修改人信息
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
agentBargain
Office
All
(
'a.id,a.store_id,a.district_id,d.income_time,b.create_time'
,
$where
);
$agent_data
=
$m_agent
->
agentBargainAll
(
'a.id,a.store_id,a.district_id,d.income_time,b.create_time'
,
$where
);
foreach
(
$agent_data
as
$k
=>
$v
)
{
foreach
(
$agent_data
as
$k
=>
$v
)
{
$income_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'income_time'
]));
$income_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'income_time'
]));
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'create_time'
]));
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'create_time'
]));
...
...
application/model/OBargainModel.php
View file @
9a30caa2
...
@@ -1644,8 +1644,8 @@ class OBargainModel extends Model
...
@@ -1644,8 +1644,8 @@ class OBargainModel extends Model
return
$this
->
db_
->
alias
(
'a'
)
return
$this
->
db_
->
alias
(
'a'
)
->
field
(
$field
)
->
field
(
$field
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'o
ffice_o
_partial_commission c'
,
'a.id = c.bargain_id'
,
'left'
)
->
join
(
'o_partial_commission c'
,
'a.id = c.bargain_id'
,
'left'
)
->
join
(
'o
ffice_o
_real_income d'
,
'c.real_income_id = d.id'
,
'left'
)
->
join
(
'o_real_income d'
,
'c.real_income_id = d.id'
,
'left'
)
->
where
(
$where
)
->
where
(
$where
)
->
select
();
->
select
();
}
}
...
...
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