Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
84dcb2ef
Commit
84dcb2ef
authored
Sep 04, 2024
by
wujipeng
Browse files
优化
parent
0cb3dc3c
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/service/impl/ContractServiceImpl.java
View file @
84dcb2ef
...
@@ -39,7 +39,12 @@ public class ContractServiceImpl extends ServiceImpl<ContractDao, ContractEntity
...
@@ -39,7 +39,12 @@ public class ContractServiceImpl extends ServiceImpl<ContractDao, ContractEntity
@Override
@Override
public
List
<
ContractVO
>
listSecondLevel
(
String
homId
)
{
public
List
<
ContractVO
>
listSecondLevel
(
String
homId
)
{
return
baseMapper
.
listSecondLevel
(
homId
);
List
<
ContractVO
>
list
=
baseMapper
.
listSecondLevel
(
homId
);
for
(
ContractVO
contractVO
:
list
)
{
int
l
=
(
int
)
DateUtils
.
daysBetween
(
new
Date
(),
contractVO
.
getEndTime
());
contractVO
.
setRemainingDays
(
l
);
}
return
list
;
}
}
@Override
@Override
...
...
src/main/resources/com/ruzhoukj/sms/dao/ContractDao.xml
View file @
84dcb2ef
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
contract
contract
where
where
parent_id is null
parent_id is null
and
user_id = #{userId}
order by
order by
begin_time
begin_time
desc
desc
...
...
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