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
7242d9e3
Commit
7242d9e3
authored
Oct 09, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b49e2ef3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
AmercementService.php
application/index/service/AmercementService.php
+15
-6
fineMoney.html
application/index/view/finance/fineMoney.html
+2
-1
No files found.
application/index/service/AmercementService.php
View file @
7242d9e3
...
...
@@ -120,16 +120,16 @@ class AmercementService
return
$str
;
}
public
function
getStatusName
(
$status
,
$is_settlement
)
public
function
getStatusName
(
$status
,
$is_settlement
)
{
switch
(
$status
)
{
case
0
:
$str
=
'待支付'
;
break
;
case
1
:
if
(
$is_settlement
>
0
)
{
if
(
$is_settlement
>
0
)
{
$str
=
'已支付-已结算'
;
}
else
{
}
else
{
$str
=
'已支付-未结算'
;
}
...
...
@@ -292,7 +292,7 @@ class AmercementService
$redis_cache
=
new
RedisCacheService
();
$result
[
'type_name'
]
=
$this
->
getTypeName
(
$result
[
'type'
]);
$result
[
'status_name'
]
=
$this
->
getStatusName
(
$result
[
'status'
],
$result
[
'is_settlement'
]);
$result
[
'status_name'
]
=
$this
->
getStatusName
(
$result
[
'status'
],
$result
[
'is_settlement'
]);
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$result
[
'submit_agent_id'
]);
$result
[
'submit_agent_name'
]
=
$agent_data
[
'name'
];
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$result
[
'agent_id'
]);
...
...
@@ -490,7 +490,7 @@ class AmercementService
$this
->
updateAmercement
(
$val
[
'id'
],
[
'money_sum'
=>
$money_sum
]);
}
$result
[
$key
][
'type_name'
]
=
$this
->
getTypeName
(
$val
[
'type'
]);
$result
[
$key
][
'status_name'
]
=
$this
->
getStatusName
(
$val
[
'status'
],
$val
[
'is_settlement'
]);
$result
[
$key
][
'status_name'
]
=
$this
->
getStatusName
(
$val
[
'status'
],
$val
[
'is_settlement'
]);
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$val
[
'submit_agent_id'
]);
$result
[
$key
][
'submit_agent_name'
]
=
$agent_data
[
'name'
];
...
...
@@ -556,7 +556,7 @@ class AmercementService
$result
[
$key
][
'forfeit_penalty'
]
=
$forfeit_penalty
;
}
$result
[
$key
][
'type_name'
]
=
$this
->
getTypeName
(
$val
[
'type'
]);
$result
[
$key
][
'status_name'
]
=
$this
->
getStatusName
(
$val
[
'status'
],
$val
[
'is_settlement'
]);
$result
[
$key
][
'status_name'
]
=
$this
->
getStatusName
(
$val
[
'status'
],
$val
[
'is_settlement'
]);
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$val
[
'submit_agent_id'
]);
$result
[
$key
][
'submit_agent_name'
]
=
$agent_data
[
'name'
];
$agent_data
=
$redis_cache
->
getRedisCache
(
2
,
$val
[
'agent_id'
]);
...
...
@@ -604,9 +604,18 @@ class AmercementService
//状态
if
(
isset
(
$params
[
'status'
])
&&
is_numeric
(
$params
[
"status"
]))
{
if
(
$params
[
'status'
]
==
1
)
{
$conditions
[
"status"
]
=
1
;
$conditions
[
"is_settlement"
]
=
0
;
}
else
if
(
$params
[
'status'
]
==
3
)
{
$conditions
[
"status"
]
=
1
;
$conditions
[
"is_settlement"
]
=
1
;
}
else
{
$conditions
[
"status"
]
=
$params
[
"status"
];
}
}
//项目
if
(
isset
(
$params
[
'type'
])
&&
is_numeric
(
$params
[
"type"
]))
{
$conditions
[
"type"
]
=
$params
[
"type"
];
...
...
application/index/view/finance/fineMoney.html
View file @
7242d9e3
...
...
@@ -187,7 +187,8 @@
<select
class=
"form-control btn4 margin-top-ld state-pay"
>
<option
value=
""
>
状态
</option>
<option
value=
"0"
>
待支付
</option>
<option
value=
"1"
>
已支付
</option>
<option
value=
"1"
>
已支付-未结算
</option>
<option
value=
"3"
>
已支付-已结算
</option>
<option
value=
"2"
>
已取消
</option>
</select>
<select
class=
"form-control btn4 margin-top-ld fine-item"
>
...
...
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