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
ad0cde0f
Commit
ad0cde0f
authored
Aug 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告取最新修改数据
parent
956a3862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Finance.php
application/index/controller/Finance.php
+1
-1
OBargainModel.php
application/model/OBargainModel.php
+2
-0
No files found.
application/index/controller/Finance.php
View file @
ad0cde0f
...
@@ -1454,7 +1454,7 @@ class Finance extends Basic
...
@@ -1454,7 +1454,7 @@ class Finance extends Basic
$m_bargain
=
new
OBargainModel
();
$m_bargain
=
new
OBargainModel
();
if
(
$this
->
request
->
isGet
())
{
if
(
$this
->
request
->
isGet
())
{
$field
=
'a.id,a.scale,a.agent_id,a.role,a.scale_fee'
;
$field
=
'a.id,a.scale,a.agent_id,a.role,a.scale_fee
,b.scale as new_scale,b.scale_fee as new_scale_fee
'
;
$data
=
$m_bargain
->
getBargainPartialDetail
(
$field
,
[
'id'
=>
$this
->
params
[
'bargain_id'
]]);
$data
=
$m_bargain
->
getBargainPartialDetail
(
$field
,
[
'id'
=>
$this
->
params
[
'bargain_id'
]]);
return
$this
->
response
(
200
,
''
,
$data
);
return
$this
->
response
(
200
,
''
,
$data
);
}
}
...
...
application/model/OBargainModel.php
View file @
ad0cde0f
...
@@ -1231,6 +1231,8 @@ class OBargainModel extends Model
...
@@ -1231,6 +1231,8 @@ class OBargainModel extends Model
->
order
(
"a.id asc"
)
->
order
(
"a.id asc"
)
->
find
();
->
find
();
$result
[
'scale'
]
=
empty
(
$result
[
'new_scale'
])
?
$result
[
'scale'
]
:
$result
[
'new_scale'
];
$result
[
'scale_fee'
]
=
empty
(
$result
[
'new_scale_fee'
])
?
$result
[
'scale_fee'
]
:
$result
[
'new_scale_fee'
];
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
$filed_agent
=
'a.id,a.name,a.phone,b.store_name,c.district_name,a.store_id,a.district_id'
;
$filed_agent
=
'a.id,a.name,a.phone,b.store_name,c.district_name,a.store_id,a.district_id'
;
$agent_info
=
$m_agent
->
getAgentsInfoByAgentId
(
$filed_agent
,
[
'agent_id'
=>
$result
[
'agent_id'
]
]);
$agent_info
=
$m_agent
->
getAgentsInfoByAgentId
(
$filed_agent
,
[
'agent_id'
=>
$result
[
'agent_id'
]
]);
...
...
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