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
a559fd3b
Commit
a559fd3b
authored
Feb 20, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算代码提交
parent
c5e36455
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
580 additions
and
93 deletions
+580
-93
AccountController.java
...om/hungraim/ltc/account/controller/AccountController.java
+129
-7
ChDisabAccountsDetailMapper.java
...hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
+13
-7
ChDisabAccountsMapper.java
...a/com/hungraim/ltc/account/dao/ChDisabAccountsMapper.java
+8
-1
ChDisabDetailAccountsMapper.java
...hungraim/ltc/account/dao/ChDisabDetailAccountsMapper.java
+0
-18
AccountService.java
...java/com/hungraim/ltc/account/service/AccountService.java
+16
-1
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+0
-0
ChDisabAccountsDetailMapper.xml
...src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
+0
-0
ChDisabAccountsMapper.xml
...rvice/src/main/resources/mapper/ChDisabAccountsMapper.xml
+48
-3
ChDisabDetailAccountsMapper.xml
...src/main/resources/mapper/ChDisabDetailAccountsMapper.xml
+0
-24
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+3
-3
ChDisabAccounts.java
...com/hungraim/ltc/pojo/entity/account/ChDisabAccounts.java
+24
-6
ChDisabDetailAccounts.java
...ngraim/ltc/pojo/entity/account/ChDisabDetailAccounts.java
+42
-1
ChDisabDetailAccountsResp.java
...im/ltc/pojo/entity/account/ChDisabDetailAccountsResp.java
+13
-0
NursingRecordsRespVO.java
...ungraim/ltc/pojo/entity/account/NursingRecordsRespVO.java
+33
-0
OverallCostListRespVO.java
...ngraim/ltc/pojo/entity/account/OverallCostListRespVO.java
+64
-0
OverallCostReqVO.java
...om/hungraim/ltc/pojo/entity/account/OverallCostReqVO.java
+35
-0
OverallCostSubmitReqVO.java
...graim/ltc/pojo/entity/account/OverallCostSubmitReqVO.java
+37
-0
OverallEduceDecreaseCostRespVO.java
...c/pojo/entity/account/OverallEduceDecreaseCostRespVO.java
+69
-0
OrganAccountsVO.java
...ava/com/hungraim/ltc/pojo/vo/account/OrganAccountsVO.java
+3
-6
SrvOrganAccountListResp.java
...hungraim/ltc/pojo/vo/account/SrvOrganAccountListResp.java
+11
-0
SrvOrganListReq.java
...ava/com/hungraim/ltc/pojo/vo/account/SrvOrganListReq.java
+2
-0
DateUtils.java
...n-core/src/main/java/com/hungraim/ltc/util/DateUtils.java
+30
-16
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/controller/AccountController.java
View file @
a559fd3b
...
@@ -3,8 +3,7 @@ package com.hungraim.ltc.account.controller;
...
@@ -3,8 +3,7 @@ package com.hungraim.ltc.account.controller;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.account.service.AccountService
;
import
com.hungraim.ltc.account.service.AccountService
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabAccounts
;
import
com.hungraim.ltc.pojo.entity.account.*
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
...
@@ -100,8 +99,12 @@ public class AccountController {
...
@@ -100,8 +99,12 @@ public class AccountController {
/**
@RequestMapping
(
"/organAccountTaskExecute"
)
* 任务执行
*
* @return
*/
@PostMapping
(
"/organAccountTaskExecute"
)
public
Result
organAccountTaskExecute
(
AccountTaskReqVO
accountTaskReqVO
){
public
Result
organAccountTaskExecute
(
AccountTaskReqVO
accountTaskReqVO
){
List
<
AccountTaskExecuteReqVO
>
accountTaskExecuteReqVOS
=
accountTaskReqVO
.
getAccountTaskList
();
List
<
AccountTaskExecuteReqVO
>
accountTaskExecuteReqVOS
=
accountTaskReqVO
.
getAccountTaskList
();
accountService
.
organAccountTaskExecute
(
accountTaskExecuteReqVOS
);
accountService
.
organAccountTaskExecute
(
accountTaskExecuteReqVOS
);
...
@@ -164,17 +167,136 @@ public class AccountController {
...
@@ -164,17 +167,136 @@ public class AccountController {
/**
/**
* 查询机构结算信息列表明细
* 查询机构结算信息列表明细
*
*
* @param
i
d 结算id
* @param
accountsI
d 结算id
* @return
* @return
*/
*/
@GetMapping
(
"/queryOrganAccountsDetail"
)
@GetMapping
(
"/queryOrganAccountsDetail"
)
public
Result
<
List
<
ChDisabDetailAccountsResp
>>
queryOrganAccountsDetail
(
String
id
)
{
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryOrganAccountsDetail
(
Integer
pageNum
,
Integer
pageSize
,
String
accountsId
)
{
List
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
id
);
if
(
StringUtils
.
isBlank
(
accountsId
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
accountsId
,
null
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
/**
* 基金申报列表查询
* @param
* @return
*/
@GetMapping
(
"/queryAccountsDeclareList"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryAccountsDeclareList
(
Integer
pageNum
,
Integer
pageSize
)
{
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
null
,
0
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
/**
* 暂缓列表查询
* @param
* @return
*/
@GetMapping
(
"/queryDelayAccountList"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryDelayAccountList
(
Integer
pageNum
,
Integer
pageSize
)
{
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
null
,
2
);
return
Result
.
success
(
chAssessDetailAccounts
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
}
/**
* 暂缓
* @param status 1 恢复 2 暂缓
* @return
*/
@PostMapping
(
"/delayAccountCommit"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
delayAccountCommit
(
Long
accountsDetailId
,
Short
status
)
{
int
result
=
accountService
.
delayAccountCommit
(
accountsDetailId
,
status
);
if
(
result
>
0
)
{
return
Result
.
success
();
}
else
{
return
Result
.
failed
();
}
}
/**
* 基金申报提交
* @param
* @return
*/
@PostMapping
(
"/accountsFreeCommit"
)
public
Result
accountsFreeCommit
(
Long
accountsDetailId
)
{
int
result
=
accountService
.
accountsFreeCommit
(
accountsDetailId
);
if
(
result
>
0
)
{
return
Result
.
success
();
}
else
{
return
Result
.
failed
();
}
}
/**
* 查询护理记录
*
* @param taskDetailId 结算详情id
* @return
*/
@GetMapping
(
"/queryNursingRecords"
)
public
Result
<
Page
<
NursingRecordsRespVO
>>
queryNursingRecords
(
Integer
pageNum
,
Integer
pageSize
,
String
taskDetailId
)
{
Page
<
NursingRecordsRespVO
>
nursingRecordsRespVOList
=
accountService
.
queryNursingRecords
(
pageNum
,
pageSize
,
taskDetailId
);
return
Result
.
success
(
nursingRecordsRespVOList
);
}
@GetMapping
(
"/queryOverallCostRecords"
)
public
Result
<
OverallEduceDecreaseCostRespVO
>
queryOverallCostRecords
(
OverallCostReqVO
req
)
{
String
certiCode
=
req
.
getCertiCode
();
if
(
StringUtils
.
isBlank
(
certiCode
))
{
return
Result
.
failed
(
"查询条件证件号不能为空"
);
}
OverallEduceDecreaseCostRespVO
overallCostRecords
=
accountService
.
queryOverallCostRecords
(
req
);
return
Result
.
success
(
overallCostRecords
);
}
/**
* 费用扣减提交
*
* @param req
* @return
*/
@PostMapping
(
"/overallCostSubmit"
)
public
Result
overallCostSubmit
(
OverallCostSubmitReqVO
req
)
{
int
result
=
accountService
.
overallCostSubmit
(
req
);
if
(
result
>
0
){
return
Result
.
success
();
}
else
{
return
Result
.
failed
();
}
}
/**
* 删除护理机构
*
* @param accountsDetailId 结算详情id
*/
@DeleteMapping
(
"/deleteAccountsDetail"
)
public
Result
deleteAccountsDetail
(
Long
accountsDetailId
)
{
if
(
null
==
accountsDetailId
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
int
result
=
accountService
.
deleteAccountsDetail
(
accountsDetailId
);
if
(
result
>
0
){
return
Result
.
success
();
}
else
{
return
Result
.
failed
();
}
}
@GetMapping
(
"/queryOverallCostList"
)
public
Result
<
Page
<
OverallCostListRespVO
>>
queryOverallCostList
(
OverallCostReqVO
req
)
{
Page
<
OverallCostListRespVO
>
overallCostRecords
=
accountService
.
queryOverallCostList
(
req
);
return
Result
.
success
(
overallCostRecords
);
}
/**
/**
* 机构结算管理提交复核
* 机构结算管理提交复核
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
View file @
a559fd3b
...
@@ -2,12 +2,11 @@ package com.hungraim.ltc.account.dao;
...
@@ -2,12 +2,11 @@ package com.hungraim.ltc.account.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.account.
ChDisabAccounts
;
import
com.hungraim.ltc.pojo.entity.account.
*
;
import
com.hungraim.ltc.pojo.
entity.account.ChDisabDetailAccounts
;
import
com.hungraim.ltc.pojo.
vo.account.AccountExportDetailListResp
;
import
com.hungraim.ltc.pojo.vo.account.
*
;
import
com.hungraim.ltc.pojo.vo.account.
OrganAccountsVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,15 +18,22 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc
...
@@ -19,15 +18,22 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc
List
<
OrganAccountsVO
>
getOrganAccountsList
(
String
taskDetailId
);
List
<
OrganAccountsVO
>
getOrganAccountsList
(
String
taskDetailId
);
Page
<
SrvOrganAccountListResp
>
searchSrvOrganAccountList
(
Page
page
,
List
<
Long
>
organIds
,
SrvOrganListReq
req
);
List
<
AccountExportDetailListResp
>
searchSrvOrganAccountDetailExport
(
String
accountsId
);
List
<
AccountExportDetailListResp
>
searchSrvOrganAccountDetailExport
(
String
accountsId
);
List
<
ChDisabDetailAccounts
>
queryAccountByCondition
(
@Param
(
"taskDetailIds"
)
List
<
String
>
taskDetailIds
);
List
<
ChDisabDetailAccounts
>
queryAccountByCondition
(
@Param
(
"taskDetailIds"
)
List
<
String
>
taskDetailIds
);
List
<
OrganAccountsVO
>
getOtherPlaceList
(
String
programId
);
List
<
OrganAccountsVO
>
getOtherPlaceList
(
String
programId
);
Page
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
Page
page
,
String
accountsId
,
Integer
status
);
Page
<
NursingRecordsRespVO
>
queryNursingRecords
(
Page
page
,
String
taskDetailId
);
OverallEduceDecreaseCostRespVO
queryOverallCostRecords
(
OverallCostReqVO
req
);
Page
<
OverallCostListRespVO
>
queryOverallCostList
(
Page
page
,
OverallCostReqVO
req
);
int
updateByAccountsId
(
String
accountsId
);
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChDisabAccountsMapper.java
View file @
a559fd3b
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabAccounts
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabAccounts
;
import
com.hungraim.ltc.pojo.vo.account.AccountOperVo
;
import
com.hungraim.ltc.pojo.vo.account.AccountOperVo
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganAccountListResp
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganListReq
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganListReq
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganListResp
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganListResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -52,5 +53,10 @@ public interface ChDisabAccountsMapper extends BaseMapper<ChDisabAccounts> {
...
@@ -52,5 +53,10 @@ public interface ChDisabAccountsMapper extends BaseMapper<ChDisabAccounts> {
ChDisabAccounts
queryAccountByCondition
(
String
accountsTime
,
String
modeName
,
String
srvOrganId
);
ChDisabAccounts
queryAccountByCondition
(
String
accountsTime
,
String
modeName
,
String
srvOrganId
,
Integer
isDelay
);
Page
<
SrvOrganAccountListResp
>
searchSrvOrganAccountList
(
Page
page
,
List
<
Long
>
organIds
,
SrvOrganListReq
req
);
}
}
\ No newline at end of file
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChDisabDetailAccountsMapper.java
deleted
100644 → 0
View file @
c5e36455
package
com
.
hungraim
.
ltc
.
account
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccounts
;
import
com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author mq
*/
@Mapper
@Repository
public
interface
ChDisabDetailAccountsMapper
extends
BaseMapper
<
ChDisabDetailAccounts
>
{
List
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
String
accountsId
);
}
account/account-service/src/main/java/com/hungraim/ltc/account/service/AccountService.java
View file @
a559fd3b
...
@@ -31,7 +31,16 @@ public interface AccountService extends IService<ChDisabAccounts> {
...
@@ -31,7 +31,16 @@ public interface AccountService extends IService<ChDisabAccounts> {
List
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
String
id
);
Page
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
Integer
pageNum
,
Integer
pageSize
,
String
accountsId
,
Integer
status
);
Page
<
NursingRecordsRespVO
>
queryNursingRecords
(
Integer
pageNum
,
Integer
pageSize
,
String
taskDetailId
);
OverallEduceDecreaseCostRespVO
queryOverallCostRecords
(
OverallCostReqVO
req
);
Page
<
OverallCostListRespVO
>
queryOverallCostList
(
OverallCostReqVO
req
);
int
overallCostSubmit
(
OverallCostSubmitReqVO
req
);
int
updateChDisabAccounts
(
int
id
);
int
updateChDisabAccounts
(
int
id
);
...
@@ -39,4 +48,10 @@ public interface AccountService extends IService<ChDisabAccounts> {
...
@@ -39,4 +48,10 @@ public interface AccountService extends IService<ChDisabAccounts> {
void
organAccountTaskExecute
(
List
<
AccountTaskExecuteReqVO
>
accountTaskExecuteReqVOS
);
void
organAccountTaskExecute
(
List
<
AccountTaskExecuteReqVO
>
accountTaskExecuteReqVOS
);
void
otherPlaceHandler
(
String
programId
);
void
otherPlaceHandler
(
String
programId
);
int
deleteAccountsDetail
(
Long
accountsDetailId
);
int
accountsFreeCommit
(
Long
accountsDetailId
);
int
delayAccountCommit
(
Long
accountsDetailId
,
Short
status
);
}
}
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
a559fd3b
This diff is collapsed.
Click to expand it.
account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
View file @
a559fd3b
This diff is collapsed.
Click to expand it.
account/account-service/src/main/resources/mapper/ChDisabAccountsMapper.xml
View file @
a559fd3b
...
@@ -17,15 +17,59 @@
...
@@ -17,15 +17,59 @@
</sql>
</sql>
<select
id=
"queryAccountByCondition"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChDisabAccounts"
>
<select
id=
"queryAccountByCondition"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChDisabAccounts"
>
select * from CH_DISAB_ACCOUNTS t where t.MODE_NAME = #{modeName}
select * from CH_DISAB_ACCOUNTS t where t.MODE_NAME = #{modeName}
and to_char(t.ACCOUNTS_TIME,'yyyy-MM') = #{accountsTime}
and to_char(t.ACCOUNTS_TIME,'yyyy-MM') = #{accountsTime}
and t.SRV_ORGAN_ID = #{srvOrganId}
and t.SRV_ORGAN_ID = #{srvOrganId}
<if
test=
"isDelay !=null"
>
and t.IS_DELAY = 2
</if>
</select>
</select>
<select
id=
"searchSrvOrganAccountList"
resultType=
"com.hungraim.ltc.pojo.vo.account.SrvOrganAccountListResp"
>
SELECT
t1.ACCOUNTS_ID,
t3.ORGAN_ID,
t3.ORGAN_NAME,
t2.SRV_ORGAN_ID,
t2.SRV_ORGAN_NAME,
t1.ACCOUNTS_TIME,
t1.ACCOUNTS_STATUS,
t1.ALL_COST,
t1.OVERALL_COST,
t1.PERSONAL_COST,
t1.SVR_START_TIME,
t1.MODE_NAME,
to_char(t1.SVR_START_TIME,'yyyy-MM-dd') svrStartTime,
to_char(t1.SVR_END_TIME,'yyyy-MM-dd') svrEndTime,
t1.TOTAL_ALLOCATED_EXPENSES totalAllocatedExpenses,
t1.REISSUE_AMOUNT_TOTAL reissueAmountTotal,
t1.DEDUCTION_AMOUNT_TOTAL deductionAmountTotal
FROM
CH_DISAB_ACCOUNTS t1
LEFT JOIN CH_SRV_ORGAN t2 ON t1.SRV_ORGAN_ID = t2.SRV_ORGAN_ID
LEFT JOIN CH_FND_ORGAN t3 ON t2.ORGAN_ID = t3.ORGAN_ID
<where>
t1.ACCOUNTS_STATUS !=0
<if
test=
'organIds != null and organIds.size()>0'
>
AND t3.ORGAN_ID IN
<foreach
collection=
"organIds"
open=
"("
close=
")"
item=
"organId"
separator=
","
>
#{organId}
</foreach>
</if>
<if
test=
'req.srvOrganId != null'
>
AND t2.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
<if
test=
'req.accountsTime != null'
>
AND t1.ACCOUNTS_TIME = #{req.accountsTime}
</if>
<if
test=
"req.accountsStatus != null and req.accountsStatus != ''"
>
and t1.ACCOUNTS_STATUS = #{req.accountsStatus}
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
account/account-service/src/main/resources/mapper/ChDisabDetailAccountsMapper.xml
deleted
100644 → 0
View file @
c5e36455
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.account.dao.ChDisabDetailAccountsMapper"
>
<select
id=
"queryOrganAccountsDetail"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccountsResp"
>
select
d.MODE_NAME modeName,
to_char(d.ACCOUNTS_START_TIME,'yyyy-MM-dd HH24:mi:ss') accountsStartTime,
to_char(d.ACCOUNTS_END_TIME,'yyyy-MM-dd HH24:mi:ss') accountsEndTime,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
d.ACCOUNTS_ALL_COST accountsAllCost,
d.ACCOUNTS_OVERALL_COST accountsOverallCost,
d.ACCOUNTS_PERSONAL_COST accountsPersonalCost,
(select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
o.SRV_ORGAN_NAME srvOrganName,
info.REAL_NAME realName
from CH_DISAB_ACCOUNTS_DETAIL d
left join CH_DISABLE_INFO info on d.DISAB_INFO_ID = info.DISAB_INFO_ID
left join CH_DISABLE_APPLY apply on info.APPLY_ID=apply.APPLY_ID
left join CH_SRV_ORGAN o on d.SRV_ORGAN_ID = o.SRV_ORGAN_ID
where d.ACCOUNTS_ID = #{accountsId}
</select>
</mapper>
\ No newline at end of file
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
a559fd3b
...
@@ -18,13 +18,13 @@
...
@@ -18,13 +18,13 @@
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
<where>
<where>
<if
test=
"req.status != null"
>
<if
test=
"req.status != null
and req.status != ''
"
>
and plan.IS_STATUS = #{req.status}
and plan.IS_STATUS = #{req.status}
</if>
</if>
<if
test=
"req.realName != null"
>
<if
test=
"req.realName != null
and req.realName != ''
"
>
AND info.real_name LIKE CONCAT('%',CONCAT(#{req.realName},'%'))
AND info.real_name LIKE CONCAT('%',CONCAT(#{req.realName},'%'))
</if>
</if>
<if
test=
"req.srvOrganName != null"
>
<if
test=
"req.srvOrganName != null
and req.srvOrganName != ''
"
>
AND organ.SRV_ORGAN_NAME LIKE CONCAT('%',CONCAT(#{req.srvOrganName},'%'))
AND organ.SRV_ORGAN_NAME LIKE CONCAT('%',CONCAT(#{req.srvOrganName},'%'))
</if>
</if>
</where>
</where>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/ChDisabAccounts.java
View file @
a559fd3b
...
@@ -9,6 +9,7 @@ import lombok.Data;
...
@@ -9,6 +9,7 @@ import lombok.Data;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -33,7 +34,7 @@ public class ChDisabAccounts implements Serializable {
...
@@ -33,7 +34,7 @@ public class ChDisabAccounts implements Serializable {
/**
/**
* 实拨总费用
* 实拨总费用
*/
*/
private
String
totalAllocatedExpenses
;
private
BigDecimal
totalAllocatedExpenses
;
/**
/**
* 创建时间
* 创建时间
...
@@ -52,7 +53,7 @@ public class ChDisabAccounts implements Serializable {
...
@@ -52,7 +53,7 @@ public class ChDisabAccounts implements Serializable {
/**
/**
* 应拨总费用
* 应拨总费用
*/
*/
private
String
totalExpensesPayable
;
private
BigDecimal
totalExpensesPayable
;
/**
/**
* 是否结算(0未结算,1已结算)
* 是否结算(0未结算,1已结算)
...
@@ -60,7 +61,7 @@ public class ChDisabAccounts implements Serializable {
...
@@ -60,7 +61,7 @@ public class ChDisabAccounts implements Serializable {
private
Short
chooseSettle
;
private
Short
chooseSettle
;
/**
/**
* 状态(
0-待提交;1-待审核;2-已审核;3-已失效;
)
* 状态(
1 待审核 2 已审核 3 已结算
)
*/
*/
private
Short
accountsStatus
;
private
Short
accountsStatus
;
...
@@ -90,17 +91,33 @@ public class ChDisabAccounts implements Serializable {
...
@@ -90,17 +91,33 @@ public class ChDisabAccounts implements Serializable {
/**
/**
* 总费用合计
* 总费用合计
*/
*/
private
String
allCost
;
private
BigDecimal
allCost
;
/**
/**
* 统筹支出
* 统筹支出
*/
*/
private
String
overallCost
;
private
BigDecimal
overallCost
;
/**
/**
* 个人支出
* 个人支出
*/
*/
private
String
personalCost
;
private
BigDecimal
personalCost
;
/**
*扣减金额合计
*/
private
BigDecimal
deductionAmountTotal
;
/**
*补发金额
*/
private
BigDecimal
reissueAmountTotal
;
/**
* 是否暂缓 2 暂缓
*/
private
Short
isDelay
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/ChDisabDetailAccounts.java
View file @
a559fd3b
...
@@ -52,9 +52,16 @@ public class ChDisabDetailAccounts implements Serializable {
...
@@ -52,9 +52,16 @@ public class ChDisabDetailAccounts implements Serializable {
*/
*/
private
BigDecimal
accountsAllCost
;
private
BigDecimal
accountsAllCost
;
/**
* 统筹费用
*/
private
BigDecimal
accountsOverallCost
;
private
BigDecimal
accountsOverallCost
;
/**
* 个人支付
*/
private
BigDecimal
accountsPersonalCost
;
private
BigDecimal
accountsPersonalCost
;
/**
/**
* 服务方式
* 服务方式
*/
*/
...
@@ -64,16 +71,50 @@ public class ChDisabDetailAccounts implements Serializable {
...
@@ -64,16 +71,50 @@ public class ChDisabDetailAccounts implements Serializable {
* 费用开始日期
* 费用开始日期
*/
*/
private
Date
accountsStartTime
;
private
Date
accountsStartTime
;
/**
/**
* 费用结束日期
* 费用结束日期
*/
*/
private
Date
accountsEndTime
;
private
Date
accountsEndTime
;
/**
* 任务详情id
*/
private
String
taskDetailId
;
private
String
taskDetailId
;
/**
* 护理人员id
*/
private
Long
empId
;
/**
* 统筹区
*/
private
String
medicalArea
;
private
String
medicalArea
;
private
String
itemIds
;
/**
*交易类型 1、补发 2、扣减
*/
private
int
dealType
;
/**
*扣减金额
*/
private
BigDecimal
deductionAmount
;
/**
*补发金额
*/
private
BigDecimal
reissueAmount
;
/**
* 备注
*/
private
String
remarks
;
/**
* 状态(1 恢复状态 2 暂缓状态 3)
*/
private
Short
status
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/ChDisabDetailAccountsResp.java
View file @
a559fd3b
...
@@ -35,6 +35,8 @@ public class ChDisabDetailAccountsResp implements Serializable {
...
@@ -35,6 +35,8 @@ public class ChDisabDetailAccountsResp implements Serializable {
*/
*/
private
String
modeName
;
private
String
modeName
;
private
String
empName
;
/**
/**
* 费用开始日期
* 费用开始日期
*/
*/
...
@@ -51,5 +53,15 @@ public class ChDisabDetailAccountsResp implements Serializable {
...
@@ -51,5 +53,15 @@ public class ChDisabDetailAccountsResp implements Serializable {
private
String
realName
;
private
String
realName
;
private
String
taskDetailId
;
private
String
deductionAmount
;
private
String
reissueAmount
;
private
String
accountsDetailId
;
private
Integer
status
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/NursingRecordsRespVO.java
0 → 100644
View file @
a559fd3b
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
account
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName NursingRecordsRespVO
* @description
* @date 2023/2/14 10:10
**/
@Data
public
class
NursingRecordsRespVO
{
/**
* 护理机构
**/
private
String
srvOrganName
;
/**
* 服务方式
**/
private
String
modeName
;
/**
*执行日期
**/
private
String
executionTime
;
/**
*任务名称
**/
private
String
itemName
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/OverallCostListRespVO.java
0 → 100644
View file @
a559fd3b
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
account
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName OverallCostListRespVO
* @description
* @date 2023/2/14 21:10
**/
@Data
public
class
OverallCostListRespVO
{
/**
*失能人员姓名
*/
private
String
realName
;
/**
*身份证号
*/
private
String
certiCode
;
/**
*医保统筹区
*/
private
String
medicalArea
;
/**
* 费用开始时间
*/
private
String
svrStartTime
;
/**
* 费用结束时间
*/
private
String
svrEndTime
;
/**
*交易类型 1、补发 2、扣减
*/
private
int
dealType
;
/**
*扣减金额
*/
private
String
deductionAmount
;
/**
*补发金额
*/
private
String
reissueAmount
;
private
String
amountOfMoney
;
private
String
accountsDetailId
;
private
String
accountsOverallCost
;
private
String
srvOrganName
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/OverallCostReqVO.java
0 → 100644
View file @
a559fd3b
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
account
;
import
com.hungraim.ltc.pojo.vo.BaseReq
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName OverallCostReqVO
* @description
* @date 2023/2/14 15:11
**/
@Data
public
class
OverallCostReqVO
extends
BaseReq
{
/**
*失能人员姓名
*/
private
String
realName
;
/**
*身份证号
*/
private
String
certiCode
;
/**
* 护理机构名称
*/
private
String
srvOrganName
;
private
String
accountsTime
;
private
Integer
dealType
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/OverallCostSubmitReqVO.java
0 → 100644
View file @
a559fd3b
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
account
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName OverallCostSubmitReqVO
* @description
* @date 2023/2/14 16:56
**/
@Data
public
class
OverallCostSubmitReqVO
{
/**
* 结算详情Id
*/
private
Long
accountsDetailId
;
private
Long
accountsId
;
/**
* 交易类型 1、补发 2、扣减
*/
private
int
dealType
;
/**
* 金额
*/
private
String
amountOfMoney
;
/**
* 备注
*/
private
String
remarks
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/OverallEduceDecreaseCostRespVO.java
0 → 100644
View file @
a559fd3b
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
account
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName OverallEduceDecreaseCostRespVO
* @description
* @date 2023/2/14 15:11
**/
@Data
public
class
OverallEduceDecreaseCostRespVO
{
/**
*失能人员姓名
*/
private
String
realName
;
/**
*身份证号
*/
private
String
certiCode
;
/**
*医保统筹区
*/
private
String
medicalArea
;
/**
* 费用开始时间
*/
private
String
svrStartTime
;
/**
* 费用结束时间
*/
private
String
svrEndTime
;
/**
*交易类型 1、补发 2、扣减
*/
private
int
dealType
;
/**
*扣减金额
*/
private
String
deductionAmount
;
/**
*补发金额
*/
private
String
reissueAmount
;
private
String
accountsDetailId
;
private
String
accountsOverallCost
;
private
String
srvOrganName
;
private
Long
accountsId
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/OrganAccountsVO.java
View file @
a559fd3b
...
@@ -49,9 +49,9 @@ public class OrganAccountsVO {
...
@@ -49,9 +49,9 @@ public class OrganAccountsVO {
*/
*/
private
String
medicalArea
;
private
String
medicalArea
;
/**
/**
* 护理服务人员
* 护理服务人员
Id
*/
*/
private
String
empName
;
private
Long
empId
;
/**
/**
* 任务时间
* 任务时间
*/
*/
...
@@ -70,10 +70,7 @@ public class OrganAccountsVO {
...
@@ -70,10 +70,7 @@ public class OrganAccountsVO {
* 机构等级
* 机构等级
*/
*/
private
String
levelCode
;
private
String
levelCode
;
/**
* 失能等级
*/
private
String
disableLevelName
;
/**
/**
* 总费用
* 总费用
*/
*/
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/SrvOrganAccountListResp.java
View file @
a559fd3b
...
@@ -5,6 +5,7 @@ import lombok.Data;
...
@@ -5,6 +5,7 @@ import lombok.Data;
import
org.checkerframework.checker.units.qual.C
;
import
org.checkerframework.checker.units.qual.C
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
...
@@ -81,5 +82,15 @@ public class SrvOrganAccountListResp {
...
@@ -81,5 +82,15 @@ public class SrvOrganAccountListResp {
*/
*/
private
String
totalAllocatedExpenses
;
private
String
totalAllocatedExpenses
;
/**
*扣减金额总合计
*/
private
String
deductionAmountTotal
;
/**
*补发总金额
*/
private
String
reissueAmountTotal
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/SrvOrganListReq.java
View file @
a559fd3b
...
@@ -39,4 +39,6 @@ public class SrvOrganListReq extends BaseReq {
...
@@ -39,4 +39,6 @@ public class SrvOrganListReq extends BaseReq {
@JsonFormat
(
pattern
=
"yyyy-MM"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM"
,
timezone
=
"GMT+8"
)
private
Date
accountsTime
;
private
Date
accountsTime
;
private
String
accountsStatus
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/util/DateUtils.java
View file @
a559fd3b
...
@@ -3,7 +3,6 @@ package com.hungraim.ltc.util;
...
@@ -3,7 +3,6 @@ package com.hungraim.ltc.util;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.ParsePosition
;
import
java.text.ParsePosition
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -879,27 +878,42 @@ public class DateUtils {
...
@@ -879,27 +878,42 @@ public class DateUtils {
*
*
* @return
* @return
*/
*/
public
static
String
getlastMonth
(
){
public
static
Date
getlastDayOfMonth
(
Date
date
){
SimpleDateFormat
ym
=
new
SimpleDateFormat
(
DATE_PATTERN_yyyy_MM_dd
);
Calendar
cale
=
Calendar
.
getInstance
(
);
Calendar
calendar
=
Calendar
.
getInstance
(
);
cale
.
setTime
(
date
);
cale
ndar
.
add
(
Calendar
.
MONTH
,-
1
);
cale
.
add
(
Calendar
.
MONTH
,
1
);
String
lastMonth
=
ym
.
format
(
calendar
.
getTime
()
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
0
);
return
lastMonth
;
return
cale
.
getTime
()
;
}
}
/**
/**
* 获取
当前月份的上个月
* 获取
月份的第一天
*
*
* @return
* @return
*/
*/
public
static
Date
getlastMonth
(
String
str
){
public
static
Date
getFirstDayOfMonth
(
Date
date
)
{
DateFormat
fmt
=
new
SimpleDateFormat
(
DATE_PATTERN_yyyy_MM_dd
);
Calendar
cale
=
Calendar
.
getInstance
();
Date
date
=
null
;
cale
.
setTime
(
date
);
try
{
cale
.
add
(
Calendar
.
MONTH
,
0
);
date
=
fmt
.
parse
(
str
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
}
catch
(
ParseException
e
)
{
return
cale
.
getTime
();
e
.
printStackTrace
();
}
public
static
Boolean
inCurrentMonth
(
Date
date
)
{
Calendar
cal1
=
Calendar
.
getInstance
();
Calendar
cal2
=
Calendar
.
getInstance
();
//set the given date in date of the instance and current date in the other
cal1
.
setTime
(
date
);
cal2
.
setTime
(
new
Date
());
//now compare the dates using methods on Calendar
if
(
cal1
.
get
(
Calendar
.
YEAR
)
==
cal2
.
get
(
Calendar
.
YEAR
))
{
if
(
cal1
.
get
(
Calendar
.
MONTH
)
==
cal2
.
get
(
Calendar
.
MONTH
))
{
return
true
;
}
}
}
return
dat
e
;
return
fals
e
;
}
}
}
}
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