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
f30c9e79
Commit
f30c9e79
authored
Apr 06, 2023
by
zengxiaoli@yeah.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定人员鉴定人员录入前加唯一性校验(有效数据保证一条)
parent
5bb529e6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
13 deletions
+30
-13
AprOrganController.java
...ungraim/ltc/governance/controller/AprOrganController.java
+2
-3
SuperviseOrganEmpController.java
...tc/governance/controller/SuperviseOrganEmpController.java
+2
-2
AprOrganService.java
.../com/hungraim/ltc/governance/service/AprOrganService.java
+1
-1
SuperviseOrganEmpService.java
...raim/ltc/governance/service/SuperviseOrganEmpService.java
+1
-1
AprOrganServiceImpl.java
...raim/ltc/governance/service/impl/AprOrganServiceImpl.java
+12
-5
SuperviseOrganServiceImpl.java
...tc/governance/service/impl/SuperviseOrganServiceImpl.java
+12
-1
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/AprOrganController.java
View file @
f30c9e79
...
@@ -322,9 +322,8 @@ public class AprOrganController {
...
@@ -322,9 +322,8 @@ public class AprOrganController {
if
(
chAprEmp
.
getGroupLeader
()
==
null
)
{
//评定人员是否是组长
if
(
chAprEmp
.
getGroupLeader
()
==
null
)
{
//评定人员是否是组长
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
int
result
=
aprOrganService
.
addOrUpdateAprEmp
(
chAprEmp
);
aprOrganService
.
addOrUpdateAprEmp
(
chAprEmp
);
return
result
>
0
?
Result
.
failed
(
"该评定人员已存在于系统,请勿重复录入"
):
Result
.
success
();
return
Result
.
success
();
}
}
/**
/**
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SuperviseOrganEmpController.java
View file @
f30c9e79
...
@@ -115,8 +115,8 @@ public class SuperviseOrganEmpController {
...
@@ -115,8 +115,8 @@ public class SuperviseOrganEmpController {
if
(
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getSpvEmpName
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getCertifType
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getGender
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getMobilePhone
()))
{
if
(
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getSpvEmpName
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getCertifType
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getGender
())
||
StringUtils
.
isBlank
(
chSuperviseOrganEmp
.
getMobilePhone
()))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
superviseOrganEmpService
.
insertOrUpdateEmpInfo
(
chSuperviseOrganEmp
);
int
result
=
superviseOrganEmpService
.
insertOrUpdateEmpInfo
(
chSuperviseOrganEmp
);
return
Result
.
success
();
return
result
>
0
?
Result
.
failed
(
"该监管人员已存在于系统,请勿重复录入"
):
Result
.
success
();
}
}
/**
/**
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/AprOrganService.java
View file @
f30c9e79
...
@@ -40,7 +40,7 @@ public interface AprOrganService extends IService<ChAprOrgan> {
...
@@ -40,7 +40,7 @@ public interface AprOrganService extends IService<ChAprOrgan> {
Workbook
aprEmpExport
(
Long
organId
,
Boolean
isIncluded
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
Workbook
aprEmpExport
(
Long
organId
,
Boolean
isIncluded
,
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
void
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
);
int
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
);
List
<
ChCfgAprempType
>
cfgAprEmpType
(
String
parAprempTypeId
);
List
<
ChCfgAprempType
>
cfgAprEmpType
(
String
parAprempTypeId
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/SuperviseOrganEmpService.java
View file @
f30c9e79
...
@@ -21,7 +21,7 @@ public interface SuperviseOrganEmpService extends IService<ChSuperviseOrgan> {
...
@@ -21,7 +21,7 @@ public interface SuperviseOrganEmpService extends IService<ChSuperviseOrgan> {
void
updateEmpStatus
(
String
empId
,
Short
isLock
);
void
updateEmpStatus
(
String
empId
,
Short
isLock
);
void
insertOrUpdateEmpInfo
(
ChSuperviseOrganEmp
chSuperviseOrganEmp
);
int
insertOrUpdateEmpInfo
(
ChSuperviseOrganEmp
chSuperviseOrganEmp
);
Page
<
SuperviseOrganVO
>
superviseOrganList
(
Page
<
SuperviseOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
spvOrganName
);
Page
<
SuperviseOrganVO
>
superviseOrganList
(
Page
<
SuperviseOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
spvOrganName
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/AprOrganServiceImpl.java
View file @
f30c9e79
...
@@ -13,10 +13,7 @@ import com.hungraim.ltc.governance.service.AprOrganService;
...
@@ -13,10 +13,7 @@ import com.hungraim.ltc.governance.service.AprOrganService;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprEmp
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprEmp
;
import
com.hungraim.ltc.pojo.entity.assessment.ChCfgAprGroupDetail
;
import
com.hungraim.ltc.pojo.entity.assessment.ChCfgAprGroupDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChAprOrgan
;
import
com.hungraim.ltc.pojo.entity.serviceManage.*
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpExportVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
...
@@ -182,9 +179,18 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
...
@@ -182,9 +179,18 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
)
{
public
int
addOrUpdateAprEmp
(
AprEmpInfoVO
chAprEmp
)
{
int
queryResult
=
0
;
if
(
chAprEmp
.
getEmpId
()
==
null
)
{
if
(
chAprEmp
.
getEmpId
()
==
null
)
{
//新增
//新增
QueryWrapper
<
ChAprEmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"CERTI_CODE"
,
chAprEmp
.
getCertiCode
());
queryWrapper
.
eq
(
"IS_LOCK"
,
0
);
queryResult
=
aprEmpMapper
.
selectCount
(
queryWrapper
);
if
(
queryResult
>
0
){
return
queryResult
;
}
chAprEmp
.
setEffTime
(
new
Date
());
chAprEmp
.
setEffTime
(
new
Date
());
chAprEmp
.
setIsLock
(
0
);
chAprEmp
.
setIsLock
(
0
);
aprEmpMapper
.
insert
(
chAprEmp
);
aprEmpMapper
.
insert
(
chAprEmp
);
...
@@ -199,6 +205,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
...
@@ -199,6 +205,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
chAprEmp
.
setEmpId
(
chAprEmp
.
getEmpId
());
chAprEmp
.
setEmpId
(
chAprEmp
.
getEmpId
());
}
}
updateAttachs
(
chAprEmp
.
getFileDataList
(),
chAprEmp
.
getEmpId
().
longValue
(),
AttachType
.
APR_ORGAN_EMP
.
getUploadType
());
updateAttachs
(
chAprEmp
.
getFileDataList
(),
chAprEmp
.
getEmpId
().
longValue
(),
AttachType
.
APR_ORGAN_EMP
.
getUploadType
());
return
queryResult
;
}
}
@Override
@Override
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SuperviseOrganServiceImpl.java
View file @
f30c9e79
...
@@ -3,12 +3,14 @@ package com.hungraim.ltc.governance.service.impl;
...
@@ -3,12 +3,14 @@ package com.hungraim.ltc.governance.service.impl;
import
cn.afterturn.easypoi.excel.ExcelExportUtil
;
import
cn.afterturn.easypoi.excel.ExcelExportUtil
;
import
cn.afterturn.easypoi.excel.entity.ExportParams
;
import
cn.afterturn.easypoi.excel.entity.ExportParams
;
import
cn.afterturn.easypoi.excel.entity.enmus.ExcelType
;
import
cn.afterturn.easypoi.excel.entity.enmus.ExcelType
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganEmpMapper
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganEmpMapper
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganMapper
;
import
com.hungraim.ltc.governance.dao.SuperviseOrganMapper
;
import
com.hungraim.ltc.governance.service.SuperviseOrganEmpService
;
import
com.hungraim.ltc.governance.service.SuperviseOrganEmpService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganEmp
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrgan
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrganEmp
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSuperviseOrganEmp
;
import
com.hungraim.ltc.pojo.vo.governance.ChSuperviseOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.governance.ChSuperviseOrganEmpVo
;
...
@@ -61,17 +63,26 @@ public class SuperviseOrganServiceImpl extends ServiceImpl<SuperviseOrganMapper,
...
@@ -61,17 +63,26 @@ public class SuperviseOrganServiceImpl extends ServiceImpl<SuperviseOrganMapper,
}
}
@Override
@Override
public
void
insertOrUpdateEmpInfo
(
ChSuperviseOrganEmp
chSuperviseOrganEmp
)
{
public
int
insertOrUpdateEmpInfo
(
ChSuperviseOrganEmp
chSuperviseOrganEmp
)
{
Long
spvEmpId
=
chSuperviseOrganEmp
.
getSpvEmpId
();
Long
spvEmpId
=
chSuperviseOrganEmp
.
getSpvEmpId
();
int
queryResult
=
0
;
if
(
spvEmpId
!=
null
)
{
if
(
spvEmpId
!=
null
)
{
//更新
//更新
superviseOrganEmpMapper
.
updateById
(
chSuperviseOrganEmp
);
superviseOrganEmpMapper
.
updateById
(
chSuperviseOrganEmp
);
}
else
{
}
else
{
//新增
//新增
QueryWrapper
<
ChSuperviseOrganEmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"CERTIF_NUM"
,
chSuperviseOrganEmp
.
getCertifNum
());
queryWrapper
.
eq
(
"IS_LOCK"
,
0
);
queryResult
=
superviseOrganEmpMapper
.
selectCount
(
queryWrapper
);
if
(
queryResult
>
0
){
return
queryResult
;
}
chSuperviseOrganEmp
.
setEffTime
(
new
Date
());
chSuperviseOrganEmp
.
setEffTime
(
new
Date
());
chSuperviseOrganEmp
.
setIsLock
((
short
)
0
);
chSuperviseOrganEmp
.
setIsLock
((
short
)
0
);
superviseOrganEmpMapper
.
insert
(
chSuperviseOrganEmp
);
superviseOrganEmpMapper
.
insert
(
chSuperviseOrganEmp
);
}
}
return
queryResult
;
}
}
@Override
@Override
...
...
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