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
dba2d09c
Commit
dba2d09c
authored
Jun 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0cb658c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
Finance.php
application/index/controller/Finance.php
+8
-11
No files found.
application/index/controller/Finance.php
View file @
dba2d09c
...
...
@@ -26,12 +26,9 @@ use think\exception\PDOException;
class
Finance
extends
Basic
{
/**
*
成交报告
* 成交报告
*
* @return \think\Response|\think\response\View
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @return \think\Response
*/
public
function
reportList
()
{
...
...
@@ -143,7 +140,7 @@ class Finance extends Basic
$data
[
'data'
][
'list'
]
=
$bargain
->
getBargainList
(
$pageNo
,
$pageSize
,
$order
,
$fields
,
$where
,
$audit_level
);
$data
[
'data'
][
'total'
]
=
$bargain
->
getBargainTotal
(
$where
,
$audit_level
);
$data
[
'data'
][
'step'
]
=
$check_status
;
}
catch
(
\
PDO
Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$this
->
response
(
101
,
'内部错误,获取列表失败!请联系运营。'
);
}
...
...
@@ -178,7 +175,7 @@ class Finance extends Basic
try
{
$status
=
$bargain
->
addCheckBargain
(
$this
->
params
[
'id'
],
$params
,
$this
->
params
[
'source'
],
$this
->
params
[
'status'
]);
}
catch
(
PDO
Exception
$e
)
{
}
catch
(
\
Exception
$e
)
{
return
$this
->
response
(
101
,
'内部错误,审核失败!请联系运营。'
);
}
...
...
@@ -318,7 +315,7 @@ class Finance extends Basic
$content
=
'[应收总佣金:'
.
$update_data
[
'commission'
]
.
']'
.
implode
(
' '
,
$log_data
);
$this
->
editRecordLog
((
int
)
$this
->
params
[
"id"
],
$content
,
1
,
''
,
$update_data
[
'is_open'
]);
}
catch
(
\
PDO
Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$this
->
response
(
101
,
'内部错误,修改成交报告失败!请联系运营。'
);
}
...
...
@@ -352,7 +349,7 @@ class Finance extends Basic
try
{
$data
[
'data'
]
=
$bargain
->
addBargainCommission
(
$this
->
params
[
'id'
],
$this
->
userId
,
$this
->
params
[
'agent_id'
],
$this
->
params
[
'role'
],
$this
->
params
[
'scale_fee'
],
$this
->
params
[
'scale'
],
1
);
}
catch
(
\
PDO
Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$this
->
response
(
101
,
'内部错误,新增分佣提成失败!请联系运营。'
);
}
...
...
@@ -623,7 +620,7 @@ class Finance extends Basic
try
{
$data
[
'data'
][
'list'
]
=
$m_commission
->
getCommissionBargainList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
$data
[
'data'
][
'total'
]
=
$m_commission
->
getCommissionBargainListTotal
(
$where
);
}
catch
(
\
PDO
Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$this
->
response
(
101
,
'内部错误,获取分佣提成明细列表失败!请联系运营。'
);
}
...
...
@@ -677,7 +674,7 @@ class Finance extends Basic
$m_commission
=
new
OPartialCommission
();
try
{
$data
=
$m_commission
->
getCommissionBargainColumn
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
}
catch
(
\
PDO
Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
'<script>alert("导出分佣提成明细列表失败");window.close();</script>'
;
}
...
...
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