Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
c34ffeb8
Commit
c34ffeb8
authored
May 25, 2022
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用结算
parent
25b0382b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
SrvTaskMapper.java
...main/java/com/hungraim/ltc/account/dao/SrvTaskMapper.java
+1
-1
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+6
-3
ExpenseSettlementReq.java
...om/hungraim/ltc/pojo/vo/account/ExpenseSettlementReq.java
+5
-0
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/dao/SrvTaskMapper.java
View file @
c34ffeb8
...
@@ -43,7 +43,7 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
...
@@ -43,7 +43,7 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
" LEFT JOIN ch_cfg_srv_item t8 ON t8.item_id = t7.item_id"
+
" LEFT JOIN ch_cfg_srv_item t8 ON t8.item_id = t7.item_id"
+
" LEFT JOIN ch_srv_organ t9 ON t9.srv_organ_id = t4.srv_organ_id"
+
" LEFT JOIN ch_srv_organ t9 ON t9.srv_organ_id = t4.srv_organ_id"
+
"<where> "
+
"<where> "
+
" t4.srv_organ_id = #{req.srvOrganId} AND (
t2.srv_start_time <= to_date(#{req.accountsTime},'yyyy-MM') or t2.srv_end_time >= to_date(#{req.accountsTime},'yyyy-MM'
))"
+
" t4.srv_organ_id = #{req.srvOrganId} AND (
(t2.srv_start_time >= to_date(#{req.accountsTime}, 'yyyy-MM') and t2.srv_start_time <= to_date(#{req.accountsLastDayTime}, 'yyyy-MM-dd')) or (t2.srv_end_time >= to_date(#{req.accountsTime}, 'yyyy-MM') and t2.srv_end_time <= to_date(#{req.accountsLastDayTime}, 'yyyy-MM-dd')
))"
+
"</where></script>"
)
"</where></script>"
)
Page
<
ExpenseSettlementInfoBo
>
getExpenseSettlementInfo
(
Page
<
ExpenseSettlementInfoBo
>
page
,
ExpenseSettlementReq
req
);
Page
<
ExpenseSettlementInfoBo
>
getExpenseSettlementInfo
(
Page
<
ExpenseSettlementInfoBo
>
page
,
ExpenseSettlementReq
req
);
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
c34ffeb8
...
@@ -83,6 +83,12 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -83,6 +83,12 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
@Override
@Override
public
ExpenseVo
expenseSettlement
(
ExpenseSettlementReq
req
)
throws
ParseException
{
public
ExpenseVo
expenseSettlement
(
ExpenseSettlementReq
req
)
throws
ParseException
{
Page
<
ExpenseSettlementInfoBo
>
page
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
Page
<
ExpenseSettlementInfoBo
>
page
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
//计算当前月最后一天
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM"
);
Date
parse
=
df
.
parse
(
req
.
getAccountsTime
());
Date
lastDayOfMonth
=
getLastDayOfMonth
(
parse
);
DateFormat
df2
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
req
.
setAccountsLastDayTime
(
df2
.
format
(
lastDayOfMonth
));
Page
<
ExpenseSettlementInfoBo
>
expenseSettlementInfo
=
srvTaskMapper
.
getExpenseSettlementInfo
(
page
,
req
);
Page
<
ExpenseSettlementInfoBo
>
expenseSettlementInfo
=
srvTaskMapper
.
getExpenseSettlementInfo
(
page
,
req
);
List
<
ExpenseSettlementVo
>
vos
=
new
ArrayList
<>();
List
<
ExpenseSettlementVo
>
vos
=
new
ArrayList
<>();
if
(
expenseSettlementInfo
!=
null
&&
expenseSettlementInfo
.
getRecords
()
!=
null
)
{
if
(
expenseSettlementInfo
!=
null
&&
expenseSettlementInfo
.
getRecords
()
!=
null
)
{
...
@@ -92,8 +98,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -92,8 +98,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
//护理等级
//护理等级
vo
.
setNursingGrade
(
CfgSrvLevel
.
getMsg
(
bo
.
getSrvLevelId
()));
vo
.
setNursingGrade
(
CfgSrvLevel
.
getMsg
(
bo
.
getSrvLevelId
()));
//服务开始时间
//服务开始时间
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM"
);
Date
parse
=
df
.
parse
(
req
.
getAccountsTime
());
if
(
bo
.
getSrvStartTime
()
!=
null
)
{
if
(
bo
.
getSrvStartTime
()
!=
null
)
{
if
(
bo
.
getSrvStartTime
().
getTime
()
>
parse
.
getTime
())
{
if
(
bo
.
getSrvStartTime
().
getTime
()
>
parse
.
getTime
())
{
vo
.
setSrvStartTime
(
bo
.
getSrvStartTime
());
vo
.
setSrvStartTime
(
bo
.
getSrvStartTime
());
...
@@ -103,7 +107,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -103,7 +107,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
}
}
//服务结束时间
//服务结束时间
if
(
bo
.
getSrvEndTime
()
!=
null
)
{
if
(
bo
.
getSrvEndTime
()
!=
null
)
{
Date
lastDayOfMonth
=
getLastDayOfMonth
(
parse
);
if
(
bo
.
getSrvEndTime
().
getTime
()
>
lastDayOfMonth
.
getTime
())
{
if
(
bo
.
getSrvEndTime
().
getTime
()
>
lastDayOfMonth
.
getTime
())
{
vo
.
setSrvEndTime
(
lastDayOfMonth
);
vo
.
setSrvEndTime
(
lastDayOfMonth
);
}
else
{
}
else
{
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/ExpenseSettlementReq.java
View file @
c34ffeb8
...
@@ -16,4 +16,9 @@ public class ExpenseSettlementReq extends BaseReq {
...
@@ -16,4 +16,9 @@ public class ExpenseSettlementReq extends BaseReq {
*/
*/
private
String
accountsTime
;
private
String
accountsTime
;
/**
* 结算月份最后一天
*/
private
String
accountsLastDayTime
;
}
}
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