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
bf2e73c7
Commit
bf2e73c7
authored
Mar 31, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制多个护理人员产生结算
parent
ffc2c106
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
7 deletions
+46
-7
ChDisabAccountsDetailMapper.java
...hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
+6
-4
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+5
-1
ChDisabAccountsDetailMapper.xml
...src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
+15
-2
TaskDetailDisableVO.java
...com/hungraim/ltc/pojo/vo/account/TaskDetailDisableVO.java
+20
-0
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
View file @
bf2e73c7
...
...
@@ -3,10 +3,7 @@ package com.hungraim.ltc.account.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.account.*
;
import
com.hungraim.ltc.pojo.vo.account.AccountExportDetailListResp
;
import
com.hungraim.ltc.pojo.vo.account.AccountTaskExecuteReqVO
;
import
com.hungraim.ltc.pojo.vo.account.OrganAccountsVO
;
import
com.hungraim.ltc.pojo.vo.account.SrvOrganListReq
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -44,5 +41,9 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc
int
selectByCondition
(
AccountTaskExecuteReqVO
accountTaskExecuteReqVO
);
TaskDetailDisableVO
queryTaskDisId
(
String
taskDetailId
);
int
queryTaskDetailDisable
(
TaskDetailDisableVO
taskDetailDisableVO
);
}
\ No newline at end of file
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
bf2e73c7
...
...
@@ -616,11 +616,15 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
return
;
}
else
{
// 不同的护理人员同一天对同一个失能人员服务项目只计一条费用
int
count
=
chDisabAccountsDetailMapper
.
queryPlanByTaskDetailId
(
taskDetailId
);
TaskDetailDisableVO
taskDetailDisableVO
=
chDisabAccountsDetailMapper
.
queryTaskDisId
(
taskDetailId
);
if
(
Objects
.
nonNull
(
taskDetailDisableVO
))
{
int
count
=
chDisabAccountsDetailMapper
.
queryTaskDetailDisable
(
taskDetailDisableVO
);
if
(
count
>
0
){
log
.
info
(
"该失能人员当天已经有护理人员护理过,不在产生费用"
);
return
;
}
}
}
ChSrvTaskDetail
ca
=
new
ChSrvTaskDetail
();
ca
.
setStatus
((
short
)
4
);
ca
.
setTaskDetailId
(
Long
.
valueOf
(
taskDetailId
));
...
...
account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
View file @
bf2e73c7
...
...
@@ -170,10 +170,23 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc
</select>
<select
id=
"queryPlanByTaskDetailId"
resultType=
"java.lang.Integer"
>
select count(1) from CH_SRV_PLAN p
where p.DISAB_INFO
_ID
in (select DISAB_INFO_ID from CH_SRV_PLAN where TASK_DETAIL_ID = #{taskDetailId}) and p.IS_
STATUS = '4'
select count(1) from CH_SRV_PLAN p
left join CH_SRV_TASK_DETAIL d on p.TASK_DETAIL_ID = d.TASK_DETAIL
_ID
where p.DISAB_INFO_ID in (select DISAB_INFO_ID from CH_SRV_PLAN where TASK_DETAIL_ID = #{taskDetailId}) and d.
STATUS = '4'
</select>
<select
id=
"queryTaskDisId"
resultType=
"com.hungraim.ltc.pojo.vo.account.TaskDetailDisableVO"
>
select task.DISAB_INFO_ID disabInfoId,to_char(detail.SRV_DATE,'yyyy-MM-dd') srvDate,
detail.TASK_DETAIL_ID taskDetailId from CH_SRV_TASK_DETAIL detail
left join CH_SRV_TASK task on detail.SRV_TASK_ID = task.SRV_TASK_ID
where detail.TASK_DETAIL_ID = #{taskDetailId} and ROWNUM = 1
</select>
<select
id=
"queryTaskDetailDisable"
parameterType=
"com.hungraim.ltc.pojo.vo.account.TaskDetailDisableVO"
resultType=
"java.lang.Integer"
>
select count(1) from CH_SRV_TASK_DETAIL detail
left join CH_SRV_TASK task on detail.SRV_TASK_ID = task.SRV_TASK_ID
where task.DISAB_INFO_ID = #{disabInfoId} and detail.STATUS = 4 and
to_char(detail.SRV_DATE,'yyyy-MM-dd') = #{srvDate} and detail.TASK_DETAIL_ID
<![CDATA[ <>]]>
#{taskDetailId}
</select>
<!--查询评估信息-->
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/TaskDetailDisableVO.java
0 → 100644
View file @
bf2e73c7
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
account
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName TaskDetailDisableVO
* @description
* @date 2023/3/30 23:03
**/
@Data
public
class
TaskDetailDisableVO
{
private
String
disabInfoId
;
private
String
srvDate
;
private
String
taskDetailId
;
}
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