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
51e4721e
Commit
51e4721e
authored
Mar 09, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算权限控制
parent
ef57cbbb
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
87 additions
and
29 deletions
+87
-29
AccountController.java
...om/hungraim/ltc/account/controller/AccountController.java
+19
-6
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+20
-1
ChDisabAccountsDetailMapper.xml
...src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
+16
-14
ChDisabAccountsMapper.xml
...rvice/src/main/resources/mapper/ChDisabAccountsMapper.xml
+1
-1
ChDisabFreeRdInfoMapper.xml
...ice/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
+3
-0
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+3
-0
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+3
-1
DisableInfoMapper.xml
...y-service/src/main/resources/mapper/DisableInfoMapper.xml
+5
-2
ChAssessDetailAccountsMapper.xml
...rc/main/resources/mapper/ChAssessDetailAccountsMapper.xml
+3
-3
OverallCostReqVO.java
...om/hungraim/ltc/pojo/entity/account/OverallCostReqVO.java
+2
-0
ChAssessDetailAccountsResp.java
...tc/pojo/entity/assessment/ChAssessDetailAccountsResp.java
+6
-0
AssessAccountsExportResp.java
...ungraim/ltc/pojo/vo/account/AssessAccountsExportResp.java
+3
-0
SrvTaskReqVO.java
...n/java/com/hungraim/ltc/pojo/vo/account/SrvTaskReqVO.java
+2
-0
SrvTaskScheduledServiceImpl.java
...m/ltc/governance/service/SrvTaskScheduledServiceImpl.java
+1
-1
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/controller/AccountController.java
View file @
51e4721e
...
@@ -8,6 +8,7 @@ import com.hungraim.ltc.pojo.vo.account.*;
...
@@ -8,6 +8,7 @@ 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
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.TokenParsingUtil
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
...
@@ -129,7 +130,9 @@ public class AccountController {
...
@@ -129,7 +130,9 @@ public class AccountController {
* @return 返回
* @return 返回
*/
*/
@GetMapping
(
"/getSrvTaskList"
)
@GetMapping
(
"/getSrvTaskList"
)
public
Result
<
Page
<
SrvTaskRespVO
>>
getSrvTaskList
(
SrvTaskReqVO
srvTaskReqVO
)
{
public
Result
<
Page
<
SrvTaskRespVO
>>
getSrvTaskList
(
@RequestHeader
(
"Authorization"
)
String
token
,
SrvTaskReqVO
srvTaskReqVO
)
{
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvTaskReqVO
.
setSrvOrganId
(
srvOrganId
);
return
Result
.
success
(
accountService
.
getSrvTaskList
(
srvTaskReqVO
));
return
Result
.
success
(
accountService
.
getSrvTaskList
(
srvTaskReqVO
));
}
}
...
@@ -141,9 +144,11 @@ public class AccountController {
...
@@ -141,9 +144,11 @@ public class AccountController {
* @return 返回
* @return 返回
*/
*/
@GetMapping
(
"/searchSrvOrganAccountList"
)
@GetMapping
(
"/searchSrvOrganAccountList"
)
public
Result
<
Page
<
SrvOrganAccountListResp
>>
searchSrvOrganAccountList
(
SrvOrganListReq
srvOrganListReq
)
{
public
Result
<
Page
<
SrvOrganAccountListResp
>>
searchSrvOrganAccountList
(
@RequestHeader
(
"Authorization"
)
String
token
,
SrvOrganListReq
srvOrganListReq
)
{
List
<
String
>
list
=
Arrays
.
asList
(
"1"
);
List
<
String
>
list
=
Arrays
.
asList
(
"1"
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvOrganListReq
.
setSrvOrganId
(
srvOrganId
);
return
Result
.
success
(
accountService
.
searchSrvOrganAccountList
(
srvOrganListReq
));
return
Result
.
success
(
accountService
.
searchSrvOrganAccountList
(
srvOrganListReq
));
}
}
...
@@ -154,9 +159,11 @@ public class AccountController {
...
@@ -154,9 +159,11 @@ public class AccountController {
* @return 返回
* @return 返回
*/
*/
@GetMapping
(
"/searchSrvOrganReviewList"
)
@GetMapping
(
"/searchSrvOrganReviewList"
)
public
Result
<
Page
<
SrvOrganAccountListResp
>>
searchSrvOrganReviewList
(
SrvOrganListReq
srvOrganListReq
)
{
public
Result
<
Page
<
SrvOrganAccountListResp
>>
searchSrvOrganReviewList
(
@RequestHeader
(
"Authorization"
)
String
token
,
SrvOrganListReq
srvOrganListReq
)
{
List
<
String
>
list
=
Arrays
.
asList
(
"2"
,
"3"
,
"4"
);
List
<
String
>
list
=
Arrays
.
asList
(
"2"
,
"3"
,
"4"
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvOrganListReq
.
setSrvOrganId
(
srvOrganId
);
return
Result
.
success
(
accountService
.
searchSrvOrganAccountList
(
srvOrganListReq
));
return
Result
.
success
(
accountService
.
searchSrvOrganAccountList
(
srvOrganListReq
));
}
}
...
@@ -203,9 +210,11 @@ public class AccountController {
...
@@ -203,9 +210,11 @@ public class AccountController {
* @return
* @return
*/
*/
@GetMapping
(
"/queryAccountsDeclareList"
)
@GetMapping
(
"/queryAccountsDeclareList"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryAccountsDeclareList
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryAccountsDeclareList
(
@RequestHeader
(
"Authorization"
)
String
token
,
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
List
<
String
>
accountsStatusList
=
Arrays
.
asList
(
"0"
,
"1"
);
List
<
String
>
accountsStatusList
=
Arrays
.
asList
(
"0"
,
"1"
);
srvOrganListReq
.
setAccountsStatusList
(
accountsStatusList
);
srvOrganListReq
.
setAccountsStatusList
(
accountsStatusList
);
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvOrganListReq
.
setSrvOrganId
(
srvOrganId
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
return
Result
.
success
(
chAssessDetailAccounts
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
}
...
@@ -216,9 +225,11 @@ public class AccountController {
...
@@ -216,9 +225,11 @@ public class AccountController {
* @return
* @return
*/
*/
@GetMapping
(
"/queryDelayAccountList"
)
@GetMapping
(
"/queryDelayAccountList"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryDelayAccountList
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryDelayAccountList
(
@RequestHeader
(
"Authorization"
)
String
token
,
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
List
<
String
>
list
=
Arrays
.
asList
(
"1"
,
"2"
);
List
<
String
>
list
=
Arrays
.
asList
(
"1"
,
"2"
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
srvOrganListReq
.
setAccountsStatusList
(
list
);
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvOrganListReq
.
setSrvOrganId
(
srvOrganId
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
return
Result
.
success
(
chAssessDetailAccounts
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
}
...
@@ -320,7 +331,9 @@ public class AccountController {
...
@@ -320,7 +331,9 @@ public class AccountController {
}
}
@GetMapping
(
"/queryOverallCostList"
)
@GetMapping
(
"/queryOverallCostList"
)
public
Result
<
Page
<
OverallCostListRespVO
>>
queryOverallCostList
(
OverallCostReqVO
req
)
{
public
Result
<
Page
<
OverallCostListRespVO
>>
queryOverallCostList
(
@RequestHeader
(
"Authorization"
)
String
token
,
OverallCostReqVO
req
)
{
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
req
.
setSrvOrganId
(
srvOrganId
);
Page
<
OverallCostListRespVO
>
overallCostRecords
=
accountService
.
queryFreeRdInfo
(
req
);
Page
<
OverallCostListRespVO
>
overallCostRecords
=
accountService
.
queryFreeRdInfo
(
req
);
return
Result
.
success
(
overallCostRecords
);
return
Result
.
success
(
overallCostRecords
);
}
}
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
51e4721e
...
@@ -793,10 +793,14 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -793,10 +793,14 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
BigDecimal
accountsAllCost
=
chDisabDetailAccountDTO
.
getAccountsAllCost
();
BigDecimal
accountsAllCost
=
chDisabDetailAccountDTO
.
getAccountsAllCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountDTO
.
getAccountsOverallCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountDTO
.
getAccountsOverallCost
();
BigDecimal
accountsPersonalCost
=
chDisabDetailAccountDTO
.
getAccountsPersonalCost
();
BigDecimal
accountsPersonalCost
=
chDisabDetailAccountDTO
.
getAccountsPersonalCost
();
BigDecimal
deductionAmount
=
chDisabDetailAccountDTO
.
getDeductionAmount
();
BigDecimal
reissueAmount
=
chDisabDetailAccountDTO
.
getReissueAmount
();
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountsId
);
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountsId
);
BigDecimal
allCost
=
chDisabAccountDTO
.
getAllCost
();
BigDecimal
allCost
=
chDisabAccountDTO
.
getAllCost
();
BigDecimal
overallCost
=
chDisabAccountDTO
.
getOverallCost
();
BigDecimal
overallCost
=
chDisabAccountDTO
.
getOverallCost
();
BigDecimal
personalCost
=
chDisabAccountDTO
.
getPersonalCost
();
BigDecimal
personalCost
=
chDisabAccountDTO
.
getPersonalCost
();
BigDecimal
deductionAmountTotal
=
chDisabAccountDTO
.
getDeductionAmountTotal
();
BigDecimal
reissueAmountTotal
=
chDisabAccountDTO
.
getReissueAmountTotal
();
Short
accountsStatus
=
chDisabAccountDTO
.
getAccountsStatus
();
Short
accountsStatus
=
chDisabAccountDTO
.
getAccountsStatus
();
if
(
accountsStatus
>
1
)
{
if
(
accountsStatus
>
1
)
{
log
.
info
(
"{},已完成审核"
,
accountsDetailId
);
log
.
info
(
"{},已完成审核"
,
accountsDetailId
);
...
@@ -807,11 +811,15 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -807,11 +811,15 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
allCost
=
allCost
.
subtract
(
accountsAllCost
);
allCost
=
allCost
.
subtract
(
accountsAllCost
);
overallCost
=
overallCost
.
subtract
(
accountsOverallCost
);
overallCost
=
overallCost
.
subtract
(
accountsOverallCost
);
personalCost
=
personalCost
.
subtract
(
accountsPersonalCost
);
personalCost
=
personalCost
.
subtract
(
accountsPersonalCost
);
BigDecimal
deductionAmountTotalSub
=
deductionAmountTotal
.
subtract
(
deductionAmount
);
BigDecimal
reissueAmountTotalSub
=
reissueAmountTotal
.
subtract
(
reissueAmount
);
ChDisabAccounts
chDisabAccount
=
new
ChDisabAccounts
();
ChDisabAccounts
chDisabAccount
=
new
ChDisabAccounts
();
chDisabAccount
.
setAllCost
(
allCost
);
chDisabAccount
.
setAllCost
(
allCost
);
chDisabAccount
.
setOverallCost
(
overallCost
);
chDisabAccount
.
setOverallCost
(
overallCost
);
chDisabAccount
.
setPersonalCost
(
personalCost
);
chDisabAccount
.
setPersonalCost
(
personalCost
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setDeductionAmountTotal
(
deductionAmountTotalSub
);
chDisabAccount
.
setReissueAmountTotal
(
reissueAmountTotalSub
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
// 恢复
// 恢复
}
else
if
(
status
==
1
){
}
else
if
(
status
==
1
){
...
@@ -819,18 +827,23 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -819,18 +827,23 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
//结算记录
//结算记录
Date
accountsTime
=
chDisabDetailAccountDTO
.
getAccountsTime
();
Date
accountsTime
=
chDisabDetailAccountDTO
.
getAccountsTime
();
Boolean
aBoolean
=
DateUtils
.
inCurrentMonth
(
accountsTime
);
Boolean
aBoolean
=
DateUtils
.
inCurrentMonth
(
accountsTime
);
// 同一个月
if
(
aBoolean
){
if
(
aBoolean
){
allCost
=
allCost
.
add
(
accountsAllCost
);
allCost
=
allCost
.
add
(
accountsAllCost
);
overallCost
=
overallCost
.
add
(
accountsOverallCost
);
overallCost
=
overallCost
.
add
(
accountsOverallCost
);
personalCost
=
personalCost
.
add
(
accountsPersonalCost
);
personalCost
=
personalCost
.
add
(
accountsPersonalCost
);
BigDecimal
reissueAmountAdd
=
reissueAmountTotal
.
add
(
reissueAmount
);
BigDecimal
deductionAmountAdd
=
deductionAmountTotal
.
add
(
deductionAmount
);
ChDisabAccounts
chDisabAccount
=
new
ChDisabAccounts
();
ChDisabAccounts
chDisabAccount
=
new
ChDisabAccounts
();
chDisabAccount
.
setAllCost
(
allCost
);
chDisabAccount
.
setAllCost
(
allCost
);
chDisabAccount
.
setOverallCost
(
overallCost
);
chDisabAccount
.
setOverallCost
(
overallCost
);
chDisabAccount
.
setPersonalCost
(
personalCost
);
chDisabAccount
.
setPersonalCost
(
personalCost
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setReissueAmountTotal
(
reissueAmountAdd
);
chDisabAccount
.
setDeductionAmountTotal
(
deductionAmountAdd
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
}
else
{
}
else
{
// 结算
表加一个是否暂缓字段 1
暂缓
// 结算
到其他月份 结算表加一个是否暂缓字段 2
暂缓
ChDisabAccounts
chDisabAccounts
=
disabAccountsMapper
.
queryAccountByCondition
(
DateUtils
.
dateToStrYm
(
new
Date
()),
chDisabDetailAccountDTO
.
getModeName
(),
chDisabDetailAccountDTO
.
getSrvOrganId
(),
2
);
ChDisabAccounts
chDisabAccounts
=
disabAccountsMapper
.
queryAccountByCondition
(
DateUtils
.
dateToStrYm
(
new
Date
()),
chDisabDetailAccountDTO
.
getModeName
(),
chDisabDetailAccountDTO
.
getSrvOrganId
(),
2
);
if
(
chDisabAccounts
==
null
)
{
if
(
chDisabAccounts
==
null
)
{
chDisabAccounts
=
new
ChDisabAccounts
();
chDisabAccounts
=
new
ChDisabAccounts
();
...
@@ -854,6 +867,10 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -854,6 +867,10 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
BigDecimal
allCost1
=
chDisabAccounts
.
getAllCost
();
BigDecimal
allCost1
=
chDisabAccounts
.
getAllCost
();
BigDecimal
overallCost1
=
chDisabAccounts
.
getOverallCost
();
BigDecimal
overallCost1
=
chDisabAccounts
.
getOverallCost
();
BigDecimal
personalCost1
=
chDisabAccounts
.
getPersonalCost
();
BigDecimal
personalCost1
=
chDisabAccounts
.
getPersonalCost
();
BigDecimal
deductionAmountTotal1
=
chDisabAccounts
.
getDeductionAmountTotal
();
BigDecimal
reissueAmountTotal1
=
chDisabAccounts
.
getReissueAmountTotal
();
BigDecimal
deduction
=
deductionAmountTotal1
.
add
(
deductionAmount
);
BigDecimal
reissue
=
reissueAmountTotal1
.
add
(
reissueAmount
);
allCost1
=
allCost1
.
add
(
accountsAllCost
);
allCost1
=
allCost1
.
add
(
accountsAllCost
);
overallCost1
=
overallCost1
.
add
(
accountsOverallCost
);
overallCost1
=
overallCost1
.
add
(
accountsOverallCost
);
personalCost1
=
personalCost1
.
add
(
accountsPersonalCost
);
personalCost1
=
personalCost1
.
add
(
accountsPersonalCost
);
...
@@ -862,6 +879,8 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -862,6 +879,8 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabAccount
.
setOverallCost
(
overallCost1
);
chDisabAccount
.
setOverallCost
(
overallCost1
);
chDisabAccount
.
setPersonalCost
(
personalCost1
);
chDisabAccount
.
setPersonalCost
(
personalCost1
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setAccountsId
(
accountsId
);
chDisabAccount
.
setReissueAmountTotal
(
reissue
);
chDisabAccount
.
setDeductionAmountTotal
(
deduction
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
disabAccountsMapper
.
updateById
(
chDisabAccount
);
}
}
}
}
...
...
account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
View file @
51e4721e
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<if
test=
"req.accountsStatus != null and req.accountsStatus != ''"
>
<if
test=
"req.accountsStatus != null and req.accountsStatus != ''"
>
and d.status = #{req.accountsStatus}
and d.status = #{req.accountsStatus}
</if>
</if>
<if
test=
"req.srvOrganId != null and req.srvOrganId != ''"
>
<if
test=
"req.srvOrganId != null and req.srvOrganId != ''
and req.srvOrganId!=0
"
>
and d.SRV_ORGAN_ID = #{req.srvOrganId}
and d.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
</if>
...
@@ -69,19 +69,21 @@
...
@@ -69,19 +69,21 @@
</select>
</select>
<select
id=
"queryNursingRecordsGoDoor"
resultType=
"com.hungraim.ltc.pojo.entity.account.NursingRecordsRespVO"
>
<select
id=
"queryNursingRecordsGoDoor"
resultType=
"com.hungraim.ltc.pojo.entity.account.NursingRecordsRespVO"
>
select organ.SRV_ORGAN_NAME srvOrganName,
select
to_char(task.SRV_DATE,'yyyy-MM-dd') srvPlanTime,
organ.SRV_ORGAN_NAME srvOrganName,
detail.MODE_NAME modeName,
to_char(detail.SRV_DATE,'yyyy-MM-dd') srvPlanTime,
to_char(item.FCD,'yyyy-MM-dd HH:mm:ss') executionTime,
'上门' modeName,
service.SERVICE_TYPE_DETAILED_NAME itemName
to_char(item.FCD,'yyyy-MM-dd HH24:mi:ss') executionTime,
from CH_DISAB_ACCOUNTS_DETAIL detail
service.SERVICE_TYPE_DETAILED_NAME itemName
left join CH_SRV_TASK_DETAIL task on task.TASK_DETAIL_ID = detail.TASK_DETAIL_ID
from CH_SRV_TASK_FINISH_ITEM item
left join CH_SRV_TASK_FINISH_ITEM item on detail.TASK_DETAIL_ID = item.TASK_DETAIL_ID
left join CH_SRV_TASK_DETAIL detail on detail.TASK_DETAIL_ID = item.TASK_DETAIL_ID
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = detail.SRV_ORGAN_ID
left join CH_SRV_TASK task on task.SRV_TASK_ID = detail.SRV_TASK_ID
LEFT JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = item.ITEM_ID
LEFT JOIN CH_SRV_ORGAN_EMP m ON m.EMP_ID = task.SRV_EMP_ID
left join CH_SERVICE_TYPE_DETAILED service on service.SERVICE_TYPE_DETAILED_ID = CSOP.ITEM_NAME
LEFT JOIN CH_SRV_ORGAN organ ON organ.SRV_ORGAN_ID = m.SRV_ORGAN_ID
where detail.DISAB_INFO_ID = #{req.disabInfoId}
LEFT JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = item.ITEM_ID
and detail.SRV_ORGAN_ID = #{req.srvOrganId} and detail.MODE_NAME = '上门'
left join CH_SERVICE_TYPE_DETAILED service on service.SERVICE_TYPE_DETAILED_ID = CSOP.ITEM_NAME
where to_char(detail.SRV_DATE, 'yyyy-MM') = #{req.accountsTime} and task.DISAB_INFO_ID = #{req.disabInfoId} and organ.SRV_ORGAN_ID = #{req.srvOrganId}
</select>
</select>
...
...
account/account-service/src/main/resources/mapper/ChDisabAccountsMapper.xml
View file @
51e4721e
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#{organId}
#{organId}
</foreach>
</foreach>
</if>
</if>
<if
test=
'req.srvOrganId != null'
>
<if
test=
"req.srvOrganId != null and req.srvOrganId != '' and req.srvOrganId!=0"
>
AND t2.SRV_ORGAN_ID = #{req.srvOrganId}
AND t2.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
</if>
<if
test=
"req.accountsTime != null and req.accountsTime != ''"
>
<if
test=
"req.accountsTime != null and req.accountsTime != ''"
>
...
...
account/account-service/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
View file @
51e4721e
...
@@ -33,6 +33,9 @@
...
@@ -33,6 +33,9 @@
<if
test=
"req.srvOrganName != null and req.srvOrganName != ''"
>
<if
test=
"req.srvOrganName != null and req.srvOrganName != ''"
>
and organ.SRV_ORGAN_NAME = #{req.srvOrganName}
and organ.SRV_ORGAN_NAME = #{req.srvOrganName}
</if>
</if>
<if
test=
"req.srvOrganId != null and req.srvOrganId != '' and req.srvOrganId!=0"
>
AND organ.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
<if
test=
"req.certiCode != null and req.certiCode != ''"
>
<if
test=
"req.certiCode != null and req.certiCode != ''"
>
and info.certi_Code = #{req.certiCode}
and info.certi_Code = #{req.certiCode}
</if>
</if>
...
...
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
51e4721e
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<if
test=
"req.srvDate != null and req.srvDate != ''"
>
<if
test=
"req.srvDate != null and req.srvDate != ''"
>
AND to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') = #{req.srvDate}
AND to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') = #{req.srvDate}
</if>
</if>
<if
test=
"req.srvOrganId != null and req.srvOrganId != '' and req.srvOrganId!=0"
>
AND organ.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
</where>
</where>
</select>
</select>
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
51e4721e
...
@@ -506,13 +506,15 @@ public class DisableController {
...
@@ -506,13 +506,15 @@ public class DisableController {
* @return 失能人员信息列表
* @return 失能人员信息列表
*/
*/
@RequestMapping
(
"/disableInfoList"
)
@RequestMapping
(
"/disableInfoList"
)
public
Result
<
Page
<
DisableInfoListVo
>>
disableInfoList
(
Integer
pageNum
,
Integer
pageSize
,
Long
srvOrganId
,
String
certiCode
,
String
realName
,
String
svrModelId
)
{
public
Result
<
Page
<
DisableInfoListVo
>>
disableInfoList
(
@RequestHeader
(
"Authorization"
)
String
token
,
Integer
pageNum
,
Integer
pageSize
,
Long
srvOrganId
,
String
certiCode
,
String
realName
,
String
svrModelId
)
{
if
(
pageNum
==
null
||
pageNum
<
1
||
srvOrganId
==
null
||
srvOrganId
==
0
)
{
if
(
pageNum
==
null
||
pageNum
<
1
||
srvOrganId
==
null
||
srvOrganId
==
0
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
if
(
pageSize
==
null
||
pageSize
<
1
)
{
if
(
pageSize
==
null
||
pageSize
<
1
)
{
pageSize
=
10
;
pageSize
=
10
;
}
}
long
srvOrganIdL
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
srvOrganId
=
new
Long
(
srvOrganIdL
);
Page
<
DisableInfoListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
Page
<
DisableInfoListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
disableService
.
getDisableInfoList
(
page
,
srvOrganId
,
certiCode
,
realName
,
svrModelId
);
page
=
disableService
.
getDisableInfoList
(
page
,
srvOrganId
,
certiCode
,
realName
,
svrModelId
);
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
...
...
apply/apply-service/src/main/resources/mapper/DisableInfoMapper.xml
View file @
51e4721e
...
@@ -38,8 +38,10 @@
...
@@ -38,8 +38,10 @@
LEFT JOIN CH_CFG_SRV_DISABLE_LEVEL T6 ON T3.DISABLE_LEVEL_ID = T6.DISABLE_LEVEL_ID
LEFT JOIN CH_CFG_SRV_DISABLE_LEVEL T6 ON T3.DISABLE_LEVEL_ID = T6.DISABLE_LEVEL_ID
LEFT JOIN CH_APR_TASK T4 ON T3.TASK_ID = T4.TASK_ID
LEFT JOIN CH_APR_TASK T4 ON T3.TASK_ID = T4.TASK_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T1.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T1.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
WHERE
<where>
T1.SRV_ORGAN_ID = #{srvOrganId}
<if
test=
"srvOrganId != null and srvOrganId != '' and srvOrganId!=0"
>
and T1.SRV_ORGAN_ID = #{srvOrganId}
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
<if
test=
"certiCode != null and certiCode != ''"
>
and T2.CERTI_CODE = #{certiCode}
and T2.CERTI_CODE = #{certiCode}
</if>
</if>
...
@@ -49,6 +51,7 @@
...
@@ -49,6 +51,7 @@
<if
test=
"svrModelId != null and svrModelId != ''"
>
<if
test=
"svrModelId != null and svrModelId != ''"
>
and T7.MODE_ID = #{svrModelId}
and T7.MODE_ID = #{svrModelId}
</if>
</if>
</where>
</select>
</select>
<update
id=
"updateChSrvProgram"
>
<update
id=
"updateChSrvProgram"
>
...
...
assessment/assessment-service/src/main/resources/mapper/ChAssessDetailAccountsMapper.xml
View file @
51e4721e
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
organ.organ_name assessOrganName,
organ.organ_name assessOrganName,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
(select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
(select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
(select type.APREMP_NAME from CH_CFG_APREMP_TYPE type where type.APREMP_TYPE_ID = emp.APREMP_TYPE_ID_S) aprempTypeS,
to_char(d.assess_time,'yyyy-MM-dd') assessTime,
to_char(d.assess_time,'yyyy-MM-dd') assessTime,
emp.REAL_NAME empName
emp.REAL_NAME empName
from CH_ASSESS_ACCOUNTS_DETAIL d
from CH_ASSESS_ACCOUNTS_DETAIL d
...
@@ -23,12 +24,13 @@ from CH_ASSESS_ACCOUNTS_DETAIL d
...
@@ -23,12 +24,13 @@ from CH_ASSESS_ACCOUNTS_DETAIL d
<select
id=
"assessAccountDetailExport"
resultType=
"com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp"
>
<select
id=
"assessAccountDetailExport"
resultType=
"com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp"
>
SELECT
SELECT
t2.REAL_NAME realName,
t2.REAL_NAME realName,
(select type.APREMP_NAME from CH_CFG_APREMP_TYPE type where type.APREMP_TYPE_ID = t4.APREMP_TYPE_ID_S) aprempTypeS,
t3.ORGAN_NAME organName,
t3.ORGAN_NAME organName,
to_char(t1.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
to_char(t1.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
t1.ASSESS_COST assessCost,
t1.ASSESS_COST assessCost,
to_char(t1.assess_time,'yyyy-MM-dd') assessTime,
to_char(t1.assess_time,'yyyy-MM-dd') assessTime,
t4.REAL_NAME empName,
t4.REAL_NAME empName,
(select district_name from ch_fnd_district dis where t2.MEDICAL_AREA = dis.district_code) medicalArea
,
(select district_name from ch_fnd_district dis where t2.MEDICAL_AREA = dis.district_code) medicalArea
FROM
FROM
CH_ASSESS_ACCOUNTS_DETAIL t1
CH_ASSESS_ACCOUNTS_DETAIL t1
left join CH_DISABLE_APPLY t2 on t1.APPLY_ID = t2.APPLY_ID
left join CH_DISABLE_APPLY t2 on t1.APPLY_ID = t2.APPLY_ID
...
@@ -36,7 +38,5 @@ FROM
...
@@ -36,7 +38,5 @@ FROM
left join CH_APR_EMP t4 on t4.EMP_ID = t1.EMP_ID
left join CH_APR_EMP t4 on t4.EMP_ID = t1.EMP_ID
where t1.ASSESS_ACCOUNTS_ID = #{assessAccountsId}
where t1.ASSESS_ACCOUNTS_ID = #{assessAccountsId}
</select>
</select>
</mapper>
</mapper>
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/OverallCostReqVO.java
View file @
51e4721e
...
@@ -32,4 +32,6 @@ public class OverallCostReqVO extends BaseReq {
...
@@ -32,4 +32,6 @@ public class OverallCostReqVO extends BaseReq {
private
Integer
dealType
;
private
Integer
dealType
;
private
Long
srvOrganId
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/assessment/ChAssessDetailAccountsResp.java
View file @
51e4721e
...
@@ -37,6 +37,11 @@ public class ChAssessDetailAccountsResp implements Serializable {
...
@@ -37,6 +37,11 @@ public class ChAssessDetailAccountsResp implements Serializable {
*/
*/
private
String
medicalArea
;
private
String
medicalArea
;
/**
* 评定资质
*/
private
String
aprempTypeS
;
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/vo/account/AssessAccountsExportResp.java
View file @
51e4721e
...
@@ -24,6 +24,9 @@ public class AssessAccountsExportResp {
...
@@ -24,6 +24,9 @@ public class AssessAccountsExportResp {
@Excel
(
name
=
"评定人员姓名"
,
width
=
20
)
@Excel
(
name
=
"评定人员姓名"
,
width
=
20
)
private
String
empName
;
private
String
empName
;
@Excel
(
name
=
"评定资质"
,
width
=
20
)
private
String
aprempTypeS
;
@Excel
(
name
=
"评估时间"
,
width
=
20
)
@Excel
(
name
=
"评估时间"
,
width
=
20
)
private
String
assessTime
;
private
String
assessTime
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/SrvTaskReqVO.java
View file @
51e4721e
...
@@ -18,4 +18,6 @@ public class SrvTaskReqVO extends BaseReq {
...
@@ -18,4 +18,6 @@ public class SrvTaskReqVO extends BaseReq {
private
String
status
;
private
String
status
;
private
String
srvOrganName
;
private
String
srvOrganName
;
private
Long
srvOrganId
;
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/SrvTaskScheduledServiceImpl.java
View file @
51e4721e
...
@@ -18,7 +18,7 @@ public class SrvTaskScheduledServiceImpl {
...
@@ -18,7 +18,7 @@ public class SrvTaskScheduledServiceImpl {
@Autowired
@Autowired
private
SrvTaskService
srvTaskService
;
private
SrvTaskService
srvTaskService
;
@Scheduled
(
cron
=
"30
30 23
* * ?"
)
@Scheduled
(
cron
=
"30
20 11
* * ?"
)
public
void
timeAllocationSrvTask
()
{
public
void
timeAllocationSrvTask
()
{
log
.
info
(
"timeAllocationSrvTask========start"
);
log
.
info
(
"timeAllocationSrvTask========start"
);
srvTaskService
.
timeAllocationSrvTask
();
srvTaskService
.
timeAllocationSrvTask
();
...
...
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