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
cb71342b
Commit
cb71342b
authored
Mar 30, 2023
by
董天德
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/uat_ch_master' into uat_ch_master
parents
8f9b3294
30bbcec8
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
106 additions
and
45 deletions
+106
-45
AccountController.java
...om/hungraim/ltc/account/controller/AccountController.java
+4
-7
ChDisabAccountsDetailMapper.java
...hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
+1
-0
AccountService.java
...java/com/hungraim/ltc/account/service/AccountService.java
+1
-1
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+28
-7
ChDisabAccountsDetailMapper.xml
...src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
+13
-4
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+1
-0
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+2
-1
ChDisabDetailAccounts.java
...ngraim/ltc/pojo/entity/account/ChDisabDetailAccounts.java
+1
-4
NursingRecordsRespVO.java
...ungraim/ltc/pojo/entity/account/NursingRecordsRespVO.java
+2
-0
AccountOperVo.java
.../java/com/hungraim/ltc/pojo/vo/account/AccountOperVo.java
+5
-0
SrvOrganListReq.java
...ava/com/hungraim/ltc/pojo/vo/account/SrvOrganListReq.java
+2
-0
TaskDistributionVO.java
...m/hungraim/ltc/pojo/vo/assessment/TaskDistributionVO.java
+3
-2
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+11
-4
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+2
-2
BuildBedMapper.java
.../java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
+3
-1
BuildBedServiceImpl.java
...raim/ltc/governance/service/impl/BuildBedServiceImpl.java
+2
-1
BuildBedMapper.xml
...ces/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
+22
-10
ChSrvSendMapper.xml
...es/com/hungraim/ltc/governance/mapper/ChSrvSendMapper.xml
+3
-1
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/controller/AccountController.java
View file @
cb71342b
...
...
@@ -224,6 +224,8 @@ public class AccountController {
if
(
srvOrganId
!=
0
)
{
srvOrganListReq
.
setSrvOrganId
(
srvOrganId
);
}
// 不展示异地
srvOrganListReq
.
setFlag
(
"1"
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
...
...
@@ -378,13 +380,8 @@ public class AccountController {
@RequestMapping
(
"/placeOtherApply"
)
public
Result
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
accountService
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
if
(
result
>
0
)
{
return
Result
.
success
();
}
else
{
return
Result
.
failed
(
"申请失败"
);
}
Result
result
=
accountService
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
return
result
;
}
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChDisabAccountsDetailMapper.java
View file @
cb71342b
...
...
@@ -38,6 +38,7 @@ public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAcc
List
<
OrganAccountsVO
>
queryPlanInfoByDetailId
(
String
taskDetailId
);
int
queryPlanByTaskDetailId
(
String
taskDetailId
);
int
updateByPlanId
(
String
planId
);
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/service/AccountService.java
View file @
cb71342b
...
...
@@ -62,7 +62,7 @@ public interface AccountService extends IService<ChDisabAccounts> {
Page
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
);
in
t
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
);
Resul
t
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
);
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
);
...
...
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
cb71342b
...
...
@@ -70,6 +70,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabAccounts
.
setReviewRemark
(
accountOperVo
.
getReviewRemark
());
Short
accountsStatus
=
accountOperVo
.
getAccountsStatus
();
String
accountsId
=
String
.
valueOf
(
accountOperVo
.
getAccountsId
());
String
modeName
=
accountOperVo
.
getModeName
();
// 驳回
if
(
accountsStatus
==
0
)
{
chDisabAccountsDetailMapper
.
updateByAccountsId
(
accountsId
,
0
);
...
...
@@ -80,7 +81,9 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabAccounts
.
setDeductionAmountTotal
(
BigDecimal
.
valueOf
(
0
));
HashMap
map
=
new
HashMap
();
map
.
put
(
"ACCOUNTS_ID"
,
accountsId
);
// 删除对应扣减历史数据
chDisabFreeRdInfoMapper
.
deleteByMap
(
map
);
}
// 已结算
if
(
accountsStatus
==
4
)
{
...
...
@@ -611,6 +614,12 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
List
<
OrganAccountsVO
>
accountsList
=
chDisabAccountsDetailMapper
.
queryPlanInfoByDetailId
(
taskDetailId
);
if
(
CollectionUtil
.
isNotEmpty
(
accountsList
))
{
return
;
}
else
{
// 不同的护理人员同一天对同一个失能人员服务项目只计一条费用
int
count
=
chDisabAccountsDetailMapper
.
queryPlanByTaskDetailId
(
taskDetailId
);
if
(
count
>
0
){
return
;
}
}
ChSrvTaskDetail
ca
=
new
ChSrvTaskDetail
();
ca
.
setStatus
((
short
)
4
);
...
...
@@ -647,7 +656,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts
.
setAccountsPersonalCost
(
personalCost
);
chDisabDetailAccounts
.
setModeName
(
accountsVO
.
getSrvModeName
());
chDisabDetailAccounts
.
setSrvOrganId
(
srvOrganId
);
chDisabDetailAccounts
.
setEmpId
(
accountsVO
.
getEmpId
());
chDisabDetailAccounts
.
setCreationTime
(
new
Date
());
chDisabDetailAccounts
.
setAccountsTime
(
accountsTime
);
chDisabDetailAccounts
.
setAccountsStartTime
(
DateUtils
.
getFirstDayOfMonth
(
DateUtils
.
strToDate
(
accountsVO
.
getSrvDate
())));
...
...
@@ -874,18 +882,23 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
}
@Override
public
in
t
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
public
Resul
t
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
taskDetailMapper
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
Result
result1
=
Result
.
success
();
if
(
result
>
0
)
{
Date
date
=
DateUtils
.
strToDate
(
otherApplyTime
);
boolean
now
=
DateUtils
.
isNow
(
date
);
if
(
now
)
{
placeFreeHandler
(
disabInfoId
,
otherApplyTime
);
result1
=
placeFreeHandler
(
disabInfoId
,
otherApplyTime
);
}
return
result1
;
}
else
{
return
Result
.
failed
(
"申请失败"
);
}
return
result
;
}
private
void
placeFreeHandler
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
private
Result
placeFreeHandler
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
BigDecimal
limit
=
BigDecimal
.
valueOf
(
20
);
BigDecimal
zero
=
BigDecimal
.
valueOf
(
0
);
ChDisabDetailAccounts
chDisabDetailAccountsDTO
=
chDisabAccountsDetailMapper
.
queryDisabDetailAccounts
(
"471"
,
otherApplyTime
,
String
.
valueOf
(
disabInfoId
),
"异地"
);
...
...
@@ -920,8 +933,8 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
}
else
{
BigDecimal
allCost1
=
chDisabAccounts
.
getAllCost
();
BigDecimal
overallCost1
=
chDisabAccounts
.
getOverallCost
();
allCost1
=
allCost1
.
add
(
chDisabDetailAccountsDTO
.
getAccountsAllCost
()
);
overallCost1
=
overallCost1
.
add
(
chDisabDetailAccountsDTO
.
getAccountsAllCost
()
);
allCost1
=
allCost1
.
add
(
limit
);
overallCost1
=
overallCost1
.
add
(
limit
);
ChDisabAccounts
chDisabAccount
=
new
ChDisabAccounts
();
chDisabAccount
.
setAllCost
(
allCost1
);
chDisabAccount
.
setOverallCost
(
overallCost1
);
...
...
@@ -932,6 +945,13 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
}
else
{
Long
accountsId
=
chDisabDetailAccountsDTO
.
getAccountsId
();
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountsId
);
Short
accountsStatus
=
chDisabAccountDTO
.
getAccountsStatus
();
if
(
accountsStatus
>
1
){
log
.
info
(
"{},已完成审核"
,
accountsId
);
Result
.
failed
(
"提交月份已完成审核,请联系管理员"
);;
}
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
chDisabDetailAccountsDTO
.
setAccountsAllCost
(
accountsAllCost
.
add
(
limit
));
...
...
@@ -939,6 +959,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccountsDTO
.
setAccountsPersonalCost
(
zero
);
chDisabAccountsDetailMapper
.
updateById
(
chDisabDetailAccountsDTO
);
}
return
Result
.
success
();
}
@Override
...
...
account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
View file @
cb71342b
...
...
@@ -7,7 +7,6 @@
to_char(d.ACCOUNTS_START_TIME,'yyyy-MM-dd') accountsStartTime,
to_char(d.ACCOUNTS_END_TIME,'yyyy-MM-dd') accountsEndTime,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
emp.EMP_NAME empName,
d.ACCOUNTS_ALL_COST accountsAllCost,
d.ACCOUNTS_OVERALL_COST accountsOverallCost,
d.ACCOUNTS_PERSONAL_COST accountsPersonalCost,
...
...
@@ -25,9 +24,11 @@
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
left join ch_srv_organ_emp emp on d.emp_id = emp.emp_id
<where>
1=1
<if
test=
"req.flag != null and req.flag != ''"
>
and d.mode_name
<![CDATA[ <>]]>
'异地'
</if>
<if
test=
"req.accountsId != null and req.accountsId != ''"
>
and d.ACCOUNTS_ID = #{req.accountsId}
</if>
...
...
@@ -62,9 +63,11 @@
to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') srvPlanTime,
DECODE(plan.MODE_ID, '1','医疗','2', '养老','3','上门') modeName,
to_char(plan.CREATION_TIME,'yyyy-MM-dd HH24:mi:ss') executionTime,
plan.item_name itemName
plan.item_name itemName,
emp.EMP_NAME empName
from CH_SRV_PLAN plan
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id
where plan.DISAB_INFO_ID = #{req.disabInfoId}
and plan.SRV_ORGAN_ID = #{req.srvOrganId}
and plan.MODE_ID = #{req.modeId}
...
...
@@ -80,7 +83,8 @@
to_char(item.FCD,'yyyy-MM-dd HH24:mi:ss') executionTime,
service.SERVICE_TYPE_DETAILED_NAME itemName,
to_char(detail.SRV_START_TIME,'yyyy-MM-dd HH24:mi:ss') srvStartTime,
to_char(detail.SRV_END_TIME,'yyyy-MM-dd HH24:mi:ss') srvEndTime
to_char(detail.SRV_END_TIME,'yyyy-MM-dd HH24:mi:ss') srvEndTime,
m.EMP_NAME empName
from CH_SRV_TASK_FINISH_ITEM item
left join CH_SRV_TASK_DETAIL detail on detail.TASK_DETAIL_ID = item.TASK_DETAIL_ID
left join CH_SRV_TASK task on task.SRV_TASK_ID = detail.SRV_TASK_ID
...
...
@@ -165,6 +169,11 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc
where deatil.STATUS = '4' and plan.TASK_DETAIL_ID = #{taskDetailId}
</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>
<!--查询评估信息-->
...
...
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
cb71342b
...
...
@@ -70,6 +70,7 @@
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
LEFT JOIN CH_CFG_SRV_DISABLE_LEVEL lev ON report.DISABLE_LEVEL_ID = lev.DISABLE_LEVEL_ID
where info.SRV_MODE_ID ='4' and sysdate
<![CDATA[ > ]]>
report.PUBLICITY_END_TIME
and report.DISABLE_LEVEL_ID in (3,4,5)
<if
test=
"name != null and name != ''"
>
and info.REAL_NAME like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
cb71342b
...
...
@@ -24,7 +24,7 @@
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
disable.real_name realName,
t
ask.fcd
fcd,
t
o_char(apply.APPLY_TIME,'yyyy-MM-dd')
fcd,
disable.certi_code certiCode,
disable.disease_desc diseaseDesc,
disable.adress_detail operAddress,
...
...
@@ -65,6 +65,7 @@
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
-- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
left join CH_DISABLE_APPLY apply on apply.apply_id = disable.apply_id
left join ch_apr_emp emp on task.apr_emp_id = emp.emp_id and emp.IS_LOCK = 0
left join ch_apr_task_push push on task.task_id = push.task_id
left join ch_apr_task_emp cate on task.task_id = cate.task_id
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/ChDisabDetailAccounts.java
View file @
cb71342b
...
...
@@ -84,10 +84,7 @@ public class ChDisabDetailAccounts implements Serializable {
*/
private
String
taskDetailId
;
/**
* 护理人员id
*/
private
Long
empId
;
/**
* 统筹区
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/NursingRecordsRespVO.java
View file @
cb71342b
...
...
@@ -37,5 +37,7 @@ public class NursingRecordsRespVO {
private
String
srvEndTime
;
private
String
empName
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/AccountOperVo.java
View file @
cb71342b
...
...
@@ -15,6 +15,11 @@ public class AccountOperVo extends ChDisabAccounts {
private
String
organId
;
/**
* 服务方式
**/
private
String
modeName
;
/**
* 文件列表数据对象
*/
private
List
<
ChFndAttach
>
fileDataList
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/SrvOrganListReq.java
View file @
cb71342b
...
...
@@ -44,5 +44,7 @@ public class SrvOrganListReq extends BaseReq {
private
String
realName
;
private
List
<
String
>
accountsStatusList
;
// 是否展示异地 1 不展示
private
String
flag
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskDistributionVO.java
View file @
cb71342b
...
...
@@ -22,8 +22,9 @@ public class TaskDistributionVO {
//失能人员姓名
private
String
realName
;
//申请日期
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
fcd
;
// @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
// private Date fcd;
private
String
fcd
;
//失能人员身份证号码
private
String
certiCode
;
//保单号
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
cb71342b
...
...
@@ -182,6 +182,13 @@ public class BuildBedController {
if
(
StrUtil
.
isBlankIfStr
(
disableInfoId
))
{
return
Result
.
failed
(
"失能人员ID 为空!"
);
}
ChDisableInfo
chDisableInfo
=
disableInfoServie
.
querySrvModeId
(
Long
.
valueOf
(
disableInfoId
));
Integer
exitReasonId
=
chDisableInfo
.
getExitReasonId
();
if
(
exitReasonId
!=
null
&&
1
==
exitReasonId
){
return
Result
.
failed
(
"该失能人员已死亡退出,不能进行操作"
);
}
DisableInfoTaskVO
disableInfoTaskVO
=
sendService
.
selectTaskById
(
disableInfoId
,
srvOrganId
);
List
<
DisableInfoTaskVO
>
disableInfoTaskVO1
=
sendService
.
selectBydisableInfoId
(
disableInfoId
);
Map
map
=
new
HashMap
<>();
...
...
@@ -242,17 +249,17 @@ public class BuildBedController {
}
ChDisableInfo
chDisableInfo
=
disableInfoServie
.
querySrvModeId
(
disabInfoId
);
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
Integer
exitReasonId
=
chDisableInfo
.
getExitReasonId
();
/*
Integer exitReasonId = chDisableInfo.getExitReasonId();
if(exitReasonId!= null && 1 == exitReasonId){
return Result.failed("该失能人员已死亡退出,不能进行操作");
}
*/
List
<
ChSrvSend
>
chSrvSendsList
=
chSrvSendMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvSend
>()
.
eq
(
ChSrvSend:
:
getDisabInfoId
,
disabInfoId
)
.
eq
(
ChSrvSend:
:
getStatus
,
(
short
)
1
));
if
(
chSrvSendsList
.
size
()
>
0
)
{
/*
if (chSrvSendsList.size() > 0) {
return Result.failed("已分配护理机构,请先终止或退出再操作");
}
}
*/
Long
srvModeId1
=
chSrvSend
.
getSrvModeId
();
if
(
srvModeId
!=
srvModeId1
.
intValue
()){
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
cb71342b
...
...
@@ -170,12 +170,12 @@ public class SrvProgramController {
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
// 添加的话,需要校验其它服务方案是否已终止
if
(
programDetailVo
.
getProgramId
()
==
null
)
{
/*
if (programDetailVo.getProgramId() == null) {
List<ChSrvProgram> srvPrograms = srvProgramService.getProgramSetCountByProgStatus(programDetailVo.getDisabInfoId(), programDetailVo.getSrvOrganId(), "2");
if (srvPrograms.size() > 0) {
return Result.failed(ResultCode.REQUEST_PROGRAM_ADD_ERROR);
}
}
}
*/
// 进行添加或者修改操作
srvProgramService
.
addProgramAndProgramSetList
(
programDetailVo
);
return
Result
.
success
();
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
View file @
cb71342b
...
...
@@ -40,7 +40,9 @@ public interface BuildBedMapper extends BaseMapper<ChSrvBuildBed> {
ChPunchDetailsVO
getsrvOrgan
(
Long
taskDetailId
);
List
<
ChServiceTypeDetailedVO
>
getServiceTypeDetailed
(
@Param
(
"taskDetailId"
)
Long
taskDetailId
,
@Param
(
"certiCode"
)
String
certiCode
,
@Param
(
"sevStarTime"
)
String
sevStarTime
,
@Param
(
"sevEndTime"
)
String
sevEndTime
);
List
<
ChServiceTypeDetailedVO
>
getServiceTypeDetailed
(
@Param
(
"taskDetailId"
)
Long
taskDetailId
,
@Param
(
"certiCode"
)
String
certiCode
,
@Param
(
"sevStarTime"
)
String
sevStarTime
,
@Param
(
"sevEndTime"
)
String
sevEndTime
,
@Param
(
"modeType"
)
String
modeType
);
List
<
ChServiceTypeVO
>
selectServiceTypeDetailed
();
String
selectModeTypeById
(
@Param
(
"pId"
)
Long
pId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/BuildBedServiceImpl.java
View file @
cb71342b
...
...
@@ -144,7 +144,8 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
}
log
.
info
(
"chPunchDetailsQuery获取服务机构和服务类型:"
+
chPunchDetailsVO
);
//打卡详情
List
<
ChServiceTypeDetailedVO
>
serviceTypeDetailed1s
=
buildBedMapper
.
getServiceTypeDetailed
(
taskDetailId
,
certiCode
,
sevStarTime
,
sevEndTime
);
String
modeType
=
buildBedMapper
.
selectModeTypeById
(
taskDetailId
);
List
<
ChServiceTypeDetailedVO
>
serviceTypeDetailed1s
=
buildBedMapper
.
getServiceTypeDetailed
(
taskDetailId
,
certiCode
,
sevStarTime
,
sevEndTime
,
modeType
);
log
.
info
(
"chPunchDetailsQuery打卡详情:"
+
serviceTypeDetailed1s
);
chPunchDetailsVO
.
setRecordData
(
chPunchDetailVOS
);
chPunchDetailsVO
.
setChPunchDetailVOS
(
serviceTypeDetailed1s
);
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
View file @
cb71342b
...
...
@@ -72,20 +72,27 @@
</select>
<select
id=
"selectModeTypeById"
resultType=
"String"
>
select mode1.MODE_NAME from ch_srv_program program
inner JOIN ch_cfg_srv_mode mode1 ON program.srv_mode_id = mode1.mode_id
where program.PROGRAM_ID = #{pId}
</select>
<select
id=
"getServiceTypeDetailed"
parameterType=
"Long"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChServiceTypeDetailedVO"
>
SELECT
detail.TASK_DETAIL_ID,
detail.SRV_START_TIME ,
detail.SRV_END_TIME,
to_char( detail.SRV_START_TIME, 'dd' ) executionTime,
case when mode1.MODE_NAME='上门' then to_char(detail.SRV_START_TIME, 'dd' )
else to_char(item.FCD, 'dd' ) end executionTime,
service.SERVICE_TYPE_DETAILED_NAME itemName,
service.SERVICE_TYPE_DETAILED_ID serviceTypeDetailedId
FROM
CH_SRV_TASK_DETAIL detail
LEFT JOIN ch_srv_task task ON task.srv_task_id = detail.srv_task_id --服务计划详情
LEFT JOIN CH_SRV_TASK_FINISH_ITEM item ON detail.TASK_DETAIL_ID = item.TASK_DETAIL_ID
LEFT JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = item.ITEM_ID
left join CH_SERVICE_TYPE_DETAILED service on service.SERVICE_TYPE_DETAILED_ID = CSOP.ITEM_NAME
inner JOIN ch_srv_task task ON task.srv_task_id = detail.srv_task_id
inner JOIN ch_srv_program program on program.PROGRAM_ID=task.PROGRAM_ID
inner JOIN ch_cfg_srv_mode mode1 ON program.srv_mode_id = mode1.mode_id
inner JOIN CH_SRV_TASK_FINISH_ITEM item ON detail.TASK_DETAIL_ID = item.TASK_DETAIL_ID
inner JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = item.ITEM_ID
inner join CH_SERVICE_TYPE_DETAILED service on service.SERVICE_TYPE_DETAILED_ID = CSOP.ITEM_NAME
WHERE 1=1
<if
test=
"taskDetailId != null and taskDetailId != ''"
>
and task.PROGRAM_ID = #{taskDetailId}
...
...
@@ -94,12 +101,19 @@
<if
test=
"certiCode != null and certiCode != ''"
>
and task.DISAB_INFO_ID = (select DISAB_INFO_ID from CH_DISABLE_INFO where CERTI_CODE =#{certiCode})
</if>
<choose>
<when
test=
"modeType == '上门'"
>
<if
test=
"sevStarTime != null and sevStarTime != ''"
>
AND detail.SRV_START_TIME
>
= TO_DATE (substr(#{sevStarTime},1,10), 'yyyy-mm-dd')
</if>
<if
test=
"sevEndTime != null and sevEndTime != ''"
>
AND detail.SRV_END_TIME
<
= TO_DATE (substr(#{sevEndTime},1,10), 'yyyy-mm-dd')
</if>
</when>
<otherwise>
AND item.FCD >= TO_DATE (substr(#{sevStarTime},1,10), 'yyyy-mm-dd')
</otherwise>
</choose>
</select>
<select
id=
"selectServiceTypeDetailed"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChServiceTypeVO"
>
...
...
@@ -115,5 +129,4 @@
</mapper>
\ No newline at end of file
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvSendMapper.xml
View file @
cb71342b
...
...
@@ -52,9 +52,11 @@
FROM CH_SRV_SEND T1
INNER JOIN CH_SRV_ORGAN T2 ON T1.SRV_ORGAN_ID = T2.SRV_ORGAN_ID
INNER JOIN CH_DISABLE_INFO T3 ON T1.DISAB_INFO_ID = T3.DISAB_INFO_ID
INNER JOIN CH_SRV_BUILD_BED T4 ON T1.DISAB_INFO_ID = T4.DISAB_INFO_ID
<where>
T4.STATUS = 0
<if
test=
"srvOrganId != null and srvOrganId != 0"
>
T1.SRV_ORGAN_ID = #{srvOrganId}
AND
T1.SRV_ORGAN_ID = #{srvOrganId}
</if>
<if
test=
"realName != null and realName != ''"
>
AND T3.REAL_NAME LIKE CONCAT(CONCAT('%',#{realName}),'%')
...
...
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