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
27f737ea
Commit
27f737ea
authored
Sep 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
21d16a6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
1 deletion
+62
-1
Amercement.php
application/index/controller/Amercement.php
+23
-0
AmercementService.php
application/index/service/AmercementService.php
+37
-0
route.php
application/route.php
+2
-1
No files found.
application/index/controller/Amercement.php
View file @
27f737ea
...
@@ -53,4 +53,26 @@ class Amercement extends Basic
...
@@ -53,4 +53,26 @@ class Amercement extends Basic
}
}
public
function
getAmercementList
(){
$params
=
$this
->
params
;
// $params = array(
// "agent_id" => 5776,
// "status" => 0,
// "amercement_type" => 0,
// );
$page_no
=
empty
(
$params
[
"page_no"
])
?
1
:
$params
[
"page_no"
];
$page_size
=
empty
(
$params
[
"page_size"
])
?
15
:
$params
[
"page_size"
];
$result
=
$this
->
s_amercement
->
getAmercementListPc
(
$params
,
$page_no
,
$page_size
);
//int(1)
if
(
$result
)
{
return
$this
->
response
(
"200"
,
"成功"
,
$result
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
}
}
\ No newline at end of file
application/index/service/AmercementService.php
View file @
27f737ea
...
@@ -223,4 +223,40 @@ class AmercementService
...
@@ -223,4 +223,40 @@ class AmercementService
public
function
getAmercementListPc
(
$params
,
$page_no
,
$page_size
)
{
$field
=
"id,status,type,money,submit_agent_id,agent_id,remarks,create_time"
;
$condition
=
[];
if
(
$amercement_type
==
0
){
$condition
[
'agent_id'
]
=
$agent_id
;
}
else
{
$condition
[
'submit_agent_id'
]
=
$agent_id
;
}
$condition
[
'status'
]
=
$status
;
$result
=
$this
->
m_amercement
->
getAmercementList
(
$condition
,
$field
,
$page_no
,
$page_size
);
$redis_cache
=
new
RedisCacheService
();
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
'type_name'
]
=
$this
->
getTypeName
(
$val
[
'type'
]);
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$val
[
'submit_agent_id'
]);
$result
[
$key
][
'submit_agent_name'
]
=
$agent_data
[
'name'
];
$result
[
$key
][
'submit_agent_phone'
]
=
$agent_data
[
'phone'
];
if
(
$status
==
0
){
//待支付
$forfeit_penalty
=
100
;
$result
[
$key
][
'forfeit_penalty'
]
=
$forfeit_penalty
;
//滞纳金
$result
[
$key
][
'money_sum'
]
=
$forfeit_penalty
+
$result
[
$key
][
'money'
];
//罚款总金额
}
elseif
(
$status
==
1
){
//已支付
$forfeit_penalty
=
100
;
$result
[
$key
][
'forfeit_penalty'
]
=
$forfeit_penalty
;
$result
[
$key
][
'money_sum'
]
=
$forfeit_penalty
+
$result
[
$key
][
'money'
];
$result
[
$key
][
'pay_time'
]
=
''
;
}
$result
[
$key
][
'img'
]
=
$this
->
getAmercementImage
(
$val
[
'id'
]);
}
return
$result
;
}
}
}
\ No newline at end of file
application/route.php
View file @
27f737ea
...
@@ -585,6 +585,8 @@ Route::group('index', [
...
@@ -585,6 +585,8 @@ Route::group('index', [
'recoverPayLog'
=>
[
'index/PayLog/recoverPayLog'
,
[
'method'
=>
'POST'
]],
//恢复删除收款
'recoverPayLog'
=>
[
'index/PayLog/recoverPayLog'
,
[
'method'
=>
'POST'
]],
//恢复删除收款
'recoverCheckRefund'
=>
[
'index/Refund/recoverCheckRefund'
,
[
'method'
=>
'POST|get'
]],
//已审核退款-转审核状态
'recoverCheckRefund'
=>
[
'index/Refund/recoverCheckRefund'
,
[
'method'
=>
'POST|get'
]],
//已审核退款-转审核状态
'addAmercement'
=>
[
'index/Amercement/addAmercement'
,
[
'method'
=>
'GET|POST'
]],
]);
]);
...
@@ -1275,7 +1277,6 @@ Route::group('office_index', [
...
@@ -1275,7 +1277,6 @@ Route::group('office_index', [
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
'recoverCheckRefund'
=>
[
'index/OfficeRefund/recoverCheckRefund'
,
[
'method'
=>
'POST'
]],
//已审核退款-转审核状态
'recoverCheckRefund'
=>
[
'index/OfficeRefund/recoverCheckRefund'
,
[
'method'
=>
'POST'
]],
//已审核退款-转审核状态
'addAmercement'
=>
[
'index/Amercement/addAmercement'
,
[
'method'
=>
'GET|POST'
]],
]);
]);
...
...
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