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
21c5fd1a
Commit
21c5fd1a
authored
May 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告详情修改
parent
61025ec9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Finance.php
application/index/controller/Finance.php
+13
-0
No files found.
application/index/controller/Finance.php
View file @
21c5fd1a
...
@@ -209,10 +209,12 @@ class Finance extends Basic
...
@@ -209,10 +209,12 @@ class Finance extends Basic
$m_fee
=
new
OFee
();
$m_fee
=
new
OFee
();
$update_data
=
[];
$update_data
=
[];
//实收佣金
if
(
count
(
$this
->
params
[
'practical_fee'
])
>
5
)
{
if
(
count
(
$this
->
params
[
'practical_fee'
])
>
5
)
{
return
$this
->
response
(
'101'
,
'实收佣金数量超过限制'
);
return
$this
->
response
(
'101'
,
'实收佣金数量超过限制'
);
}
}
//应收总佣金
if
(
!
empty
(
$this
->
params
[
'commission'
]))
{
if
(
!
empty
(
$this
->
params
[
'commission'
]))
{
$update_data
[
'commission'
]
=
$this
->
params
[
'commission'
];
$update_data
[
'commission'
]
=
$this
->
params
[
'commission'
];
}
}
...
@@ -221,9 +223,20 @@ class Finance extends Basic
...
@@ -221,9 +223,20 @@ class Finance extends Basic
$update_data
[
'content'
]
=
$this
->
params
[
'content'
];
$update_data
[
'content'
]
=
$this
->
params
[
'content'
];
}
}
//是否开业
if
(
isset
(
$this
->
params
[
'is_open'
]))
{
$update_data
[
'is_open'
]
=
$this
->
params
[
'is_open'
];
}
//成交类型 10出租 20 增佣 30 代理 40 好处费
if
(
!
empty
(
$this
->
params
[
'trade_type'
]))
{
$update_data
[
'trade_type'
]
=
$this
->
params
[
'trade_type'
];
}
$data
[
'data'
]
=
$m_bargain
->
updateBargainById
(
$this
->
params
[
'id'
],
$update_data
);
$data
[
'data'
]
=
$m_bargain
->
updateBargainById
(
$this
->
params
[
'id'
],
$update_data
);
if
(
$data
[
'data'
]
==
1
)
{
if
(
$data
[
'data'
]
==
1
)
{
//新增实收佣金 array 5
$m_fee
->
addFee
(
$this
->
params
[
'practical_fee'
],
$this
->
params
[
'id'
],
0
,
$this
->
userId
);
$m_fee
->
addFee
(
$this
->
params
[
'practical_fee'
],
$this
->
params
[
'id'
],
0
,
$this
->
userId
);
}
else
{
}
else
{
$data
[
'code'
]
=
101
;
$data
[
'code'
]
=
101
;
...
...
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