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
05bcf645
Commit
05bcf645
authored
Jun 11, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://129.211.99.254:8088/hg-hubin/long-tern-care-service
parents
2a8e5ea7
3c5f82ce
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
828 additions
and
0 deletions
+828
-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
SuperviseOrganVO.java
...com/hungraim/ltc/pojo/vo/governance/SuperviseOrganVO.java
+60
-0
SuperviseOrganEmpController.java
...tc/governance/controller/SuperviseOrganEmpController.java
+160
-0
SuperviseOrganEmpMapper.java
.../hungraim/ltc/governance/dao/SuperviseOrganEmpMapper.java
+16
-0
SuperviseOrganMapper.java
...com/hungraim/ltc/governance/dao/SuperviseOrganMapper.java
+15
-0
SuperviseOrganEmpService.java
...raim/ltc/governance/service/SuperviseOrganEmpService.java
+29
-0
SuperviseOrganServiceImpl.java
...tc/governance/service/impl/SuperviseOrganServiceImpl.java
+104
-0
SuperviseOrganEmpMapper.xml
...ungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
+58
-0
SuperviseOrganMapper.xml
...m/hungraim/ltc/governance/mapper/SuperviseOrganMapper.xml
+48
-0
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/serviceManage/ChSuperviseOrgan.java
0 → 100644
View file @
05bcf645
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 @
05bcf645
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 @
05bcf645
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
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SuperviseOrganVO.java
0 → 100644
View file @
05bcf645
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
lombok.Data
;
/**
* 监管机构人员信息列表VO
*/
@Data
public
class
SuperviseOrganVO
{
/**
* 监管机构id
*/
private
String
spvOrganId
;
/**
* 适用机构
*/
private
String
organName
;
/**
* 机构代码
*/
private
String
spvOrganCode
;
/**
* 所在省市区
*/
private
String
districtProvince
;
private
String
districtCity
;
private
String
districtArea
;
/**
* 监管机构名称
*/
private
String
spvOrganName
;
/**
* 机构联系人姓名
*/
private
String
contactName
;
/**
* 联系人手机号
*/
private
String
contactTel
;
/**
* 统一社会信用代码
*/
private
String
unifiedSocialCreditCode
;
/**
* 机构联系人邮箱
*/
private
String
contactMail
;
/**
* 银行账户名称
*/
private
String
accName
;
/**
* 银行开户行名称
*/
private
String
bankAccName
;
/**
* 银行账号
*/
private
String
bankNo
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/SuperviseOrganEmpController.java
0 → 100644
View file @
05bcf645
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.pojo.vo.governance.SuperviseOrganVO
;
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
* @param spvOrganName 监管机构名称
*/
@RequestMapping
(
"/superviseOrganEmpList"
)
public
Result
<
List
<
SuperviseOrganVO
>>
superviseOrganList
(
String
organId
,
String
spvOrganName
)
{
List
<
SuperviseOrganVO
>
result
=
superviseOrganEmpService
.
superviseOrganList
(
organId
,
spvOrganName
);
return
Result
.
success
(
result
);
}
/**
* 更改监管机构状态
*
* @param spvOrganId 监管机构id
* @param isLock 状态 有效:0;失效:1
*/
@DeleteMapping
(
"/updateSpvStatus"
)
public
Result
updateSpvStatus
(
String
spvOrganId
,
Short
isLock
)
{
if
(
StringUtils
.
isBlank
(
spvOrganId
)
||
isLock
==
null
||
(
isLock
!=
1
&&
isLock
!=
0
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
superviseOrganEmpService
.
updateSpvStatus
(
spvOrganId
,
isLock
);
return
Result
.
success
();
}
/**
* 新增或编辑监管机构信息
*
* @param spvOrgan spvOrganId 监管机构id 没有就新增,有就编辑
* organId 适用机构id
* districtProvince 所在省
* districtCity 所在市
* districtArea 所在区
* spvOrganName 监管机构名称
* unifiedSocialCreditCode 统一社会信用代码
* contactName 机构联系人姓名
* contactTel 联系人手机号
* contactMail 机构联系人邮箱
* accName 银行账户名称
* bankAccName 银行开户行名称
* bankNo 银行账号
*/
@DeleteMapping
(
"/insertOrUpdateSpvInfo"
)
public
Result
insertOrUpdateSpvInfo
(
ChSuperviseOrgan
spvOrgan
)
{
//参数校验
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getOrganId
()))
{
//适用机构id
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getDistrictProvince
())
||
StringUtils
.
isBlank
(
spvOrgan
.
getDistrictCity
())
||
StringUtils
.
isBlank
(
spvOrgan
.
getDistrictArea
()))
{
//所在省市区
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getSpvOrganName
()))
{
//监管机构名称
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getContactName
()))
{
//机构联系人姓名
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
if
(
StringUtils
.
isBlank
(
spvOrgan
.
getContactTel
()))
{
//联系人手机号
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
superviseOrganEmpService
.
insertOrUpdateSpvInfo
(
spvOrgan
);
return
Result
.
success
();
}
}
governance/src/main/java/com/hungraim/ltc/governance/dao/SuperviseOrganEmpMapper.java
0 → 100644
View file @
05bcf645
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 @
05bcf645
package
com
.
hungraim
.
ltc
.
governance
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Mapper
@Repository
public
interface
SuperviseOrganMapper
extends
BaseMapper
<
ChSuperviseOrgan
>
{
List
<
SuperviseOrganVO
>
superviseOrganList
(
List
<
String
>
organIds
,
String
spvOrganName
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/SuperviseOrganEmpService.java
0 → 100644
View file @
05bcf645
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
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganVO
;
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
<
SuperviseOrganVO
>
superviseOrganList
(
String
organId
,
String
spvOrganName
);
void
updateSpvStatus
(
String
spvOrganId
,
Short
isLock
);
void
insertOrUpdateSpvInfo
(
ChSuperviseOrgan
spvOrgan
);
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SuperviseOrganServiceImpl.java
0 → 100644
View file @
05bcf645
package
com
.
hungraim
.
ltc
.
governance
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
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
com.hungraim.ltc.pojo.vo.governance.SuperviseOrganVO
;
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
<
SuperviseOrganVO
>
superviseOrganList
(
String
organId
,
String
spvOrganName
)
{
List
<
String
>
organIds
=
null
;
if
(
StrUtil
.
isNotBlank
(
organId
))
{
organIds
=
Arrays
.
asList
(
organId
.
split
(
","
));
}
return
superviseOrganMapper
.
superviseOrganList
(
organIds
,
spvOrganName
);
}
@Override
public
void
updateSpvStatus
(
String
spvOrganId
,
Short
isLock
)
{
ChSuperviseOrgan
chSuperviseOrgan
=
superviseOrganMapper
.
selectById
(
spvOrganId
);
chSuperviseOrgan
.
setIsLock
(
isLock
);
superviseOrganMapper
.
updateById
(
chSuperviseOrgan
);
}
@Override
public
void
insertOrUpdateSpvInfo
(
ChSuperviseOrgan
spvOrgan
)
{
if
(
spvOrgan
.
getSpvOrganId
()
!=
null
)
{
//更新
superviseOrganMapper
.
updateById
(
spvOrgan
);
}
else
{
//新增
spvOrgan
.
setEffTime
(
new
Date
());
superviseOrganMapper
.
insert
(
spvOrgan
);
}
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
0 → 100644
View file @
05bcf645
<?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=
"organIds != null"
>
and organ.SRV_ORGAN_ID in
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
</foreach>
</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
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SuperviseOrganMapper.xml
0 → 100644
View file @
05bcf645
<?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.SuperviseOrganMapper"
>
<!--监管机构人员信息列表-->
<select
id=
"superviseOrganList"
resultType=
"com.hungraim.ltc.pojo.vo.governance.SuperviseOrganVO"
>
SELECT--监管机构id
sOrgan.SPV_ORGAN_ID spvOrganId,
--适用机构
organ.srv_organ_name organName,
--机构代码
sOrgan.ORGAN_ID spvOrganCode,
--所在省市区
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE sOrgan.district_province = dis.DISTRICT_CODE) districtProvince,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE sOrgan.district_city = dis.DISTRICT_CODE) districtCity,
(SELECT dis.DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE sOrgan.district_area = dis.DISTRICT_CODE) districtArea,
--监管机构名称
sOrgan.SPV_ORGAN_NAME spvOrganName,
--机构联系人姓名
sOrgan.CONTACT_NAME contactName,
--联系人手机号
sOrgan.CONTACT_TEL contactTel,
--统一社会信用代码
sOrgan.UNIFIED_SOCIAL_CREDIT_CODE unifiedSocialCreditCode,
--机构联系人邮箱
sOrgan.CONTACT_MAIL contactMail,
--银行账户名称
sOrgan.ACC_NAME accName,
--银行开户行名称
sOrgan.BANK_ACC_NAME bankAccName,
--银行账号
sOrgan.BANK_NO bankNo
FROM
CH_SUPERVISE_ORGAN sOrgan --监管人员信息
LEFT JOIN ch_srv_organ organ ON sOrgan.organ_id = organ.organ_id --护理机构
where sOrgan.IS_LOCK = 0
<if
test=
"organIds != null"
>
and sOrgan.organ_id in
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
</foreach>
</if>
<if
test=
"spvOrganName != null and spvOrganName != ''"
>
and sOrgan.SPV_ORGAN_NAME LIKE CONCAT('%',CONCAT( #{spvOrganName} ,'%'))
</if>
</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