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
21e1d1af
Commit
21e1d1af
authored
Apr 19, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
dd7acf9a
e30d535d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
1211 additions
and
27 deletions
+1211
-27
DisableController.java
...n/java/com/hungraim/ism/controller/DisableController.java
+1
-0
SrvOrganMapper.java
...ce/src/main/java/com/hungraim/ism/dao/SrvOrganMapper.java
+2
-0
DisableService.java
...rc/main/java/com/hungraim/ism/service/DisableService.java
+1
-0
bootstrap.yml
apply/apply-service/src/main/resources/bootstrap.yml
+2
-1
ChDisableApplyMapper.xml
...ervice/src/main/resources/mapper/ChDisableApplyMapper.xml
+1
-0
bootstrap.yml
...sment/assessment-service/src/main/resources/bootstrap.yml
+1
-1
bootstrap.yml
auth-service/src/main/resources/bootstrap.yml
+1
-1
DisableEvaluateInfoVO.java
...m/hungraim/ism/pojo/vo/disable/DisableEvaluateInfoVO.java
+3
-0
DisableEvaluateVO.java
...a/com/hungraim/ism/pojo/vo/disable/DisableEvaluateVO.java
+4
-1
DisableVO.java
...main/java/com/hungraim/ism/pojo/vo/disable/DisableVO.java
+11
-8
PageInfo.java
.../src/main/java/com/hungraim/ltc/pojo/entity/PageInfo.java
+16
-0
ChDisableApply.java
.../com/hungraim/ltc/pojo/entity/disable/ChDisableApply.java
+2
-1
ChDisableApplyTest.java
.../hungraim/ltc/pojo/entity/disable/ChDisableApplyTest.java
+601
-0
ChDisableEvaluate.java
...m/hungraim/ltc/pojo/entity/disable/ChDisableEvaluate.java
+0
-0
ChSrvOrgan.java
...java/com/hungraim/ltc/pojo/entity/disable/ChSrvOrgan.java
+6
-1
bootstrap.yml
gateway-service/src/main/resources/bootstrap.yml
+1
-1
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+190
-2
RemoveBedController.java
...ngraim/ltc/governance/controller/RemoveBedController.java
+2
-0
ApplyMapper.java
...ain/java/com/hungraim/ltc/governance/dao/ApplyMapper.java
+12
-0
BuildBedMapper.java
.../java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
+7
-0
CrvMapper.java
.../main/java/com/hungraim/ltc/governance/dao/CrvMapper.java
+15
-0
DisableEvaluateMapper.java
...om/hungraim/ltc/governance/dao/DisableEvaluateMapper.java
+33
-0
ApplyService.java
...ava/com/hungraim/ltc/governance/service/ApplyService.java
+19
-0
CrvService.java
.../java/com/hungraim/ltc/governance/service/CrvService.java
+16
-0
DisableEvaluateService.java
...ngraim/ltc/governance/service/DisableEvaluateService.java
+41
-0
IBuildBedService.java
...com/hungraim/ltc/governance/service/IBuildBedService.java
+12
-0
ApplyServiceImpl.java
...ungraim/ltc/governance/service/impl/ApplyServiceImpl.java
+29
-0
BuildBedServiceImpl.java
...raim/ltc/governance/service/impl/BuildBedServiceImpl.java
+9
-0
CrvServiceImpl.java
.../hungraim/ltc/governance/service/impl/CrvServiceImpl.java
+33
-0
DisableEvaluateServiceImpl.java
...c/governance/service/impl/DisableEvaluateServiceImpl.java
+43
-0
bootstrap.yml
governance/src/main/resources/bootstrap.yml
+1
-1
ChDisableEvaluateMapper.xml
...ungraim/ltc/governance/mapper/ChDisableEvaluateMapper.xml
+94
-0
UserController.java
...va/com/hungraim/ltc/system/controller/UserController.java
+1
-8
bootstrap.yml
system/system-admin-service/src/main/resources/bootstrap.yml
+1
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ism/controller/DisableController.java
View file @
21e1d1af
...
...
@@ -211,4 +211,5 @@ public class DisableController {
return
Result
.
success
();
}
}
apply/apply-service/src/main/java/com/hungraim/ism/dao/SrvOrganMapper.java
View file @
21e1d1af
...
...
@@ -3,6 +3,7 @@ package com.hungraim.ism.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
/**
...
...
@@ -13,4 +14,5 @@ import org.springframework.stereotype.Repository;
@Mapper
@Repository
public
interface
SrvOrganMapper
extends
BaseMapper
<
ChSrvOrgan
>
{
}
apply/apply-service/src/main/java/com/hungraim/ism/service/DisableService.java
View file @
21e1d1af
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.disable.*
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
...
...
apply/apply-service/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -10,7 +10,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
@@ -32,3 +32,4 @@ mybatis-plus:
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations
:
classpath*:mapper/*Mapper.xml
apply/apply-service/src/main/resources/mapper/ChDisableApplyMapper.xml
View file @
21e1d1af
...
...
@@ -116,6 +116,7 @@
from CH_DISABLE_APPLY a
LEFT JOIN CH_SRV_ORGAN o ON a.SRV_ORGAN_ID = o.SRV_ORGAN_ID
where a.APPLY_ID = #{applyId}
order by APPLY_ID desc
</select>
<select
id=
"listExamineRecordByApplyId"
resultType=
"com.hungraim.ism.pojo.vo.disable.ExamineRecord"
>
...
...
assessment/assessment-service/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -10,7 +10,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
auth-service/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -10,7 +10,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
common/common-core/src/main/java/com/hungraim/ism/pojo/vo/disable/DisableEvaluateInfoVO.java
View file @
21e1d1af
package
com
.
hungraim
.
ism
.
pojo
.
vo
.
disable
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 失能审核信息详情VO
*/
@Data
public
class
DisableEvaluateInfoVO
{
//***失能人员个人信息
//机构
...
...
common/common-core/src/main/java/com/hungraim/ism/pojo/vo/disable/DisableEvaluateVO.java
View file @
21e1d1af
package
com
.
hungraim
.
ism
.
pojo
.
vo
.
disable
;
import
com.hungraim.ltc.pojo.entity.PageInfo
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 失能评定列表VO
*/
public
class
DisableEvaluateVO
{
public
class
DisableEvaluateVO
extends
PageInfo
implements
Serializable
{
//id
private
String
evaluateId
;
//适用机构
...
...
common/common-core/src/main/java/com/hungraim/ism/pojo/vo/disable/DisableVO.java
View file @
21e1d1af
package
com
.
hungraim
.
ism
.
pojo
.
vo
.
disable
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 失能人员信息列表VO
*/
@Data
public
class
DisableVO
{
@TableName
(
""
)
public
class
DisableVO
implements
Serializable
{
//id
private
String
applyId
;
//适用机构
private
String
organName
;
//机构代码
private
String
organId
;
private
String
organ
i
Id
;
//所在省市
private
String
provincial
;
private
String
city
;
...
...
@@ -27,27 +30,27 @@ public class DisableVO {
//待遇类型
private
String
treatmentTyte
;
//联系人姓名
private
String
oper
N
ame
;
private
String
oper
n
ame
;
//年龄
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
birthday
;
//性别
private
String
gender
;
//失能人员身份证号码
private
String
oper
C
ertiCode
;
private
String
oper
c
ertiCode
;
//失能人员手机号
private
String
tel
;
//失能人员固话
private
String
fixed
T
el
;
private
String
fixed
t
el
;
//申请服务方式
private
String
srv
M
odeName
;
private
String
srv
m
odeName
;
//诊断疾病
private
String
disease
;
//申请时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
eff
T
ime
;
private
Date
eff
t
ime
;
//申请来源 网厅:0,核心:1,手机端:2,待遇申请:3
private
String
data
F
rom
;
private
String
data
f
rom
;
//审核状态
private
String
applyStatus
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/PageInfo.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
pojo
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.Data
;
import
lombok.experimental.FieldDefaults
;
import
java.io.Serializable
;
@Data
public
class
PageInfo
implements
Serializable
{
@TableField
(
exist
=
false
)
private
int
current
;
@TableField
(
exist
=
false
)
private
int
limit
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChDisableApply.java
View file @
21e1d1af
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import
com.baomidou.mybatisplus.annotation.KeySequence
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.hungraim.ltc.pojo.entity.PageInfo
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
...
...
@@ -17,7 +18,7 @@ import java.util.Date;
@Data
@TableName
(
"CH_DISABLE_APPLY"
)
@KeySequence
(
value
=
"SEQ_CH_DISABLE_APPLY"
)
public
class
ChDisableApply
implements
Serializable
{
public
class
ChDisableApply
extends
PageInfo
implements
Serializable
{
/**
* 失能申请id
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChDisableApplyTest.java
0 → 100644
View file @
21e1d1af
This diff is collapsed.
Click to expand it.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChDisableEvaluate.java
0 → 100644
View file @
21e1d1af
This diff is collapsed.
Click to expand it.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChSrvOrgan.java
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
disable
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.hungraim.ltc.pojo.entity.PageInfo
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 护理机构表
*/
@Data
@TableName
(
"CH_SRV_ORGAN"
)
public
class
ChSrvOrgan
{
public
class
ChSrvOrgan
extends
PageInfo
implements
Serializable
{
@TableId
(
"srv_organ_id"
)
private
Integer
srvOrganId
;
private
String
acptRoadDetail
;
private
String
acptLongitude
;
...
...
gateway-service/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -9,7 +9,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
import
com.hungraim.ltc.governance.service.IBuildBedService
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ltc.governance.service.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed
;
import
com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq
;
import
com.hungraim.ltc.util.Result
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author jiaguokai
...
...
@@ -18,6 +30,15 @@ import javax.annotation.Resource;
public
class
BuildBedController
{
@Resource
private
IBuildBedService
buildBedService
;
@Resource
private
ApplyService
applyService
;
@Resource
private
CrvService
crvService
;
@Resource
private
DisableEvaluateService
disableEvaluateService
;
@PostMapping
(
"/searchOrgBed"
)
public
Result
searchOrgBed
(
@RequestBody
BuildBedSearchReq
req
)
{
...
...
@@ -25,8 +46,175 @@ public class BuildBedController {
}
@PostMapping
(
"/addBuild"
)
public
Result
buildBed
(
ChSrvBuildBed
buildBed
)
{
public
Result
<
Boolean
>
buildBed
(
ChSrvBuildBed
buildBed
)
{
boolean
b
=
buildBedService
.
save
(
buildBed
);
return
Result
.
success
(
b
);
}
/**
* 功能描述: 服务分配信息检索条件查询
*/
@GetMapping
(
"/pageFuwuCondition"
)
public
Result
pageFuwuCondition
(
HttpServletRequest
request
,
@RequestBody
(
required
=
false
)
ChDisableApply
disableApply
)
{
// 创建一个page对象
Page
<
ChDisableApply
>
disableApplyPage
=
new
Page
<
ChDisableApply
>(
disableApply
.
getCurrent
(),
disableApply
.
getLimit
());
// 构建条件
QueryWrapper
<
ChDisableApply
>
queryWrapper
=
new
QueryWrapper
<>();
// 多条件组合查询
// 机构id
String
organid
=
disableApply
.
getOrganId
();
// 失能人员姓名
String
name
=
disableApply
.
getRealName
();
// 失能人员手机号码
String
tel
=
disableApply
.
getTel
();
// 省
String
provincial
=
disableApply
.
getDistrictProvincial
();
// 市
String
city
=
disableApply
.
getDistrictCity
();
// 县
String
area
=
disableApply
.
getDistrictArea
();
// 失能人员身份证号码
String
certiCode
=
disableApply
.
getCertiCode
();
// 意向护理机构
Long
srvOrganId
=
disableApply
.
getSrvOrganId
();
// 服务方式
Long
srvModeId
=
disableApply
.
getSrvModeId
();
// 状态
Short
applyStatus
=
disableApply
.
getApplyStatus
();
if
(!
StrUtil
.
isEmpty
(
organid
))
{
queryWrapper
.
like
(
"organ_id"
,
organid
);
}
if
(!
StrUtil
.
isEmpty
(
name
))
{
queryWrapper
.
like
(
"real_name"
,
name
);
}
if
(!
StrUtil
.
isEmpty
(
tel
))
{
queryWrapper
.
like
(
"tel"
,
tel
);
}
if
(!
StrUtil
.
isEmpty
(
city
))
{
queryWrapper
.
like
(
"district_City"
,
city
);
}
if
(!
StrUtil
.
isEmpty
(
provincial
))
{
queryWrapper
.
like
(
"district_Provincial"
,
provincial
);
}
if
(!
StrUtil
.
isEmpty
(
area
))
{
queryWrapper
.
like
(
"district_Area"
,
area
);
}
if
(!
StrUtil
.
isEmpty
(
certiCode
))
{
queryWrapper
.
like
(
"certi_Code"
,
certiCode
);
}
if
(
srvOrganId
!=
null
)
{
queryWrapper
.
like
(
"srv_Organ_Id"
,
srvOrganId
);
}
if
(
srvModeId
!=
null
)
{
queryWrapper
.
like
(
"srv_Mode_Id"
,
srvModeId
);
}
if
(
applyStatus
!=
null
)
{
queryWrapper
.
like
(
"apply_Status"
,
applyStatus
);
}
// 调用方法实现分页查询
Page
<
ChDisableApply
>
page
=
applyService
.
seletPage
(
disableApplyPage
,
queryWrapper
);
//buildBedService.
// 总记录数
long
total
=
disableApplyPage
.
getTotal
();
List
<
ChDisableApply
>
records
=
disableApplyPage
.
getRecords
();
Map
map
=
new
HashMap
<>();
map
.
put
(
"total"
,
total
);
map
.
put
(
"recors"
,
records
);
return
Result
.
success
(
map
);
}
/**
* 根据id查询失能人员的评定信息
*/
@GetMapping
(
"/queryEvaluateById"
)
public
Result
queryEvaluateById
(
@ModelAttribute
ChDisableApply
chDisableApply
){
String
organId
=
chDisableApply
.
getOrganId
();
Long
srvOrganId
=
chDisableApply
.
getSrvOrganId
();
String
realName
=
chDisableApply
.
getRealName
();
String
certiCode
=
chDisableApply
.
getCertiCode
();
IPage
<
DisableEvaluateVO
>
disableEvaluateVOIPage
=
disableEvaluateService
.
disableEvaluateList
(
organId
,
srvOrganId
,
realName
,
certiCode
,
chDisableApply
.
getCurrent
(),
chDisableApply
.
getLimit
());
ChDisableApply
page
=
applyService
.
selectById
(
chDisableApply
.
getApplyId
());
// 查询是能人员最新评定信息
Map
map
=
new
HashMap
<>();
map
.
put
(
"disableEvaluate"
,
disableEvaluateVOIPage
.
getRecords
());
map
.
put
(
"chDisableApply"
,
page
);
return
Result
.
success
(
map
);
}
/**
*护理机构及服务方式檢索
*/
@GetMapping
(
"/PageCrv"
)
public
Result
PageCrv
(
HttpServletRequest
request
,
@RequestBody
(
required
=
false
)
ChSrvOrgan
chSrvOrgan
){
// 创建一个page对象
Page
<
ChSrvOrgan
>
chSrvOrganPage
=
new
Page
<
ChSrvOrgan
>(
chSrvOrgan
.
getCurrent
(),
chSrvOrgan
.
getLimit
());
// 构建条件
QueryWrapper
<
ChSrvOrgan
>
queryWrapper
=
new
QueryWrapper
<>();
// 多条件组合查询
// 机构id
String
srvid
=
chSrvOrgan
.
getOrganId
();
// 机构名称
String
srvOrganName
=
chSrvOrgan
.
getSrvOrganName
();
// 社会信用代码
String
code
=
chSrvOrgan
.
getUnifiedSocialCreditCode
();
if
(!
StrUtil
.
isEmpty
(
srvid
))
{
queryWrapper
.
like
(
"organ_id"
,
srvid
);
}
if
(!
StrUtil
.
isEmpty
(
srvOrganName
))
{
queryWrapper
.
like
(
"srv_Organ_Name"
,
srvOrganName
);
}
if
(!
StrUtil
.
isEmpty
(
code
))
{
queryWrapper
.
like
(
"unified_social_credit_code"
,
code
);
}
// 调用方法实现分页查询
Page
<
ChSrvOrgan
>
page
=
crvService
.
seletPage
(
chSrvOrganPage
,
queryWrapper
);
//buildBedService.
// 总记录数
long
total
=
chSrvOrganPage
.
getTotal
();
List
<
ChSrvOrgan
>
records
=
chSrvOrganPage
.
getRecords
();
Map
map
=
new
HashMap
<>();
map
.
put
(
"total"
,
total
);
map
.
put
(
"recors"
,
records
);
return
Result
.
success
(
map
);
}
/**
*提交分配机构
*/
@PostMapping
(
"/submit"
)
public
Result
submit
(
@RequestBody
(
required
=
false
)
ChDisableApply
chDisableApply
){
// 判斷參數是否存在
if
(
chDisableApply
.
getApplyId
()==
null
){
return
Result
.
failed
(
"机构id無效"
);
}
// 查出失能人員相關信息
ChDisableApply
apply
=
applyService
.
selectById
(
chDisableApply
.
getApplyId
());
ChSrvOrgan
chSrvOrgan
=
new
ChSrvOrgan
();
apply
.
setOrganId
(
chDisableApply
.
getOrganId
());
apply
.
setDistrictProvincial
(
chDisableApply
.
getDistrictProvincial
());
apply
.
setDistrictCity
(
chDisableApply
.
getDistrictCity
());
apply
.
setDistrictArea
(
chDisableApply
.
getDistrictArea
());
apply
.
setSrvModeId
(
chDisableApply
.
getSrvModeId
());
// apply.setSrvOrganName(chDisableApply.getSrvOrganName());
// apply.setOrganTypeId(chSrvOrgan.getOrganTypeId());
// apply.setUnifiedSocialCreditCode(chSrvOrgan.getUnifiedSocialCreditCode());
// apply.setSrvType(chSrvOrgan.getSrvType());
apply
.
setEndTime
(
chDisableApply
.
getEndTime
());
apply
.
setAcptRoadDetail
(
chDisableApply
.
getAcptRoadDetail
());
// apply.setAcptRoadType(chSrvOrgan.getAcptRoadType());
// crvService.updateById(apply);
applyService
.
updateById
(
apply
);
return
Result
.
success
(
apply
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/controller/RemoveBedController.java
View file @
21e1d1af
...
...
@@ -32,4 +32,6 @@ public class RemoveBedController {
return
Result
.
success
(
removeBedService
.
removeOne
(
removeBed
));
}
}
governance/src/main/java/com/hungraim/ltc/governance/dao/ApplyMapper.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ApplyMapper
extends
BaseMapper
<
ChDisableApply
>
{
}
governance/src/main/java/com/hungraim/ltc/governance/dao/BuildBedMapper.java
View file @
21e1d1af
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.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed
;
import
com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq
;
import
com.hungraim.ltc.pojo.vo.governance.BuildBedSearchRsp
;
...
...
@@ -18,4 +20,9 @@ import org.springframework.stereotype.Repository;
public
interface
BuildBedMapper
extends
BaseMapper
<
ChSrvBuildBed
>
{
Page
<
BuildBedSearchRsp
>
searchOrgBed
(
Page
<
BuildBedSearchRsp
>
page
,
@Param
(
"req"
)
BuildBedSearchReq
req
);
IPage
<
DisableVO
>
disableList
(
String
organId
,
String
organname
,
String
tel
,
String
srvmodename
,
String
area
,
String
city
,
String
certicode
,
String
applystatus
,
int
pageNum
,
int
pageSize
);
}
governance/src/main/java/com/hungraim/ltc/governance/dao/CrvMapper.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableEvaluate
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
@Mapper
public
interface
CrvMapper
extends
BaseMapper
<
ChSrvOrgan
>
{
}
governance/src/main/java/com/hungraim/ltc/governance/dao/DisableEvaluateMapper.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableEvaluate
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
/**
* 失能人员申请历史Mapper
*
* @author czz
*/
@Mapper
@Repository
public
interface
DisableEvaluateMapper
extends
BaseMapper
<
ChDisableEvaluate
>
{
/**
* 查询失能评定列表
*
* @param organId 适用机构代码
* @param srvOrganId 护理机构
* @param realName 失能人员姓名
* @param certiCode 失能人员身份证号码
*/
Page
<
DisableEvaluateVO
>
disableEvaluateList
(
Page
<
DisableVO
>
page
,
String
organId
,
Long
srvOrganId
,
String
realName
,
String
certiCode
);
DisableEvaluateInfoVO
selectDisableEvaluateInfoByEvaluateId
(
String
evaluateId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/ApplyService.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
public
interface
ApplyService
extends
IService
<
ChDisableApply
>
{
Page
<
ChDisableApply
>
seletPage
(
Page
<
ChDisableApply
>
disableApplyPage
,
QueryWrapper
<
ChDisableApply
>
queryWrapper
);
ChDisableApply
selectById
(
Long
applyId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/CrvService.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
public
interface
CrvService
extends
IService
<
ChSrvOrgan
>
{
Page
<
ChSrvOrgan
>
seletPage
(
Page
<
ChSrvOrgan
>
chSrvOrganPage
,
QueryWrapper
<
ChSrvOrgan
>
queryWrapper
);
ChSrvOrgan
selectById
(
long
applyId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/DisableEvaluateService.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableEvaluate
;
import
org.springframework.stereotype.Service
;
/**
* 失能申请Service
*
* @author czz
*/
@Service
public
interface
DisableEvaluateService
{
/**
* 失能评定列表
*
* @param organId 适用机构代码
* @param srvOrganId 护理机构
* @param realName 失能人员姓名
* @param certiCode 失能人员身份证号码
* @param pageNum 当前页
* @param pageSize 每页几条数据
* @return
*/
IPage
<
DisableEvaluateVO
>
disableEvaluateList
(
String
organId
,
Long
srvOrganId
,
String
realName
,
String
certiCode
,
int
pageNum
,
int
pageSize
);
/**
* 失能评定详情
*
* @param evaluateId 评定id
* @return 失能评定详情
*/
DisableEvaluateInfoVO
disableEvaluateInfo
(
String
evaluateId
);
void
addEvaluate
(
ChDisableEvaluate
disableEvaluate
);
void
disableEvaluate
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/IBuildBedService.java
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.governance.dao.BuildBedMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChDepositAcct
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed
;
import
com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
* @author jiaguokai
*/
public
interface
IBuildBedService
extends
IService
<
ChSrvBuildBed
>
{
Result
searchOrgBed
(
BuildBedSearchReq
req
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/ApplyServiceImpl.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ltc.governance.dao.ApplyMapper
;
import
com.hungraim.ltc.governance.service.ApplyService
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
ApplyServiceImpl
extends
ServiceImpl
<
ApplyMapper
,
ChDisableApply
>
implements
ApplyService
{
@Resource
private
ApplyMapper
applyMapper
;
@Override
public
Page
<
ChDisableApply
>
seletPage
(
Page
<
ChDisableApply
>
disableApplyPage
,
QueryWrapper
<
ChDisableApply
>
queryWrapper
)
{
return
applyMapper
.
selectPage
(
disableApplyPage
,
queryWrapper
);
}
@Override
public
ChDisableApply
selectById
(
Long
applyId
)
{
return
applyMapper
.
selectById
(
applyId
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/BuildBedServiceImpl.java
View file @
21e1d1af
...
...
@@ -2,8 +2,11 @@ package com.hungraim.ltc.governance.service.impl;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.governance.dao.BuildBedMapper
;
import
com.hungraim.ltc.governance.service.IBuildBedService
;
import
com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed
;
...
...
@@ -15,6 +18,10 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author jiaguokai
...
...
@@ -46,4 +53,6 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
Page
page
=
buildBedMapper
.
searchOrgBed
(
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
()),
req
);
return
Result
.
success
(
page
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/CrvServiceImpl.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ltc.governance.dao.CrvMapper
;
import
com.hungraim.ltc.governance.service.CrvService
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
CrvServiceImpl
extends
ServiceImpl
<
CrvMapper
,
ChSrvOrgan
>
implements
CrvService
{
@Resource
private
CrvMapper
crvMapper
;
@Override
public
Page
<
ChSrvOrgan
>
seletPage
(
Page
<
ChSrvOrgan
>
chSrvOrganPage
,
QueryWrapper
<
ChSrvOrgan
>
queryWrapper
)
{
return
crvMapper
.
selectPage
(
chSrvOrganPage
,
queryWrapper
);
}
@Override
public
ChSrvOrgan
selectById
(
long
applyId
)
{
return
crvMapper
.
selectById
(
applyId
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/DisableEvaluateServiceImpl.java
0 → 100644
View file @
21e1d1af
package
com
.
hungraim
.
ltc
.
governance
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ltc.governance.dao.DisableEvaluateMapper
;
import
com.hungraim.ltc.governance.service.DisableEvaluateService
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableEvaluate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
DisableEvaluateServiceImpl
implements
DisableEvaluateService
{
@Autowired
private
DisableEvaluateMapper
disableEvaluateList
;
@Override
public
IPage
<
DisableEvaluateVO
>
disableEvaluateList
(
String
organId
,
Long
srvOrganId
,
String
realName
,
String
certiCode
,
int
pageNum
,
int
pageSize
)
{
return
disableEvaluateList
.
disableEvaluateList
(
new
Page
(
pageNum
,
pageSize
),
organId
,
srvOrganId
,
realName
,
certiCode
);
}
@Override
public
DisableEvaluateInfoVO
disableEvaluateInfo
(
String
evaluateId
)
{
return
disableEvaluateList
.
selectDisableEvaluateInfoByEvaluateId
(
evaluateId
);
}
@Override
public
void
addEvaluate
(
ChDisableEvaluate
disableEvaluate
)
{
disableEvaluateList
.
insert
(
disableEvaluate
);
}
@Override
public
void
disableEvaluate
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
/*ChDisableApply chDisableApply = disableEvaluateList.selectById(applyId);
chDisableApply.setCheckName(checkName);
chDisableApply.setApplyStatus(applyStatus);
chDisableApply.setCheckRemark(checkRemark);*/
}
}
\ No newline at end of file
governance/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -9,7 +9,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChDisableEvaluateMapper.xml
0 → 100644
View file @
21e1d1af
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.governance.dao.DisableEvaluateMapper"
>
<select
id=
"disableEvaluateList"
resultType=
"com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO"
>
select e.evaluate_id evaluateId,
o.ORGAN_NAME organName,
e.organ_id organId,
e.PROVINCE_CODE provincial,
e.CITY_CODE city,
e.AREA_CODE area,
e.REAL_NAME realName,
e.CERTI_CODE certiCode,
e.DISEASE_DESC diseaseDesc,
e.TEL tel,
e.SRV_ORGEN_ID srvOrgenId,
e.MODE_ID modeId,
e.EVALUATE_TIME evaluateTime
from CH_DISABLE_EVALUATE e,CH_FND_ORGAN o
where e.organ_id = o.ORGAN_ID
<if
test=
"organId != null"
>
and e.organ_Id = #{organId}
</if>
<if
test=
"srvOrganId != null"
>
and e.srv_Organ_Id = #{srvOrganId}
</if>
<if
test=
"realName != null"
>
and e.real_Name like '%'#{realName}'%'
</if>
<if
test=
"certiCode != null"
>
and e.certi_Code = #{certiCode}
</if>
</select>
<select
id=
"selectDisableEvaluateInfoByEvaluateId"
resultType=
"com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO"
>
select a.organ_id organId,
(select o1.organ_name from CH_FND_ORGAN o1 where a.organ_id = o1.organ_id) organName,
a.DISTRICT_PROVINCIAL provincial,
a.DISTRICT_CITY city,
a.DISTRICT_AREA area,
a.REAL_NAME name,
a.CERTI_CODE certiCode,
a.BIRTHDAY birthday,
a.GENDER gender,
a.TEL tel,
a.REGIST regist,
a.FIXED_TEL fixedTel,
a.TREATMENT_TYPE treatmentType,
a.ACPT_PROVINCIAL acptProvincial,
a.ACPT_CITY acptCity,
a.ACPT_AREA acptArea,
a.ACPT_STREET acptStreet,
a.ACPT_ADDRESS acptAddress,
a.ACPT_SRV_PROVINCIAL acptSrvProvincial,
a.ACPT_SRV_CITY acptSrvCity,
a.ACPT_SRV_AREA acptSrvArea,
a.ACPT_SRV_STREET acptSrvStreet,
a.ACPT_SRV_ROAD_DETAIL acptSrvRoadDetail,
a.ADRESS_DISTRICT_PROVINCIAL adressDistrictProvincial,
a.ADRESS_DISTRICT_CITY adressDistrictCity,
a.ADRESS_DISTRICT_CODE adressDistrictCode,
a.ADDRESS_ROAD_DETAIL addressRoadDetail,
a.ADDRESS_NUMBER_DETAIL addressNumberDetail,
a.DISEASE disease,
a.APPLY_METHOD applyMethod,
a.DISEASE_DESC diseaseDesc,
a.MEDICAL_CARD medicalCard,
a.MEDICAL_TYPE medicalType,
a.SRV_ORGAN_ID srvOrganId,
o.PERMIT_ID permitId,
a.OPER_NAME operName,
a.OPER_CERTI_CODE operCertiCode,
a.OPER_TEL operTel,
a.OPER_RELATION operRelation,
a.OPER_FIXED_TEL operFixedTel,
a.OPER_DISTRICT_PROVINCE operDistrictProvince,
a.OPER_DISTRICT_CITY operDistrictCity,
a.OPER_DISTRICT_CODE operDistrictCode,
a.OPER_STREET operStreet,
a.OPER_ADDRESS operAddress,
a.CHECK_NAME checkName,
a.APPLY_STATUS applyStatus,
a.CHECK_REMARK checkRemark
from ch_disable_evaluate a,
CH_SRV_ORGAN o
where a.EVALUATE_ID = #{evaluateId}
and a.SRV_ORGAN_ID = o.organ_code
</select>
</mapper>
\ No newline at end of file
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/UserController.java
View file @
21e1d1af
...
...
@@ -197,7 +197,7 @@ public class UserController {
/**
*
新增
用户
*
修改
用户
*/
@PostMapping
(
"/updateUser"
)
public
Result
updateUser
(
ReqUserInfo
reqUserInfo
)
{
if
(
reqUserInfo
.
getId
()
==
null
||
reqUserInfo
.
getId
()
==
0
)
{
...
...
@@ -216,10 +216,6 @@ public class UserController {
systemUser
.
setAccount
(
reqUserInfo
.
getAccount
());
flag
=
true
;
}
// if (!reqUserInfo.getAvatar().equals(systemUser.getAvatar())) {
// systemUser.setAvatar(reqUserInfo.getAvatar());
// flag = true;
// }
if
(!
reqUserInfo
.
getGender
().
equals
(
systemUser
.
getGender
()))
{
systemUser
.
setGender
(
reqUserInfo
.
getGender
());
flag
=
true
;
...
...
@@ -228,12 +224,10 @@ public class UserController {
systemUser
.
setUserId
(
reqUserInfo
.
getId
());
flag
=
true
;
}
if
(
flag
)
{
systemUser
.
setUpdatedTime
(
new
Date
());
userInfoService
.
save
(
systemUser
);
}
//查询该角色下所有的资源数据
List
<
SystemUserRole
>
roleResources
=
userRoleService
.
list
(
new
LambdaQueryWrapper
<
SystemUserRole
>().
eq
(
SystemUserRole:
:
getUserId
,
reqUserInfo
.
getId
()));
...
...
@@ -255,7 +249,6 @@ public class UserController {
return
systemRoleResource
;
}).
collect
(
Collectors
.
toList
());
userRoleService
.
saveBatch
(
newRoleResources
);
List
<
Long
>
deleteRoleResources
=
roleResources
.
stream
()
.
map
(
SystemUserRole:
:
getRoleId
).
filter
(
id
->
!
reqUserInfo
.
getRoleIds
().
contains
(
id
))
.
collect
(
Collectors
.
toList
());
...
...
system/system-admin-service/src/main/resources/bootstrap.yml
View file @
21e1d1af
...
...
@@ -10,7 +10,7 @@ spring:
nacos
:
discovery
:
server-addr
:
qw.hungraim.com:31158
namespace
:
353e9334-5b6c-4d44-9f5c-daf26e414898
namespace
:
879ae966-eaf8-43fe-ae6f-34ee7aa186ba
config
:
namespace
:
87d6f6f1-6583-46ea-ad02-7e8125f03c90
server-addr
:
qw.hungraim.com:31158
...
...
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