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
772802d0
Commit
772802d0
authored
Sep 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
罚款账单
parent
46572527
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
AmercementService.php
application/index/service/AmercementService.php
+64
-0
No files found.
application/index/service/AmercementService.php
View file @
772802d0
...
...
@@ -11,6 +11,7 @@ namespace app\index\service;
use
app\api_broker\service\PushMessageService
;
use
app\api_broker\service\RedisCacheService
;
use
app\model\OAmercementImgModel
;
use
app\model\OAmercementModel
;
...
...
@@ -57,6 +58,63 @@ class AmercementService
];
}
public
function
getTypeName
(
$type
)
{
switch
(
$type
)
{
case
1
:
$str
=
'班主任早会监督'
;
break
;
case
2
:
$str
=
'晚会表监督'
;
break
;
case
3
:
$str
=
'学习视频监督'
;
break
;
case
4
:
$str
=
'投诉'
;
break
;
case
5
:
$str
=
'日报'
;
break
;
case
6
:
$str
=
'房源上架'
;
break
;
case
7
:
$str
=
'视频审核'
;
break
;
case
8
:
$str
=
'商学院评论'
;
break
;
case
9
:
$str
=
'弟子班自律'
;
break
;
case
10
:
$str
=
'弟子班心得评论'
;
break
;
case
11
:
$str
=
'将帅赢心得评论'
;
break
;
case
12
:
$str
=
'各项会议处罚机制'
;
break
;
case
13
:
$str
=
'五星好评'
;
break
;
case
14
:
$str
=
'投诉暂扣'
;
break
;
case
15
:
$str
=
'独家协议'
;
break
;
case
16
:
$str
=
'其他处罚'
;
break
;
default
:
$str
=
'暂无'
;
}
return
$str
;
}
/**
* 新增
*
...
...
@@ -122,8 +180,14 @@ class AmercementService
}
$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
;
//滞纳金
...
...
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