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
b5d094e4
Commit
b5d094e4
authored
May 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款审核
parent
3f3ba255
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
Finance.php
application/index/controller/Finance.php
+9
-5
OBargainModel.php
application/model/OBargainModel.php
+3
-1
No files found.
application/index/controller/Finance.php
View file @
b5d094e4
...
...
@@ -180,10 +180,7 @@ class Finance extends Basic
}
else
{
$bargain
=
new
OBargainModel
();
$fields
=
'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee'
;
$where
[
'a.father_id'
]
=
0
;
$where
[
'c.is_del'
]
=
0
;
// $where['a.check_status'] = 0;
$where
[
'a.status'
]
=
10
;
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
$data
[
'data'
]
=
$bargain
->
getBargainInfo
(
$fields
,
$where
);
}
...
...
@@ -330,6 +327,9 @@ class Finance extends Basic
* 收款记录
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
payLogList
()
{
$data
[
'code'
]
=
200
;
...
...
@@ -355,7 +355,11 @@ class Finance extends Basic
/**
* 报备时间轴
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectReportAll
()
{
...
...
@@ -459,7 +463,7 @@ class Finance extends Basic
$where
[
'a.status'
]
=
1
;
$refund
=
new
ORefundModel
();
$fields
=
'a.id,a.agent_name,a.name,a.bank,a.card_no,a.create_time,a.refund_money,b.report_agent_name,b.user_name,
b
.order_id'
;
$fields
=
'a.id,a.agent_name,a.name,a.bank,a.card_no,a.create_time,a.refund_money,b.report_agent_name,b.user_name,
a
.order_id'
;
$data
[
'data'
][
'list'
]
=
$refund
->
getCheckRefundList
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
][
'total'
]
=
$refund
->
getCheckRefundListTotal
(
$where
);
...
...
application/model/OBargainModel.php
View file @
b5d094e4
...
...
@@ -73,12 +73,13 @@ class OBargainModel extends Model
*
* @param $filed
* @param $params
* @param string $order
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectBargainByOrderNo
(
$filed
,
$params
)
public
function
selectBargainByOrderNo
(
$filed
,
$params
,
$order
=
'id desc'
)
{
$where_
=
[];
if
(
isset
(
$params
[
"report_id"
]))
{
...
...
@@ -97,6 +98,7 @@ class OBargainModel extends Model
return
$this
->
db_
->
field
(
$filed
)
->
where
(
$where_
)
->
order
(
$order
)
->
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