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
9227547a
Commit
9227547a
authored
Jun 08, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监管机构人员信息管理
parent
fb48c807
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
632 additions
and
0 deletions
+632
-0
ChSuperviseOrgan.java
...graim/ltc/pojo/entity/serviceManage/ChSuperviseOrgan.java
+152
-0
ChSuperviseOrganEmp.java
...im/ltc/pojo/entity/serviceManage/ChSuperviseOrganEmp.java
+132
-0
SuperviseOrganEmpVO.java
.../hungraim/ltc/pojo/vo/governance/SuperviseOrganEmpVO.java
+54
-0
SuperviseOrganEmpController.java
...tc/governance/controller/SuperviseOrganEmpController.java
+104
-0
SuperviseOrganEmpMapper.java
.../hungraim/ltc/governance/dao/SuperviseOrganEmpMapper.java
+16
-0
SuperviseOrganMapper.java
...com/hungraim/ltc/governance/dao/SuperviseOrganMapper.java
+11
-0
SuperviseOrganEmpService.java
...raim/ltc/governance/service/SuperviseOrganEmpService.java
+24
-0
SuperviseOrganServiceImpl.java
...tc/governance/service/impl/SuperviseOrganServiceImpl.java
+84
-0
SuperviseOrganEmpMapper.xml
...ungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
+55
-0
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/serviceManage/ChSuperviseOrgan.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
serviceManage
;
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
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* CH_SUPERVISE_ORGAN
*/
@Data
@TableName
(
"CH_SUPERVISE_ORGAN"
)
@KeySequence
(
"SEQ_CH_SUPERVISE_ORGAN"
)
public
class
ChSuperviseOrgan
implements
Serializable
{
/**
* 监管机构id
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
Long
spvOrganId
;
/**
* 机构代码
*/
private
String
organId
;
/**
* 监管机构名称
*/
private
String
spvOrganName
;
/**
* 所在省份
*/
private
String
districtProvince
;
/**
* 所在城市
*/
private
String
districtCity
;
/**
* 所在区域
*/
private
String
districtArea
;
/**
* 所在省市区中文名
*/
private
String
pcaName
;
/**
* 统一社会信用代码
*/
private
String
unifiedSocialCreditCode
;
/**
* 机构联系人姓名
*/
private
String
contactName
;
/**
* 机构联系人电话
*/
private
String
contactTel
;
/**
* 银行账户名称
*/
private
String
accName
;
/**
* 银行开户行名称
*/
private
String
bankAccName
;
/**
* 银行账号
*/
private
String
bankNo
;
/**
* 是否失效 有效:0;失效:1
*/
private
Short
isLock
;
/**
* 数据来源 网厅:0,核心:1
*/
private
Short
dataFrom
;
/**
* 网厅创建人
*/
private
Long
webDefineEmp
;
/**
* 网厅终止人
*/
private
Long
webEndEmp
;
/**
* 创建人
*/
private
Long
defineEmp
;
/**
* 创建时间
*/
private
Date
effTime
;
/**
* 终止人
*/
private
Long
endEmp
;
/**
* 终止时间
*/
private
Date
endTime
;
/**
* 首次操作时间
*/
private
Date
fcd
;
/**
* 首次操作人
*/
private
Long
fcu
;
/**
* 末次操作时间
*/
private
Date
lcd
;
/**
* 末次操作人
*/
private
Long
lcu
;
/**
* 联系人邮箱
*/
private
String
contactMail
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/serviceManage/ChSuperviseOrganEmp.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
serviceManage
;
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
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* CH_SUPERVISE_ORGAN_EMP
*/
@Data
@TableName
(
"CH_SUPERVISE_ORGAN_EMP"
)
@KeySequence
(
"SEQ_CH_SUPERVISE_ORGAN_EMP"
)
public
class
ChSuperviseOrganEmp
implements
Serializable
{
/**
* 监管人员id
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
Long
spvEmpId
;
/**
* 监管人员姓名
*/
private
String
spvEmpName
;
/**
* 监管机构id
*/
private
Long
spvOrganId
;
/**
* 证件类型
*/
private
String
certifType
;
/**
* 证件号码
*/
private
String
certifNum
;
/**
* 性别 男:M;女:F;不确定N
*/
private
String
gender
;
/**
* 年龄
*/
private
Short
age
;
/**
* 手机号码
*/
private
String
mobilePhone
;
/**
* 人员类型 监管人员:0;管理人员:1
*/
private
Short
spvEmpType
;
/**
* 是否失效 有效:0;失效:1
*/
private
Short
isLock
;
/**
* 数据来源 网厅:0,核心:1
*/
private
Short
dataFrom
;
/**
* 网厅创建人
*/
private
Long
webDefineEmp
;
/**
* 网厅终止人
*/
private
Long
webEndEmp
;
/**
* 创建人
*/
private
Long
defineEmp
;
/**
* 创建时间
*/
private
Date
effTime
;
/**
* 终止人
*/
private
Long
endEmp
;
/**
* 终止时间
*/
private
Date
endTime
;
/**
* 首次操作时间
*/
private
Date
fcd
;
/**
* 首次操作人
*/
private
Long
fcu
;
/**
* 末次操作时间
*/
private
Date
lcd
;
/**
* 末次操作人
*/
private
Long
lcu
;
/**
* 人员id
*/
private
Long
basicEmpId
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SuperviseOrganEmpVO.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
lombok.Data
;
/**
* 监管机构人员信息列表VO
*/
@Data
public
class
SuperviseOrganEmpVO
{
/**
* 监管人员id
*/
private
String
spvEmpId
;
/**
* 监管机构id
*/
private
String
spvOrganId
;
/**
* 适用机构
*/
private
String
organName
;
/**
* 机构代码
*/
private
String
spvOrganCode
;
/**
* 监管机构名称
*/
private
String
spvOrganName
;
/**
* 姓名
*/
private
String
spvEmpName
;
/**
* 证件类型
*/
private
String
certifType
;
/**
* 监管人员证件号码
*/
private
String
certifNum
;
/**
* 监管人员手机号
*/
private
String
mobilePhone
;
/**
* 人员类型 监管人员:0;管理人员:1
*/
private
String
spvEmpType
;
/**
* 状态 有效:0;失效:1
*/
private
String
isLock
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/SuperviseOrganEmpController.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.governance.service.SuperviseOrganEmpService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganEmpVO
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 监管机构人员信息管理Controller
*
* @author czz
*/
@RestController
@RequestMapping
(
"/api.governance/supervise"
)
@Slf4j
public
class
SuperviseOrganEmpController
{
@Autowired
private
SuperviseOrganEmpService
superviseOrganEmpService
;
/**
* 监管机构人员信息列表
*
* @param pageNum 页码
* @param pageSize 每页展示条数
* @param organIds 适用机构id
* @param organName 监管机构名称
* @param superviseType 监管人员类型 监管人员:0;管理人员:1
* @param superviseName 监管人员姓名
* @param superviseTel 监管人员手机号
* @param status 状态 有效:0;失效:1
*/
@RequestMapping
(
"/superviseOrganEmpList"
)
public
Result
<
Page
<
SuperviseOrganEmpVO
>>
superviseOrganEmpList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
organIds
,
String
organName
,
String
superviseType
,
String
superviseName
,
String
superviseTel
,
String
status
)
{
Page
<
SuperviseOrganEmpVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
superviseOrganEmpService
.
superviseOrganEmpList
(
page
,
organIds
,
organName
,
superviseType
,
superviseName
,
superviseTel
,
status
);
return
Result
.
success
(
page
);
}
/**
* 更改监管机构人员状态
*
* @param empId 监管机构人员id
* @param isLock 状态 有效:0;失效:1
*/
@DeleteMapping
(
"/updateEmpStatus"
)
public
Result
updateEmpStatus
(
String
empId
,
Short
isLock
)
{
if
(
StringUtils
.
isBlank
(
empId
)
||
isLock
==
null
||
(
isLock
!=
1
&&
isLock
!=
0
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
superviseOrganEmpService
.
updateEmpStatus
(
empId
,
isLock
);
return
Result
.
success
();
}
/**
* 新增或编辑监管机构人员
*
* @param empId 监管机构人员id 有就修改,没有就新增
* @param spvOrganId 监管机构id
* @param spvEmpName 监管人员姓名
* @param certifType 证件类型
* @param certifNum 证件号码
* @param gender 性别 男:M;女:F;不确定N
* @param age 年龄
* @param superviseTel 手机号码
* @param status 人员类型 有效:0;失效:1
*/
@DeleteMapping
(
"/insertOrUpdateEmpInfo"
)
public
Result
insertOrUpdateEmpInfo
(
Long
empId
,
Long
spvOrganId
,
String
spvEmpName
,
String
certifType
,
String
certifNum
,
String
gender
,
Short
age
,
String
superviseTel
,
Short
status
)
{
//参数校验
if
(
empId
==
null
&&
spvOrganId
==
null
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
StringUtils
.
isBlank
(
spvEmpName
)
||
StringUtils
.
isBlank
(
certifType
)
||
StringUtils
.
isBlank
(
gender
)
||
StringUtils
.
isBlank
(
superviseTel
)
||
(
status
!=
1
&&
status
!=
0
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
superviseOrganEmpService
.
insertOrUpdateEmpInfo
(
empId
,
spvOrganId
,
spvEmpName
,
certifType
,
certifNum
,
gender
,
age
,
superviseTel
,
status
);
return
Result
.
success
();
}
/**
* 查询监管机构信息
*
* @param organId 适用机构id
*/
@RequestMapping
(
"/superviseOrganEmpList"
)
public
Result
<
List
<
ChSuperviseOrgan
>>
superviseOrganList
(
Long
organId
)
{
List
<
ChSuperviseOrgan
>
result
=
superviseOrganEmpService
.
superviseOrganList
(
organId
);
return
Result
.
success
(
result
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/dao/SuperviseOrganEmpMapper.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrganEmp
;
import
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganEmpVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Repository
public
interface
SuperviseOrganEmpMapper
extends
BaseMapper
<
ChSuperviseOrganEmp
>
{
Page
<
SuperviseOrganEmpVO
>
superviseOrganEmpList
(
Page
<
SuperviseOrganEmpVO
>
page
,
List
<
String
>
organIds
,
String
organName
,
String
superviseType
,
String
superviseName
,
String
superviseTel
,
String
status
);
}
governance/src/main/java/com/hungraim/ltc/governance/dao/SuperviseOrganMapper.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Mapper
@Repository
public
interface
SuperviseOrganMapper
extends
BaseMapper
<
ChSuperviseOrgan
>
{
}
governance/src/main/java/com/hungraim/ltc/governance/service/SuperviseOrganEmpService.java
0 → 100644
View file @
9227547a
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganEmpVO
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 监管机构人员信息管理Service
*
* @author czz
*/
@Service
public
interface
SuperviseOrganEmpService
{
Page
<
SuperviseOrganEmpVO
>
superviseOrganEmpList
(
Page
<
SuperviseOrganEmpVO
>
page
,
String
organIds
,
String
organName
,
String
superviseType
,
String
superviseName
,
String
superviseTel
,
String
status
);
void
updateEmpStatus
(
String
empId
,
Short
isLock
);
void
insertOrUpdateEmpInfo
(
Long
empId
,
Long
spvOrganId
,
String
spvEmpName
,
String
certifType
,
String
certifNum
,
String
gender
,
Short
age
,
String
superviseTel
,
Short
status
);
List
<
ChSuperviseOrgan
>
superviseOrganList
(
Long
organId
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SuperviseOrganServiceImpl.java
0 → 100644
View file @
9227547a
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.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganEmpMapper
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganMapper
;
import
com.hungraim.ltc.governance.service.SuperviseOrganEmpService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrganEmp
;
import
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganEmpVO
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
/**
* 监管机构人员信息管理ServiceImpl
*/
@Service
@Slf4j
@AllArgsConstructor
public
class
SuperviseOrganServiceImpl
implements
SuperviseOrganEmpService
{
private
final
SuperviseOrganEmpMapper
superviseOrganEmpMapper
;
private
final
SuperviseOrganMapper
superviseOrganMapper
;
@Override
public
Page
<
SuperviseOrganEmpVO
>
superviseOrganEmpList
(
Page
<
SuperviseOrganEmpVO
>
page
,
String
organId
,
String
organName
,
String
superviseType
,
String
superviseName
,
String
superviseTel
,
String
status
)
{
List
<
String
>
organIds
=
null
;
if
(
StrUtil
.
isNotBlank
(
organId
))
{
organIds
=
Arrays
.
asList
(
organId
.
split
(
","
));
}
return
superviseOrganEmpMapper
.
superviseOrganEmpList
(
page
,
organIds
,
organName
,
superviseType
,
superviseName
,
superviseTel
,
status
);
}
@Override
public
void
updateEmpStatus
(
String
empId
,
Short
isLock
)
{
ChSuperviseOrganEmp
chSuperviseOrganEmp
=
superviseOrganEmpMapper
.
selectById
(
empId
);
chSuperviseOrganEmp
.
setIsLock
(
isLock
);
superviseOrganEmpMapper
.
updateById
(
chSuperviseOrganEmp
);
}
@Override
public
void
insertOrUpdateEmpInfo
(
Long
empId
,
Long
spvOrganId
,
String
spvEmpName
,
String
certifType
,
String
certifNum
,
String
gender
,
Short
age
,
String
superviseTel
,
Short
status
)
{
if
(
empId
!=
null
)
{
//更新
ChSuperviseOrganEmp
chSuperviseOrganEmp
=
superviseOrganEmpMapper
.
selectById
(
empId
);
chSuperviseOrganEmp
.
setSpvOrganId
(
spvOrganId
);
chSuperviseOrganEmp
.
setSpvEmpName
(
spvEmpName
);
chSuperviseOrganEmp
.
setCertifType
(
certifType
);
chSuperviseOrganEmp
.
setCertifNum
(
certifNum
);
chSuperviseOrganEmp
.
setGender
(
gender
);
chSuperviseOrganEmp
.
setAge
(
age
);
chSuperviseOrganEmp
.
setMobilePhone
(
superviseTel
);
chSuperviseOrganEmp
.
setIsLock
(
status
);
superviseOrganEmpMapper
.
updateById
(
chSuperviseOrganEmp
);
}
else
{
//新增
ChSuperviseOrganEmp
chSuperviseOrganEmp
=
new
ChSuperviseOrganEmp
();
chSuperviseOrganEmp
.
setEffTime
(
new
Date
());
chSuperviseOrganEmp
.
setSpvOrganId
(
spvOrganId
);
chSuperviseOrganEmp
.
setSpvEmpName
(
spvEmpName
);
chSuperviseOrganEmp
.
setCertifType
(
certifType
);
chSuperviseOrganEmp
.
setCertifNum
(
certifNum
);
chSuperviseOrganEmp
.
setGender
(
gender
);
chSuperviseOrganEmp
.
setAge
(
age
);
chSuperviseOrganEmp
.
setMobilePhone
(
superviseTel
);
chSuperviseOrganEmp
.
setIsLock
(
status
);
superviseOrganEmpMapper
.
insert
(
chSuperviseOrganEmp
);
}
}
@Override
public
List
<
ChSuperviseOrgan
>
superviseOrganList
(
Long
organId
)
{
if
(
organId
==
null
)
{
return
superviseOrganMapper
.
selectList
(
new
QueryWrapper
<>());
}
else
{
return
superviseOrganMapper
.
selectList
(
new
QueryWrapper
<
ChSuperviseOrgan
>().
eq
(
"ORGAN_ID"
,
organId
));
}
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
0 → 100644
View file @
9227547a
<?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.SuperviseOrganEmpMapper"
>
<!--监管机构人员信息列表-->
<select
id=
"superviseOrganEmpList"
resultType=
"com.hungraim.ltc.pojo.vo.governance.SuperviseOrganEmpVO"
>
SELECT--监管人员id
emp.spv_emp_id spvEmpId,
--监管机构id
emp.spv_organ_id spvOrganId,
--适用机构
organ.srv_organ_name organName,
--机构代码
sOrgan.ORGAN_ID spvOrganCode,
--监管机构名称
sOrgan.SPV_ORGAN_NAME spvOrganName,
--姓名
emp.SPV_EMP_NAME spvEmpName,
--证件类型
emp.CERTIF_TYPE certifType,
--监管人员证件号码
emp.CERTIF_NUM certifNum,
--监管人员手机号
emp.MOBILE_PHONE mobilePhone,
--人员类型 监管人员:0;管理人员:1
emp.SPV_EMP_TYPE spvEmpType,
--状态 有效:0;失效:1
emp.IS_LOCK isLock
FROM
ch_supervise_organ_emp emp --监管人员信息
LEFT JOIN ch_supervise_organ sOrgan ON emp.spv_organ_id = sOrgan.spv_organ_id --监管机构
LEFT JOIN ch_srv_organ organ ON sOrgan.organ_id = organ.organ_id --护理机构
<where>
<if
test=
"srvOrganId != null"
>
and organ.SRV_ORGAN_ID = #{srvOrganId}
</if>
<if
test=
"organName != null and organName != ''"
>
and sOrgan.SPV_ORGAN_NAME = #{organName}
</if>
<if
test=
"superviseType != null and superviseType != ''"
>
and emp.SPV_EMP_TYPE = #{superviseType}
</if>
<if
test=
"superviseName != null and superviseName != ''"
>
and emp.SPV_EMP_NAME LIKE CONCAT('%',CONCAT( #{superviseName} ,'%'))
</if>
<if
test=
"superviseTel != null and superviseTel != ''"
>
and emp.MOBILE_PHONE = #{superviseTel}
</if>
<if
test=
'status != null and status == "1"'
>
and emp.IS_LOCK = #{status}
</if>
</where>
</select>
</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