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
6f86a9af
Commit
6f86a9af
authored
Mar 28, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_nursing_records_20230214' into dev_ch_master
parents
27e6a851
0ea43743
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
251 additions
and
92 deletions
+251
-92
AccountController.java
...om/hungraim/ltc/account/controller/AccountController.java
+22
-0
ChSrvTaskDetailMapper.java
...a/com/hungraim/ltc/account/dao/ChSrvTaskDetailMapper.java
+6
-0
AccountService.java
...java/com/hungraim/ltc/account/service/AccountService.java
+6
-0
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+56
-16
ChDisabAccountsMapper.xml
...rvice/src/main/resources/mapper/ChDisabAccountsMapper.xml
+1
-0
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+33
-0
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+14
-0
ChDisableApplyMapper.xml
...ervice/src/main/resources/mapper/ChDisableApplyMapper.xml
+1
-0
DisableInfoMapper.xml
...y-service/src/main/resources/mapper/DisableInfoMapper.xml
+9
-7
ChDisabAccounts.java
...com/hungraim/ltc/pojo/entity/account/ChDisabAccounts.java
+5
-0
ChDisableInfoChange.java
...hungraim/ltc/pojo/entity/disable/ChDisableInfoChange.java
+44
-0
SrvOrganAccountListResp.java
...hungraim/ltc/pojo/vo/account/SrvOrganAccountListResp.java
+5
-0
DisableUpdateDetailVO.java
...m/hungraim/ltc/pojo/vo/disable/DisableUpdateDetailVO.java
+38
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+8
-19
BuildBedMapper.java
.../java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
+0
-2
DisableInfoServie.java
...om/hungraim/ltc/governance/service/DisableInfoServie.java
+1
-1
IBuildBedService.java
...com/hungraim/ltc/governance/service/IBuildBedService.java
+0
-3
BuildBedServiceImpl.java
...raim/ltc/governance/service/impl/BuildBedServiceImpl.java
+0
-10
DisableInfoServieImpl.java
...im/ltc/governance/service/impl/DisableInfoServieImpl.java
+2
-2
BuildBedMapper.xml
...ces/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
+0
-32
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/controller/AccountController.java
View file @
6f86a9af
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -5,6 +5,7 @@ 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.*
;
import
com.hungraim.ltc.pojo.entity.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO
;
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
;
...
@@ -368,6 +369,27 @@ public class AccountController {
...
@@ -368,6 +369,27 @@ public class AccountController {
}
}
@RequestMapping
(
"/placeOtherQuery"
)
public
Result
<
Page
<
PlaceOtherVO
>>
placeOtherQuery
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
realName
,
String
certiCode
)
{
Page
<
PlaceOtherVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
accountService
.
placeOtherQuery
(
page
,
realName
,
certiCode
);
return
Result
.
success
(
page
);
}
@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
(
"申请失败"
);
}
}
}
}
account/account-service/src/main/java/com/hungraim/ltc/account/dao/ChSrvTaskDetailMapper.java
View file @
6f86a9af
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.account.SrvTaskReqVO
;
import
com.hungraim.ltc.pojo.vo.account.SrvTaskReqVO
;
import
com.hungraim.ltc.pojo.vo.account.SrvTaskRespVO
;
import
com.hungraim.ltc.pojo.vo.account.SrvTaskRespVO
;
import
com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -22,4 +23,8 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
...
@@ -22,4 +23,8 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
**/
**/
Integer
updateSrvPlanById
(
String
palnId
);
Integer
updateSrvPlanById
(
String
palnId
);
int
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
);
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
);
}
}
\ No newline at end of file
account/account-service/src/main/java/com/hungraim/ltc/account/service/AccountService.java
View file @
6f86a9af
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.hungraim.ltc.pojo.entity.account.*
;
import
com.hungraim.ltc.pojo.entity.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.apache.poi.ss.usermodel.Workbook
;
...
@@ -60,4 +61,9 @@ public interface AccountService extends IService<ChDisabAccounts> {
...
@@ -60,4 +61,9 @@ public interface AccountService extends IService<ChDisabAccounts> {
Page
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
);
Page
<
ChDisabDetailAccountsResp
>
queryOrganAccountsDetail
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
);
int
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 @
6f86a9af
...
@@ -19,6 +19,7 @@ import com.hungraim.ltc.pojo.entity.account.*;
...
@@ -19,6 +19,7 @@ import com.hungraim.ltc.pojo.entity.account.*;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskFinishItem
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskFinishItem
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.account.*
;
import
com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO
;
import
com.hungraim.ltc.util.*
;
import
com.hungraim.ltc.util.*
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -66,6 +67,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -66,6 +67,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
ChDisabAccounts
chDisabAccounts
=
new
ChDisabAccounts
();
ChDisabAccounts
chDisabAccounts
=
new
ChDisabAccounts
();
BeanUtils
.
copyProperties
(
accountOperVo
,
chDisabAccounts
);
BeanUtils
.
copyProperties
(
accountOperVo
,
chDisabAccounts
);
chDisabAccounts
.
setChooseSettle
((
short
)
0
);
// 是否结算(0未结算,1已结算)
chDisabAccounts
.
setChooseSettle
((
short
)
0
);
// 是否结算(0未结算,1已结算)
chDisabAccounts
.
setReviewRemark
(
accountOperVo
.
getReviewRemark
());
Short
accountsStatus
=
accountOperVo
.
getAccountsStatus
();
Short
accountsStatus
=
accountOperVo
.
getAccountsStatus
();
String
accountsId
=
String
.
valueOf
(
accountOperVo
.
getAccountsId
());
String
accountsId
=
String
.
valueOf
(
accountOperVo
.
getAccountsId
());
// 驳回
// 驳回
...
@@ -80,25 +82,12 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -80,25 +82,12 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
map
.
put
(
"ACCOUNTS_ID"
,
accountsId
);
map
.
put
(
"ACCOUNTS_ID"
,
accountsId
);
chDisabFreeRdInfoMapper
.
deleteByMap
(
map
);
chDisabFreeRdInfoMapper
.
deleteByMap
(
map
);
}
}
//待审核
if
(
accountsStatus
==
1
)
{
// chDisabAccountsDetailMapper.updateByAccountsIdReject(accountsId);
}
// 审核通过
if
(
accountsStatus
==
2
)
{
// chDisabAccountsDetailMapper.updateByAccountsIdAuditing(accountsId);
}
// 复核
if
(
accountsStatus
==
3
)
{
// chDisabAccountsDetailMapper.updateByAccountsIdCheck(accountsId);
}
// 已结算
// 已结算
if
(
accountsStatus
==
4
)
{
if
(
accountsStatus
==
4
)
{
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountOperVo
.
getAccountsId
());
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountOperVo
.
getAccountsId
());
chDisabAccountDTO
.
setTotalAllocatedExpenses
(
chDisabAccountDTO
.
getTotalAllocatedExpenses
());
chDisabAccountDTO
.
setTotalAllocatedExpenses
(
chDisabAccountDTO
.
getTotalAllocatedExpenses
());
chDisabAccountDTO
.
setChooseSettle
((
short
)
1
);
// 是否结算(0未结算,1已结算)
chDisabAccountDTO
.
setChooseSettle
((
short
)
1
);
// 是否结算(0未结算,1已结算)
disabAccountsMapper
.
updateById
(
chDisabAccountDTO
);
disabAccountsMapper
.
updateById
(
chDisabAccountDTO
);
//chDisabAccountsDetailMapper.updateByAccountsIdAccounts(accountsId);
}
}
this
.
saveOrUpdate
(
chDisabAccounts
);
this
.
saveOrUpdate
(
chDisabAccounts
);
}
}
...
@@ -671,9 +660,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -671,9 +660,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
ChDisabAccounts
chDisabAccounts
=
getChDisabAccounts1
(
accountsVO
);
ChDisabAccounts
chDisabAccounts
=
getChDisabAccounts1
(
accountsVO
);
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
String
planId
=
accountsVO
.
getPlanId
();
// 更新
chDisabAccountsDetailMapper
.
updateByPlanId
(
planId
);
}
else
{
}
else
{
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
...
@@ -912,5 +898,59 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -912,5 +898,59 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
return
result
;
return
result
;
}
}
@Override
public
int
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
taskDetailMapper
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
BigDecimal
limit
=
BigDecimal
.
valueOf
(
20
);
BigDecimal
zero
=
BigDecimal
.
valueOf
(
0
);
ChDisabDetailAccounts
chDisabDetailAccountsDTO
=
chDisabAccountsDetailMapper
.
queryDisabDetailAccounts
(
"471"
,
otherApplyTime
,
String
.
valueOf
(
disabInfoId
),
"异地"
);
if
(
Objects
.
isNull
(
chDisabDetailAccountsDTO
))
{
// 异地
ChDisabDetailAccounts
chDisabDetailAccounts
=
new
ChDisabDetailAccounts
();
chDisabDetailAccounts
.
setAccountsAllCost
(
limit
);
chDisabDetailAccounts
.
setAccountsOverallCost
(
limit
);
chDisabDetailAccounts
.
setAccountsPersonalCost
(
zero
);
chDisabDetailAccounts
.
setModeName
(
"异地"
);
chDisabDetailAccounts
.
setSrvOrganId
(
"471"
);
chDisabDetailAccounts
.
setCreationTime
(
new
Date
());
chDisabDetailAccounts
.
setAccountsTime
(
DateUtils
.
strToDate
(
otherApplyTime
));
// chDisabDetailAccounts.setMedicalArea(accountsVO.getMedicalArea());
chDisabDetailAccounts
.
setDisabInfoId
(
String
.
valueOf
(
disabInfoId
));
chDisabDetailAccounts
.
setStatus
((
short
)
1
);
chDisabDetailAccounts
.
setReissueAmount
(
BigDecimal
.
valueOf
(
0
));
chDisabDetailAccounts
.
setDeductionAmount
(
BigDecimal
.
valueOf
(
0
));
ChDisabAccounts
chDisabAccounts
=
disabAccountsMapper
.
queryAccountByCondition
(
DateUtils
.
dateToStrYm
(
DateUtils
.
strToDate
(
otherApplyTime
)),
"异地"
,
"471"
,
null
);
if
(
chDisabAccounts
==
null
)
{
chDisabAccounts
=
new
ChDisabAccounts
();
chDisabAccounts
.
setModeName
(
"异地"
);
chDisabAccounts
.
setAccountsTime
(
DateUtils
.
strToDateMd
(
otherApplyTime
));
chDisabAccounts
.
setSrvOrganId
(
Long
.
valueOf
(
471
));
chDisabAccounts
.
setCreationTime
(
new
Date
());
chDisabAccounts
.
setAccountsStatus
((
short
)
1
);
chDisabAccounts
.
setAllCost
(
limit
);
chDisabAccounts
.
setOverallCost
(
limit
);
chDisabAccounts
.
setPersonalCost
(
zero
);
chDisabAccounts
.
setReissueAmountTotal
(
zero
);
chDisabAccounts
.
setDeductionAmountTotal
(
zero
);
disabAccountsMapper
.
insert
(
chDisabAccounts
);
}
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
}
else
{
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
chDisabDetailAccountsDTO
.
setAccountsAllCost
(
accountsAllCost
.
add
(
limit
));
chDisabDetailAccountsDTO
.
setAccountsOverallCost
(
accountsOverallCost
.
add
(
limit
));
chDisabDetailAccountsDTO
.
setAccountsPersonalCost
(
zero
);
chDisabAccountsDetailMapper
.
updateById
(
chDisabDetailAccountsDTO
);
}
return
result
;
}
@Override
public
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
)
{
Page
<
PlaceOtherVO
>
placeOtherVOPage
=
taskDetailMapper
.
placeOtherQuery
(
page
,
name
,
certiCode
);
return
placeOtherVOPage
;
}
}
}
account/account-service/src/main/resources/mapper/ChDisabAccountsMapper.xml
View file @
6f86a9af
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
t1.OVERALL_COST,
t1.OVERALL_COST,
t1.PERSONAL_COST,
t1.PERSONAL_COST,
t1.SVR_START_TIME,
t1.SVR_START_TIME,
t1.REVIEW_REMARK reviewRemark,
t1.MODE_NAME,
t1.MODE_NAME,
to_char(t1.SVR_START_TIME,'yyyy-MM-dd') svrStartTime,
to_char(t1.SVR_START_TIME,'yyyy-MM-dd') svrStartTime,
to_char(t1.SVR_END_TIME,'yyyy-MM-dd') svrEndTime,
to_char(t1.SVR_END_TIME,'yyyy-MM-dd') svrEndTime,
...
...
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
6f86a9af
...
@@ -50,6 +50,39 @@
...
@@ -50,6 +50,39 @@
<select
id=
"placeOtherQuery"
resultType=
"com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO"
>
SELECT distinct info.DISAB_INFO_ID disabInfoId,
report.evaluate_time evaluateTime,
task.ORGAN_ID organId,
report.disable_level_id disableLevelId,
info.REAL_NAME realName,
info.CERTI_CODE certiCode,
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE info.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
info.disease_desc diseaseDesc,
lev.DISABLE_LEVEL_NAME riskLevel,
report.PUBLICITY_START_TIME publicityStartTime,
report.PUBLICITY_END_TIME publicityEndTime,
report.PUBLICITY_TIME publicityTime,
to_char(info.OTHER_APPLY_TIME,'yyyy-MM-dd') otherApplyTime
FROM CH_DISABLE_INFO info
LEFT JOIN CH_APR_TASK task ON info.DISAB_INFO_ID = task.DISABLE_INFO_ID
LEFT JOIN ch_apr_report report ON report.TASK_ID = task.TASK_ID
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
<if
test=
"name != null and name != ''"
>
and info.REAL_NAME like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
and info.CERTI_CODE =#{certiCode}
</if>
</select>
<update
id=
"placeOtherApply"
>
update CH_DISABLE_INFO set OTHER_APPLY_TIME = TO_DATE ( #{otherApplyTime}, 'yyyy-MM-dd') where DISAB_INFO_ID = #{disabInfoId}
</update>
</mapper>
</mapper>
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
6f86a9af
...
@@ -176,6 +176,8 @@ public class DisableServiceImpl implements DisableService {
...
@@ -176,6 +176,8 @@ public class DisableServiceImpl implements DisableService {
disableUpdateDetailVo
.
setAddressDetail
(
chDisableInfo
.
getAdressDetail
());
disableUpdateDetailVo
.
setAddressDetail
(
chDisableInfo
.
getAdressDetail
());
// 接收评定详细地址
// 接收评定详细地址
disableUpdateDetailVo
.
setAcptDetail
(
chDisableInfo
.
getAcptAddress
());
disableUpdateDetailVo
.
setAcptDetail
(
chDisableInfo
.
getAcptAddress
());
// 代办人身份证号
// 代办人身份证号
disableUpdateDetailVo
.
setOperCertiNum
(
chDisableInfo
.
getOperCertiCode
());
disableUpdateDetailVo
.
setOperCertiNum
(
chDisableInfo
.
getOperCertiCode
());
// 代办人省市区
// 代办人省市区
...
@@ -189,6 +191,18 @@ public class DisableServiceImpl implements DisableService {
...
@@ -189,6 +191,18 @@ public class DisableServiceImpl implements DisableService {
//医保统筹区
//医保统筹区
ChDisableApply
chDisableApply
=
disableApplyMapper
.
selectById
(
chDisableInfo
.
getApplyId
());
ChDisableApply
chDisableApply
=
disableApplyMapper
.
selectById
(
chDisableInfo
.
getApplyId
());
disableUpdateDetailVo
.
setMedicalArea
(
chDisableApply
.
getMedicalArea
());
disableUpdateDetailVo
.
setMedicalArea
(
chDisableApply
.
getMedicalArea
());
//失能人员医疗信息
disableUpdateDetailVo
.
setDiseTypeF
(
chDisableApply
.
getDiseTypeF
());
disableUpdateDetailVo
.
setDiseTypeS
(
chDisableApply
.
getDiseTypeS
());
disableUpdateDetailVo
.
setMedicalType
(
chDisableApply
.
getMedicalType
());
disableUpdateDetailVo
.
setSrvModeId
(
chDisableApply
.
getSrvModeId
());
disableUpdateDetailVo
.
setApplyTime
(
chDisableApply
.
getApplyTime
());
disableUpdateDetailVo
.
setBankCardNo
(
chDisableApply
.
getBankCardNo
());
disableUpdateDetailVo
.
setSrvOrganId
(
chDisableApply
.
getSrvOrganId
());
disableUpdateDetailVo
.
setReviewFrequency
(
chDisableApply
.
getReviewFrequency
());
try
{
try
{
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
valueOf
(
chDisableInfo
.
getApplyId
()),
AttachType
.
DISABLE
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
valueOf
(
chDisableInfo
.
getApplyId
()),
AttachType
.
DISABLE
.
getUploadType
());
if
(
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
...
...
apply/apply-service/src/main/resources/mapper/ChDisableApplyMapper.xml
View file @
6f86a9af
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
and s.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{srvOrganName}) ,'%')
and s.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{srvOrganName}) ,'%')
</if>
</if>
</where>
</where>
order by a.EFF_TIME desc
</select>
</select>
<select
id=
"selectDisableExamineInfoByApplyId"
resultType=
"com.hungraim.ltc.pojo.vo.disable.DisableExamineInfoVO"
>
<select
id=
"selectDisableExamineInfoByApplyId"
resultType=
"com.hungraim.ltc.pojo.vo.disable.DisableExamineInfoVO"
>
...
...
apply/apply-service/src/main/resources/mapper/DisableInfoMapper.xml
View file @
6f86a9af
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.dao.DisableInfoMapper"
>
<mapper
namespace=
"com.hungraim.ltc.dao.DisableInfoMapper"
>
<select
id=
"getDisableInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.disable.DisableInfoListVo"
>
<select
id=
"getDisableInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.disable.DisableInfoListVo"
>
SELECT distinct
T1.PROGRAM_ID program
Id,
SELECT distinct
T2.DISAB_INFO_ID disabInfo
Id,
T1.
SRV_ORGAN_ID srvOrgan
Id,
T1.
PROGRAM_ID program
Id,
T
1.DISAB_INFO_ID disabInfo
Id,
T
6.SRV_ORGAN_ID srvOrgan
Id,
T5.DISTRICT_PROVINCIAL districtProvincial,
T5.DISTRICT_PROVINCIAL districtProvincial,
T5.DISTRICT_CITY districtCity,
T5.DISTRICT_CITY districtCity,
T2.REAL_NAME realName,
T2.REAL_NAME realName,
...
@@ -30,13 +30,14 @@
...
@@ -30,13 +30,14 @@
T2.EXIT_FLAG exitFlag,
T2.EXIT_FLAG exitFlag,
T2.EXIT_REASON_ID exitReasonId
T2.EXIT_REASON_ID exitReasonId
FROM CH_DISABLE_INFO T2
FROM CH_DISABLE_INFO T2
INNER JOIN CH_SRV_PROGRAM T1 ON T1.DISAB_INFO_ID = T2.DISAB_INFO_ID
inner join (select * from CH_SRV_SEND where STATUS in(1,3)) T6 on T6.DISAB_INFO_ID = T2.DISAB_INFO_ID
LEFT JOIN CH_SRV_PROGRAM T1 ON T1.DISAB_INFO_ID = T2.DISAB_INFO_ID
LEFT JOIN CH_CFG_SRV_MODE T7 ON T2.SRV_MODE_ID = T7.MODE_ID
LEFT JOIN CH_CFG_SRV_MODE T7 ON T2.SRV_MODE_ID = T7.MODE_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T
1
.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T
6
.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
<where>
<where>
1=1
1=1
<if
test=
"srvOrganId != null and srvOrganId != '' and srvOrganId!=0"
>
<if
test=
"srvOrganId != null and srvOrganId != '' and srvOrganId!=0"
>
and T
1
.SRV_ORGAN_ID = #{srvOrganId}
and T
5
.SRV_ORGAN_ID = #{srvOrganId}
</if>
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
<if
test=
"certiCode != null and certiCode != ''"
>
and T2.CERTI_CODE = #{certiCode}
and T2.CERTI_CODE = #{certiCode}
...
@@ -48,6 +49,7 @@
...
@@ -48,6 +49,7 @@
and T7.MODE_ID = #{svrModelId}
and T7.MODE_ID = #{svrModelId}
</if>
</if>
</where>
</where>
</select>
</select>
<update
id=
"updateChSrvProgram"
>
<update
id=
"updateChSrvProgram"
>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/account/ChDisabAccounts.java
View file @
6f86a9af
...
@@ -76,6 +76,11 @@ public class ChDisabAccounts implements Serializable {
...
@@ -76,6 +76,11 @@ public class ChDisabAccounts implements Serializable {
private
String
checkRemark
;
private
String
checkRemark
;
/**
/**
* 复核备注
*/
private
String
reviewRemark
;
/**
* 服务方式
* 服务方式
*/
*/
private
String
modeName
;
private
String
modeName
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChDisableInfoChange.java
View file @
6f86a9af
...
@@ -432,4 +432,48 @@ public class ChDisableInfoChange {
...
@@ -432,4 +432,48 @@ public class ChDisableInfoChange {
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
applyTime
;
private
Date
applyTime
;
/**
* 疾病大类
*/
private
Long
diseTypeF
;
/**
* 疾病小类
*/
private
Long
diseTypeS
;
/**
* 服务方式
*/
private
Long
srvModeId
;
/**
* 疾病描述
*/
private
String
diseaseDesc
;
private
String
bankCardNo
;
/**
* 医保类型 城镇:1;非城镇:0
*/
private
Short
medicalType
;
/**
* 意向护理机构
*/
private
Long
srvOrganId
;
/**
* 是否首次申请 初次申请,争议复评,定期复评,变更评定
*/
private
Long
reviewFrequency
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/account/SrvOrganAccountListResp.java
View file @
6f86a9af
...
@@ -92,5 +92,10 @@ public class SrvOrganAccountListResp {
...
@@ -92,5 +92,10 @@ public class SrvOrganAccountListResp {
*/
*/
private
String
reissueAmountTotal
;
private
String
reissueAmountTotal
;
/**
*复核备注
*/
private
String
reviewRemark
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableUpdateDetailVO.java
View file @
6f86a9af
...
@@ -119,4 +119,42 @@ public class DisableUpdateDetailVO {
...
@@ -119,4 +119,42 @@ public class DisableUpdateDetailVO {
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
applyTime
;
private
Date
applyTime
;
/**
* 疾病大类
*/
private
Long
diseTypeF
;
/**
* 疾病小类
*/
private
Long
diseTypeS
;
/**
* 服务方式
*/
private
Long
srvModeId
;
/**
* 疾病描述
*/
private
String
diseaseDesc
;
private
String
bankCardNo
;
/**
* 医保类型 城镇:1;非城镇:0
*/
private
Short
medicalType
;
/**
* 意向护理机构
*/
private
Long
srvOrganId
;
/**
* 是否首次申请 初次申请,争议复评,定期复评,变更评定
*/
private
Long
reviewFrequency
;
}
}
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
6f86a9af
...
@@ -240,13 +240,20 @@ public class BuildBedController {
...
@@ -240,13 +240,20 @@ public class BuildBedController {
if
(
chSrvSend
.
getDisabInfoId
()
==
null
||
chSrvSend
.
getSrvOrganId
()
==
null
||
chSrvSend
.
getSrvModeId
()
==
null
)
{
if
(
chSrvSend
.
getDisabInfoId
()
==
null
||
chSrvSend
.
getSrvOrganId
()
==
null
||
chSrvSend
.
getSrvModeId
()
==
null
)
{
return
Result
.
failed
(
"参数不全!"
);
return
Result
.
failed
(
"参数不全!"
);
}
}
ChDisableInfo
chDisableInfo
=
disableInfoServie
.
querySrvModeId
(
disabInfoId
);
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
Integer
exitReasonId
=
chDisableInfo
.
getExitReasonId
();
if
(
exitReasonId
!=
null
&&
1
==
exitReasonId
){
return
Result
.
failed
(
"该失能人员已死亡退出,不能进行操作"
);
}
List
<
ChSrvSend
>
chSrvSendsList
=
chSrvSendMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvSend
>()
List
<
ChSrvSend
>
chSrvSendsList
=
chSrvSendMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvSend
>()
.
eq
(
ChSrvSend:
:
getDisabInfoId
,
disabInfoId
)
.
eq
(
ChSrvSend:
:
getDisabInfoId
,
disabInfoId
)
.
eq
(
ChSrvSend:
:
getStatus
,
(
short
)
1
));
.
eq
(
ChSrvSend:
:
getStatus
,
(
short
)
1
));
if
(
chSrvSendsList
.
size
()
>
0
)
{
if
(
chSrvSendsList
.
size
()
>
0
)
{
return
Result
.
failed
(
"已分配护理机构,请先终止或退出再操作"
);
return
Result
.
failed
(
"已分配护理机构,请先终止或退出再操作"
);
}
}
Integer
srvModeId
=
disableInfoServie
.
querySrvModeId
(
disabInfoId
);
Long
srvModeId1
=
chSrvSend
.
getSrvModeId
();
Long
srvModeId1
=
chSrvSend
.
getSrvModeId
();
if
(
srvModeId
!=
srvModeId1
.
intValue
()){
if
(
srvModeId
!=
srvModeId1
.
intValue
()){
String
srvModeName
=
null
;
String
srvModeName
=
null
;
...
@@ -358,24 +365,6 @@ public class BuildBedController {
...
@@ -358,24 +365,6 @@ public class BuildBedController {
}
}
}
}
@RequestMapping
(
"/placeOtherQuery"
)
public
Result
<
Page
<
PlaceOtherVO
>>
placeOtherQuery
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
realName
,
String
certiCode
)
{
Page
<
PlaceOtherVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
buildBedService
.
placeOtherQuery
(
page
,
realName
,
certiCode
);
return
Result
.
success
(
page
);
}
@RequestMapping
(
"/placeOtherApply"
)
public
Result
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
buildBedService
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
if
(
result
>
0
)
{
return
Result
.
success
();
}
else
{
return
Result
.
failed
(
"申请失败"
);
}
}
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
View file @
6f86a9af
...
@@ -28,9 +28,7 @@ import java.util.List;
...
@@ -28,9 +28,7 @@ import java.util.List;
@Repository
@Repository
public
interface
BuildBedMapper
extends
BaseMapper
<
ChSrvBuildBed
>
{
public
interface
BuildBedMapper
extends
BaseMapper
<
ChSrvBuildBed
>
{
int
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
);
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
);
Page
<
BuildBedSearchRsp
>
searchOrgBed
(
Page
<
BuildBedSearchRsp
>
page
,
@Param
(
"req"
)
BuildBedSearchReq
req
);
Page
<
BuildBedSearchRsp
>
searchOrgBed
(
Page
<
BuildBedSearchRsp
>
page
,
@Param
(
"req"
)
BuildBedSearchReq
req
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/DisableInfoServie.java
View file @
6f86a9af
...
@@ -13,5 +13,5 @@ public interface DisableInfoServie extends IService<ChDisableInfo> {
...
@@ -13,5 +13,5 @@ public interface DisableInfoServie extends IService<ChDisableInfo> {
Page
<
DisableInfoVo
>
querySrvYet
(
Integer
disableInfoId
,
int
current
,
int
limit
,
Integer
status
,
Integer
sendId
);
Page
<
DisableInfoVo
>
querySrvYet
(
Integer
disableInfoId
,
int
current
,
int
limit
,
Integer
status
,
Integer
sendId
);
Integer
querySrvModeId
(
Long
disabInfoId
);
ChDisableInfo
querySrvModeId
(
Long
disabInfoId
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/IBuildBedService.java
View file @
6f86a9af
...
@@ -19,9 +19,6 @@ import java.util.Date;
...
@@ -19,9 +19,6 @@ import java.util.Date;
*/
*/
public
interface
IBuildBedService
extends
IService
<
ChSrvBuildBed
>
{
public
interface
IBuildBedService
extends
IService
<
ChSrvBuildBed
>
{
int
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
);
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
);
Result
searchOrgBed
(
BuildBedSearchReq
req
);
Result
searchOrgBed
(
BuildBedSearchReq
req
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/BuildBedServiceImpl.java
View file @
6f86a9af
...
@@ -44,17 +44,7 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
...
@@ -44,17 +44,7 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
private
final
ServiceTypeDetailedMapper
serviceTypeDetailed
;
private
final
ServiceTypeDetailedMapper
serviceTypeDetailed
;
@Override
public
int
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
buildBedMapper
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
return
result
;
}
@Override
public
Page
<
PlaceOtherVO
>
placeOtherQuery
(
Page
page
,
String
name
,
String
certiCode
)
{
Page
<
PlaceOtherVO
>
placeOtherVOPage
=
buildBedMapper
.
placeOtherQuery
(
page
,
name
,
certiCode
);
return
placeOtherVOPage
;
}
@Override
@Override
public
Result
searchOrgBed
(
BuildBedSearchReq
req
)
{
public
Result
searchOrgBed
(
BuildBedSearchReq
req
)
{
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/DisableInfoServieImpl.java
View file @
6f86a9af
...
@@ -22,9 +22,9 @@ public class DisableInfoServieImpl extends ServiceImpl<DisableInfoMapper, ChDisa
...
@@ -22,9 +22,9 @@ public class DisableInfoServieImpl extends ServiceImpl<DisableInfoMapper, ChDisa
@Override
@Override
public
Integer
querySrvModeId
(
Long
disabInfoId
){
public
ChDisableInfo
querySrvModeId
(
Long
disabInfoId
){
ChDisableInfo
chDisableInfo
=
baseMapper
.
selectById
(
disabInfoId
);
ChDisableInfo
chDisableInfo
=
baseMapper
.
selectById
(
disabInfoId
);
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
return
srvModeId
;
return
chDisableInfo
;
}
}
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
View file @
6f86a9af
...
@@ -161,37 +161,6 @@
...
@@ -161,37 +161,6 @@
</select>
</select>
<select
id=
"placeOtherQuery"
resultType=
"com.hungraim.ltc.pojo.vo.disable.PlaceOtherVO"
>
SELECT distinct info.DISAB_INFO_ID disabInfoId,
report.evaluate_time evaluateTime,
task.ORGAN_ID organId,
report.disable_level_id disableLevelId,
info.REAL_NAME realName,
info.CERTI_CODE certiCode,
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE info.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
info.disease_desc diseaseDesc,
lev.DISABLE_LEVEL_NAME riskLevel,
report.PUBLICITY_START_TIME publicityStartTime,
report.PUBLICITY_END_TIME publicityEndTime,
report.PUBLICITY_TIME publicityTime,
to_char(info.OTHER_APPLY_TIME,'yyyy-MM-dd') otherApplyTime
FROM CH_DISABLE_INFO info
LEFT JOIN CH_APR_TASK task ON info.DISAB_INFO_ID = task.DISABLE_INFO_ID
LEFT JOIN ch_apr_report report ON report.TASK_ID = task.TASK_ID
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
<if
test=
"name != null and name != ''"
>
and info.REAL_NAME like CONCAT(CONCAT('%',#{name}) ,'%')
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
and info.CERTI_CODE =#{certiCode}
</if>
</select>
<update
id=
"placeOtherApply"
>
update CH_DISABLE_INFO set OTHER_APPLY_TIME = TO_DATE ( #{otherApplyTime}, 'yyyy-MM-dd') where DISAB_INFO_ID = #{disabInfoId}
</update>
</mapper>
</mapper>
\ No newline at end of file
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