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
10f135d6
Commit
10f135d6
authored
Mar 01, 2022
by
liuxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
3d807dbc
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
419 additions
and
6 deletions
+419
-6
ChDisableRiskLevelMapper.java
...n/java/com/hungraim/ltc/dao/ChDisableRiskLevelMapper.java
+18
-0
ChSrvempRiskLevelMapper.java
...in/java/com/hungraim/ltc/dao/ChSrvempRiskLevelMapper.java
+18
-0
ChSrvorganRiskLevelMapper.java
.../java/com/hungraim/ltc/dao/ChSrvorganRiskLevelMapper.java
+18
-0
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+14
-2
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+15
-0
SrvOrganServiceImpl.java
...va/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
+12
-4
ChDisableRiskLevelMapper.xml
...ce/src/main/resources/mapper/ChDisableRiskLevelMapper.xml
+5
-0
ChSrvempRiskLevelMapper.xml
...ice/src/main/resources/mapper/ChSrvempRiskLevelMapper.xml
+5
-0
ChSrvorganRiskLevelMapper.xml
...e/src/main/resources/mapper/ChSrvorganRiskLevelMapper.xml
+5
-0
ChDisableRiskLevel.java
...ungraim/ltc/pojo/entity/riskLevel/ChDisableRiskLevel.java
+101
-0
ChSrvempRiskLevel.java
...hungraim/ltc/pojo/entity/riskLevel/ChSrvempRiskLevel.java
+107
-0
ChSrvorganRiskLevel.java
...ngraim/ltc/pojo/entity/riskLevel/ChSrvorganRiskLevel.java
+101
-0
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChDisableRiskLevelMapper.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChDisableRiskLevel
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* <p>
* 失能人员风险等级表 Mapper 接口
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Mapper
public
interface
ChDisableRiskLevelMapper
extends
BaseMapper
<
ChDisableRiskLevel
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvempRiskLevelMapper.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvempRiskLevel
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* <p>
* 护理人员风险等级表 Mapper 接口
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Mapper
public
interface
ChSrvempRiskLevelMapper
extends
BaseMapper
<
ChSrvempRiskLevel
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvorganRiskLevelMapper.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvorganRiskLevel
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* <p>
* 护理机构风险等级表 Mapper 接口
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Mapper
public
interface
ChSrvorganRiskLevelMapper
extends
BaseMapper
<
ChSrvorganRiskLevel
>
{
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
10f135d6
...
...
@@ -12,6 +12,8 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.assessment.ChDisableInfoHis
;
import
com.hungraim.ltc.pojo.entity.disable.*
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChDisableRiskLevel
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvorganRiskLevel
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
...
...
@@ -24,6 +26,7 @@ import lombok.AllArgsConstructor;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -50,6 +53,9 @@ public class DisableServiceImpl implements DisableService {
private
final
DisableInfoHisMapper
disableInfoHisMapper
;
private
final
OrganService
organService
;
@Autowired
private
ChDisableRiskLevelMapper
chDisableRiskLevelMapper
;
/**
* 获取机构ids
*
...
...
@@ -250,6 +256,13 @@ public class DisableServiceImpl implements DisableService {
chAprTask
.
setAprType
(
0
);
//申请:0;复评:1
chAprTask
.
setTaskStatus
(
0
);
// 任务状态 0 未分配
aprTaskMapper
.
insert
(
chAprTask
);
ChDisableRiskLevel
chDisableRiskLevel
=
new
ChDisableRiskLevel
();
chDisableRiskLevel
.
setRiskLevel
(
0L
);
chDisableRiskLevel
.
setDisabInfoId
(
Long
.
valueOf
(
chDisableInfo
.
getDisabInfoId
()));
chDisableRiskLevel
.
setStatus
(
0
);
chDisableRiskLevel
.
setFcd
(
new
Date
());
chDisableRiskLevelMapper
.
insert
(
chDisableRiskLevel
);
}
}
...
...
@@ -492,4 +505,4 @@ public class DisableServiceImpl implements DisableService {
return
disableUpdateDetailVO
;
}
}
\ No newline at end of file
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
10f135d6
...
...
@@ -3,11 +3,14 @@ package com.hungraim.ltc.service.impl;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.ChSrvOrganEmpMapper
;
import
com.hungraim.ltc.dao.ChSrvempRiskLevelMapper
;
import
com.hungraim.ltc.dao.SrvEmpTypeMapper
;
import
com.hungraim.ltc.dao.SrvOrganMapper
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpType
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvempRiskLevel
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvorganRiskLevel
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganEmp
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
...
...
@@ -20,6 +23,7 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -41,6 +45,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
private
final
SrvOrganMapper
srvOrganMapper
;
@Autowired
private
ChSrvempRiskLevelMapper
chSrvempRiskLevelMapper
;
@Override
public
Page
<
SrvOrganEmpListVo
>
getSrvOrganEmpListVo
(
Page
<
SrvOrganEmpListVo
>
page
,
Long
organId
,
Boolean
isInvolveChild
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Short
isLock
,
Short
empType
)
{
List
<
Long
>
organIds
=
organService
.
getOrganIds
(
organId
,
isInvolveChild
);
...
...
@@ -91,6 +98,14 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
chSrvOrganEmp
.
setIsLock
((
short
)
0
);
chSrvOrganEmpMapper
.
insert
(
chSrvOrganEmp
);
updateAttachs
(
srvOrganEmpVo
,
chSrvOrganEmp
.
getEmpId
());
ChSrvempRiskLevel
chSrvempRiskLevel
=
new
ChSrvempRiskLevel
();
chSrvempRiskLevel
.
setRiskLevel
(
0L
);
chSrvempRiskLevel
.
setSrvEmpId
(
Long
.
valueOf
(
chSrvOrganEmp
.
getEmpId
()));
chSrvempRiskLevel
.
setStatus
(
0
);
chSrvempRiskLevel
.
setFcd
(
new
Date
());
chSrvempRiskLevelMapper
.
insert
(
chSrvempRiskLevel
);
}
else
{
// 修改
chSrvOrganEmpMapper
.
updateById
(
chSrvOrganEmp
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
View file @
10f135d6
...
...
@@ -3,14 +3,12 @@ package com.hungraim.ltc.service.impl;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.ChCfgSrvOrganTypeMapper
;
import
com.hungraim.ltc.dao.ChFndSrvOrganLevelMapper
;
import
com.hungraim.ltc.dao.SrvModeMapper
;
import
com.hungraim.ltc.dao.SrvOrganMapper
;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgSrvOrganType
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.riskLevel.ChSrvorganRiskLevel
;
import
com.hungraim.ltc.pojo.vo.disable.SrvModeVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
...
...
@@ -23,6 +21,7 @@ import com.hungraim.ltc.util.ResultCode;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -47,6 +46,9 @@ public class SrvOrganServiceImpl implements SrvOrganService {
private
final
AttachFeignService
attachFeignService
;
@Autowired
private
ChSrvorganRiskLevelMapper
chSrvorganRiskLevelMapper
;
@Override
public
Page
<
SrvOrganListVo
>
getSrvOrganList
(
Page
<
SrvOrganListVo
>
page
,
Long
organId
,
Boolean
isInvolveChild
,
String
creditCode
,
String
srvOrganName
)
{
...
...
@@ -112,6 +114,12 @@ public class SrvOrganServiceImpl implements SrvOrganService {
if
(!
StrUtil
.
equals
(
attachs
.
getCode
(),
ResultCode
.
SUCCESS
.
getCode
()))
{
log
.
error
(
"同步修改文件数据失败,失败原因:{}"
,
attachs
.
getMsg
());
}
ChSrvorganRiskLevel
chSrvorganRiskLevel
=
new
ChSrvorganRiskLevel
();
chSrvorganRiskLevel
.
setRiskLevel
(
0L
);
chSrvorganRiskLevel
.
setSrvOrganId
(
Long
.
valueOf
(
chSrvOrgan
.
getSrvOrganId
()));
chSrvorganRiskLevel
.
setStatus
(
0
);
chSrvorganRiskLevel
.
setFcd
(
new
Date
());
chSrvorganRiskLevelMapper
.
insert
(
chSrvorganRiskLevel
);
}
}
...
...
apply/apply-service/src/main/resources/mapper/ChDisableRiskLevelMapper.xml
0 → 100644
View file @
10f135d6
<?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.dao.ChDisableRiskLevelMapper"
>
</mapper>
apply/apply-service/src/main/resources/mapper/ChSrvempRiskLevelMapper.xml
0 → 100644
View file @
10f135d6
<?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.dao.ChSrvempRiskLevelMapper"
>
</mapper>
apply/apply-service/src/main/resources/mapper/ChSrvorganRiskLevelMapper.xml
0 → 100644
View file @
10f135d6
<?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.dao.ChSrvorganRiskLevelMapper"
>
</mapper>
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/riskLevel/ChDisableRiskLevel.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
riskLevel
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
* 失能人员风险等级表
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"CH_DISABLE_RISK_LEVEL"
)
public
class
ChDisableRiskLevel
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@TableId
(
value
=
"DISA_RISK_LEVEL_ID"
,
type
=
IdType
.
AUTO
)
private
Long
disaRiskLevelId
;
/**
* 失能人员ID
*/
@TableField
(
"DISAB_INFO_ID"
)
private
Long
disabInfoId
;
/**
* 失能人员可疑任务数量(近30天)
*/
@TableField
(
"DISAB_SUSP_COU"
)
private
Long
disabSuspCou
;
/**
* 失能人员任务数量(近30天)
*/
@TableField
(
"DISAB_SUM_COU"
)
private
Long
disabSumCou
;
/**
* 风险等级百分比
*/
@TableField
(
"RISK_LEVEL_PERCENT"
)
private
String
riskLevelPercent
;
/**
* 风险等级(0低风险,1中风险,2高风险,3无任务)
*/
@TableField
(
"RISK_LEVEL"
)
private
Long
riskLevel
;
/**
* 状态(0有效,1失效)
*/
@TableField
(
"STATUS"
)
private
Integer
status
;
/**
* 备注
*/
@TableField
(
"REMARK"
)
private
String
remark
;
/**
* 首次操作时间
*/
@TableField
(
"FCD"
)
private
Date
fcd
;
/**
* 首次操作人
*/
@TableField
(
"FCU"
)
private
Long
fcu
;
/**
* 末次操作时间
*/
@TableField
(
"LCD"
)
private
Date
lcd
;
/**
* 末次操作人
*/
@TableField
(
"LCU"
)
private
Long
lcu
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/riskLevel/ChSrvempRiskLevel.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
riskLevel
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
* 护理人员风险等级表
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"CH_SRVEMP_RISK_LEVEL"
)
public
class
ChSrvempRiskLevel
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@TableId
(
value
=
"SRVEMP_RISK_LEVEL_ID"
,
type
=
IdType
.
AUTO
)
private
Long
srvempRiskLevelId
;
/**
* 护理人员ID
*/
@TableField
(
"SRV_EMP_ID"
)
private
Long
srvEmpId
;
/**
* 护理人员可疑任务数量(近30天)
*/
@TableField
(
"SRV_SUSP_COU"
)
private
Long
srvSuspCou
;
/**
* 护理人员任务数量(近30天)
*/
@TableField
(
"SRV_SUM_COU"
)
private
Long
srvSumCou
;
/**
* 风险等级百分比
*/
@TableField
(
"RISK_LEVEL_PERCENT"
)
private
String
riskLevelPercent
;
/**
* 风险等级(0低风险,1中风险,2高风险,3无任务)
*/
@TableField
(
"RISK_LEVEL"
)
private
Long
riskLevel
;
/**
* 状态(0有效,1失效)
*/
@TableField
(
"STATUS"
)
private
Integer
status
;
/**
* 备注
*/
@TableField
(
"REMARK"
)
private
String
remark
;
/**
* 首次操作时间
*/
@TableField
(
"FCD"
)
private
Date
fcd
;
/**
* 首次操作人
*/
@TableField
(
"FCU"
)
private
Long
fcu
;
/**
* 末次操作时间
*/
@TableField
(
"LCD"
)
private
Date
lcd
;
/**
* 末次操作人
*/
@TableField
(
"LCU"
)
private
Long
lcu
;
/**
* 月度平均护理人数
*/
@TableField
(
"MONTH_DISA_COU"
)
private
Long
monthDisaCou
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/riskLevel/ChSrvorganRiskLevel.java
0 → 100644
View file @
10f135d6
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
riskLevel
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p>
* 护理机构风险等级表
* </p>
*
* @author dzh
* @since 2022-03-01
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"CH_SRVORGAN_RISK_LEVEL"
)
public
class
ChSrvorganRiskLevel
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@TableId
(
value
=
"SRVORGAN_RISK_LEVEL_ID"
,
type
=
IdType
.
AUTO
)
private
Long
srvorganRiskLevelId
;
/**
* 护理机构ID
*/
@TableField
(
"SRV_ORGAN_ID"
)
private
Long
srvOrganId
;
/**
* 护理机构可疑任务数量(近30天)
*/
@TableField
(
"SRVORG_SUSP_COU"
)
private
Long
srvorgSuspCou
;
/**
* 护理机构任务数量(近30天)
*/
@TableField
(
"SRVORG_SUM_COU"
)
private
Long
srvorgSumCou
;
/**
* 风险等级百分比
*/
@TableField
(
"RISK_LEVEL_PERCENT"
)
private
String
riskLevelPercent
;
/**
* 风险等级(0低风险,1中风险,2高风险,3无任务)
*/
@TableField
(
"RISK_LEVEL"
)
private
Long
riskLevel
;
/**
* 状态(0有效,1失效)
*/
@TableField
(
"STATUS"
)
private
Integer
status
;
/**
* 备注
*/
@TableField
(
"REMARK"
)
private
String
remark
;
/**
* 首次操作时间
*/
@TableField
(
"FCD"
)
private
Date
fcd
;
/**
* 首次操作人
*/
@TableField
(
"FCU"
)
private
Long
fcu
;
/**
* 末次操作时间
*/
@TableField
(
"LCD"
)
private
Date
lcd
;
/**
* 末次操作人
*/
@TableField
(
"LCU"
)
private
Long
lcu
;
}
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