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
14c96ea0
Commit
14c96ea0
authored
Oct 26, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
建床管理相关
parent
8d18a253
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
9 deletions
+55
-9
BuildBedDetailVo.java
...com/hungraim/ltc/pojo/vo/governance/BuildBedDetailVo.java
+0
-0
BuildBedSearchRsp.java
...om/hungraim/ltc/pojo/vo/governance/BuildBedSearchRsp.java
+5
-1
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+15
-3
SrvSendMapper.java
...n/java/com/hungraim/ltc/governance/dao/SrvSendMapper.java
+2
-1
IBuildBedService.java
...com/hungraim/ltc/governance/service/IBuildBedService.java
+8
-0
BuildBedServiceImpl.java
...raim/ltc/governance/service/impl/BuildBedServiceImpl.java
+23
-2
SrvSendServiceImpl.java
...graim/ltc/governance/service/impl/SrvSendServiceImpl.java
+1
-1
BuildBedMapper.xml
...ces/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
+1
-1
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/BuildBedDetailVo.java
View file @
14c96ea0
This diff is collapsed.
Click to expand it.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/BuildBedSearchRsp.java
View file @
14c96ea0
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
/**
...
...
@@ -9,7 +10,8 @@ import lombok.Data;
public
class
BuildBedSearchRsp
{
private
String
buildBedId
;
private
String
provinceCity
;
private
String
districtProvincial
;
private
String
districtCity
;
private
String
realName
;
private
String
certiCode
;
private
String
tel
;
...
...
@@ -21,7 +23,9 @@ public class BuildBedSearchRsp {
private
String
changhuNo
;
private
String
specialZone
;
private
String
bedNumber
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
String
buildBedTime
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
String
removeBedTime
;
private
String
status
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
14c96ea0
...
...
@@ -72,7 +72,7 @@ public class BuildBedController {
//家庭住址
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
buildBedDetailVo
.
getNursingDemandLevel
()
!=
null
&&
buildBedDetailVo
.
getNursingDemandLevel
()
>=
1
&&
buildBedDetailVo
.
getNursingDemandLevel
()
<=
5
)
{
if
(
buildBedDetailVo
.
getNursingDemandLevel
()
==
null
||
buildBedDetailVo
.
getNursingDemandLevel
()
<
1
||
buildBedDetailVo
.
getNursingDemandLevel
()
>
5
)
{
//护理需求等级
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
...
...
@@ -80,7 +80,7 @@ public class BuildBedController {
//长护号
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
buildBedDetailVo
.
getGuaranteeMode
()
!=
null
&&
buildBedDetailVo
.
getGuaranteeMode
()
>=
1
&&
buildBedDetailVo
.
getGuaranteeMode
()
<=
3
)
{
if
(
buildBedDetailVo
.
getGuaranteeMode
()
==
null
||
buildBedDetailVo
.
getGuaranteeMode
()
<
1
||
buildBedDetailVo
.
getGuaranteeMode
()
>
3
)
{
//保障方式
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
...
...
@@ -89,6 +89,18 @@ public class BuildBedController {
}
/**
* 查询建床详情
*
* @param buildBedId 建床详情id
* @return 返回建床详情
*/
@GetMapping
(
"getBuildBedDetail"
)
public
Result
<
BuildBedDetailVo
>
getBuildBedDetail
(
Integer
buildBedId
)
{
BuildBedDetailVo
buildBedDetailVo
=
buildBedService
.
getBuildBedDetail
(
buildBedId
);
return
Result
.
success
(
buildBedDetailVo
);
}
/**
* 功能描述: 服务分配信息检索条件查询
*/
@PostMapping
(
"/pageFuwuCondition"
)
...
...
@@ -202,7 +214,7 @@ public class BuildBedController {
if
(
StringUtils
.
isBlank
(
realName
)
||
null
==
srvOrganId
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
IPage
<
SearchDisableSimpleVo
>
searchDisableSimpleVoIPage
=
sendService
.
buildBedSearchByRealName
(
pageNum
,
pageSize
,
srvOrganId
,
realName
);
IPage
<
SearchDisableSimpleVo
>
searchDisableSimpleVoIPage
=
sendService
.
buildBedSearchByRealName
(
pageNum
,
pageSize
,
srvOrganId
,
realName
);
return
Result
.
success
(
searchDisableSimpleVoIPage
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/SrvSendMapper.java
View file @
14c96ea0
...
...
@@ -3,7 +3,6 @@ package com.hungraim.ltc.governance.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend
;
...
...
@@ -81,7 +80,9 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
" FROM "
+
"CH_SRV_SEND t1"
+
" LEFT JOIN CH_DISABLE_INFO t2 ON t1.DISAB_INFO_ID = t2.DISAB_INFO_ID "
+
" LEFT JOIN CH_SRV_BUILD_BED t3 ON t2.DISAB_INFO_ID = t3.DISAB_INFO_ID "
+
" WHERE "
+
"t3.BUILD_BED_ID IS NOT NULL "
+
"t1.SRV_ORGAN_ID = #{srvOrganId} "
+
" AND t2.REAL_NAME LIKE CONCAT( '%', CONCAT( #{realName}, '%' ) )"
)
IPage
<
SearchDisableSimpleVo
>
buildBedSearchByRealName
(
Page
<
SearchDisableSimpleVo
>
page
,
Integer
srvOrganId
,
String
realName
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/IBuildBedService.java
View file @
14c96ea0
...
...
@@ -14,4 +14,12 @@ public interface IBuildBedService extends IService<ChSrvBuildBed> {
void
saveOrUpdateBuildBed
(
BuildBedDetailVo
buildBedDetailVo
);
/**
* 查询建床详情
*
* @param buildBedId 建床详情id
* @return 返回建床详情
*/
BuildBedDetailVo
getBuildBedDetail
(
Integer
buildBedId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/BuildBedServiceImpl.java
View file @
14c96ea0
...
...
@@ -12,6 +12,7 @@ import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -47,14 +48,34 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
List
<
ChFndAttach
>
fileDataList
=
buildBedDetailVo
.
getFileDataList
();
chSrvBuildBed
.
setStatus
(
0
);
// 状态(0已建床,1已撤床)
chSrvBuildBed
.
setAccountStatus
(
0
);
// 结算状态(0,未结算;1,结算中;2,已结算)
this
.
saveOrUpdate
(
chSrvBuildBed
);
buildBedDetailVo
.
setBuildBedId
(
chSrvBuildBed
.
getBuildBedId
());
this
.
updateAttachs
(
buildBedDetailVo
);
}
@Override
public
BuildBedDetailVo
getBuildBedDetail
(
Integer
buildBedId
)
{
ChSrvBuildBed
chSrvBuildBed
=
this
.
getById
(
buildBedId
);
BuildBedDetailVo
buildBedDetailVo
=
new
BuildBedDetailVo
();
BeanUtils
.
copyProperties
(
chSrvBuildBed
,
buildBedDetailVo
);
try
{
Result
<
List
<
ChFndAttach
>>
result
=
attachFeignService
.
selectAttachs
(
buildBedId
.
longValue
(),
AttachType
.
BUILD_BED
.
getUploadType
());
if
(
ResultCode
.
SUCCESS
.
getCode
().
equals
(
result
.
getCode
()))
{
buildBedDetailVo
.
setFileDataList
(
result
.
getData
());
}
else
{
log
.
error
(
"请求获取建床附件失败:{}"
,
result
.
getMsg
());
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
"请求获取建床附件失败:{}"
,
e
.
getMessage
());
}
return
buildBedDetailVo
;
}
/**
* 调用feign api来修改附件数据
*
* @param buildBedDetailVo
* @param buildBedDetailVo
建床详情封装对象
*/
private
void
updateAttachs
(
BuildBedDetailVo
buildBedDetailVo
)
{
// zhangch 20210525 新增附件修改逻辑
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvSendServiceImpl.java
View file @
14c96ea0
...
...
@@ -61,7 +61,7 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
@Override
public
IPage
<
SearchDisableSimpleVo
>
buildBedSearchByRealName
(
Integer
pageNum
,
Integer
pageSize
,
Integer
srvOrganId
,
String
realName
)
{
return
sendMapper
.
buildBedSearchByRealName
(
new
Page
<
SearchDisableSimpleVo
>(
pageNum
,
pageSize
),
srvOrganId
,
realName
);
return
sendMapper
.
buildBedSearchByRealName
(
new
Page
<>(
pageNum
,
pageSize
),
srvOrganId
,
realName
);
}
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
View file @
14c96ea0
...
...
@@ -5,7 +5,7 @@
<select
id=
"searchOrgBed"
parameterType=
"com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq"
resultType=
"com.hungraim.ltc.pojo.vo.governance.BuildBedSearchRsp"
>
SELECT a.BUILD_BED_ID,
CONCAT(b.DISTRICT_PROVINCIAL, b.DISTRICT_CITY) AS province_city
, b.REAL_NAME,
SELECT a.BUILD_BED_ID,
b.DISTRICT_PROVINCIAL, b.DISTRICT_CITY
, b.REAL_NAME,
b.CERTI_CODE, b.TEL, TRUNC(months_between(sysdate, b.BIRTHDAY)/12) AS age,
DECODE(b.GENDER, 'M','男','F', '女') gender, a.ADRESS_DETAIL as address,
a.NURSING_DEMAND_LEVEL, a.SRV_MODE, a.CHANGHU_NO, a.SPECIAL_ZONE, a.BED_NUMBER, TO_CHAR(a.BUILD_BED_TIME, 'yyyy-MM-dd') AS build_bed_time,
...
...
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