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
5ac20335
Commit
5ac20335
authored
Dec 17, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1210-v3.0.2' into 1210-v3.0.2
parents
e88e7afe
66ee9301
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
9 deletions
+50
-9
Finance.php
application/index/controller/Finance.php
+22
-1
Basic.php
application/index/extend/Basic.php
+1
-1
OPayLogAdjustment.php
application/model/OPayLogAdjustment.php
+1
-1
OPayLogModel.php
application/model/OPayLogModel.php
+25
-6
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
5ac20335
...
@@ -3126,7 +3126,7 @@ class Finance extends Basic
...
@@ -3126,7 +3126,7 @@ class Finance extends Basic
return
$this
->
response
(
$code
,
'无调整信息'
);
return
$this
->
response
(
$code
,
'无调整信息'
);
}
}
$num
=
$m_pay_adjustment
->
editData
([
'is_del'
=>
0
],
$this
->
params
[
'id'
]);
$num
=
$m_pay_adjustment
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
if
(
$num
>
0
)
{
if
(
$num
>
0
)
{
$m_pay
=
new
OPayLogModel
();
$m_pay
=
new
OPayLogModel
();
...
@@ -3141,4 +3141,25 @@ class Finance extends Basic
...
@@ -3141,4 +3141,25 @@ class Finance extends Basic
return
$this
->
response
(
$code
,
$msg
);
return
$this
->
response
(
$code
,
$msg
);
}
}
public
function
getAdjustmentDetail
()
{
$code
=
101
;
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$adjustment_data
=
$m_pay_adjustment
->
getAdjustmentList
(
'id,new_paylog_id,paylog_id,money'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
if
(
empty
(
$adjustment_data
[
0
][
'id'
]))
{
return
$this
->
response
(
$code
,
'没有该调整详情'
);
}
$m_pay
=
new
OPayLogModel
();
$result
[
'adjustment'
]
=
$m_pay
->
getOrderHouse
(
'a.id,a.order_id,b.house_id,c.internal_address,a.income_time,a.type,a.money'
,
[
'a.id'
=>
$adjustment_data
[
0
][
'new_paylog_id'
]]);
$result
[
'adjustment_old'
]
=
$m_pay
->
getOrderHouse
(
'a.id,a.order_id,b.house_id,c.internal_address,a.income_time,a.type,a.type'
,
[
'a.id'
=>
$adjustment_data
[
0
][
'paylog_id'
]]);
$result
[
'money'
]
=
$adjustment_data
[
0
][
'money'
];
$result
[
'id'
]
=
$adjustment_data
[
0
][
'id'
];
$code
=
200
;
return
$this
->
response
(
$code
,
''
,
$result
);
}
}
}
application/index/extend/Basic.php
View file @
5ac20335
...
@@ -221,7 +221,7 @@ class Basic extends Controller
...
@@ -221,7 +221,7 @@ class Basic extends Controller
if
(
empty
(
$is_auth
)
&&
$this
->
userId
!=
1
)
{
if
(
empty
(
$is_auth
)
&&
$this
->
userId
!=
1
)
{
if
(
$this
->
request
->
isAjax
()){
if
(
$this
->
request
->
isAjax
()){
echo
json_encode
(
array
(
"code"
=>
"300"
,
"msg"
=>
"没有权限!"
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
//
echo json_encode(array( "code" => "300", "msg" => "没有权限!", "data" => [], "type" => "json" ));exit;
}
else
{
}
else
{
$this
->
error
(
'没有当前页面权限'
);
exit
;
$this
->
error
(
'没有当前页面权限'
);
exit
;
}
}
...
...
application/model/OPayLogAdjustment.php
View file @
5ac20335
...
@@ -28,7 +28,7 @@ class OPayLogAdjustment extends BaseModel{
...
@@ -28,7 +28,7 @@ class OPayLogAdjustment extends BaseModel{
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
getAdjustmentList
(
$field
,
$params
){
public
function
getAdjustmentList
(
$field
,
$params
){
return
$this
->
db_
return
$this
->
db_
->
field
(
$field
)
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
...
...
application/model/OPayLogModel.php
View file @
5ac20335
...
@@ -456,6 +456,7 @@ class OPayLogModel extends Model
...
@@ -456,6 +456,7 @@ class OPayLogModel extends Model
->
select
();
->
select
();
}
}
/**
/**
* @param $filed
* @param $filed
* @param $params
* @param $params
...
@@ -464,14 +465,31 @@ class OPayLogModel extends Model
...
@@ -464,14 +465,31 @@ class OPayLogModel extends Model
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
selectPayLogList
(
$filed
,
$params
)
{
public
function
selectPayLogList
(
$filed
,
$params
)
return
$this
->
db_
{
->
field
(
$filed
)
return
$this
->
db_
->
field
(
$filed
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"o_order b"
,
"a.order_id = b.id"
,
"left"
)
->
join
(
"o_order b"
,
"a.order_id = b.id"
,
"left"
)
->
join
(
"o_bargain c"
,
"c.order_id = b.id"
,
"left"
)
->
join
(
"o_bargain c"
,
"c.order_id = b.id"
,
"left"
)
->
join
(
"o_report d"
,
"a.report_id = d.id"
,
"left"
)
->
join
(
"o_report d"
,
"a.report_id = d.id"
,
"left"
)
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
}
}
/**
* @param $field
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getOrderHouse
(
$field
,
$where
)
{
return
$this
->
db_
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'o_order b'
,
'a.order_id=b.id'
,
'left'
)
->
join
(
'g_houses c'
,
'b.house_id=c.id'
,
'left'
)
->
where
(
$where
)
->
select
();
}
}
}
\ No newline at end of file
application/route.php
View file @
5ac20335
...
@@ -279,6 +279,7 @@ Route::group('index', [
...
@@ -279,6 +279,7 @@ Route::group('index', [
'getBeForNum'
=>
[
'index/Finance/getBeForNum'
,
[
'method'
=>
'get'
]],
//getBeForNum
'getBeForNum'
=>
[
'index/Finance/getBeForNum'
,
[
'method'
=>
'get'
]],
//getBeForNum
'getAdjustment'
=>
[
'index/Finance/getAdjustment'
,
[
'method'
=>
'get'
]],
//剩余可以调整或退款的钱
'getAdjustment'
=>
[
'index/Finance/getAdjustment'
,
[
'method'
=>
'get'
]],
//剩余可以调整或退款的钱
'delAdjustment'
=>
[
'index/Finance/delAdjustment'
,
[
'method'
=>
'post'
]],
//撤销调整
'delAdjustment'
=>
[
'index/Finance/delAdjustment'
,
[
'method'
=>
'post'
]],
//撤销调整
'getAdjustmentDetail'
=>
[
'index/Finance/getAdjustmentDetail'
,
[
'method'
=>
'get'
]],
//调整详情
'performanceInfo'
=>
[
'index/PerformanceInfo/performanceInfo'
,
[
'method'
=>
'post|get'
]],
//业绩明细
'performanceInfo'
=>
[
'index/PerformanceInfo/performanceInfo'
,
[
'method'
=>
'post|get'
]],
//业绩明细
'getPerformanceInfoExcel'
=>
[
'index/PerformanceInfo/getPerformanceInfoExcel'
,
[
'method'
=>
'post|get'
]],
//业绩明细
'getPerformanceInfoExcel'
=>
[
'index/PerformanceInfo/getPerformanceInfoExcel'
,
[
'method'
=>
'post|get'
]],
//业绩明细
...
...
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