Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
99f4fa01
Commit
99f4fa01
authored
Jun 28, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.6-预入职相关_5删除重拉
parent
f2689558
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
59 additions
and
9 deletions
+59
-9
TEmpFamilyMapper.java
.../cloud/plus/v1/yifu/archives/mapper/TEmpFamilyMapper.java
+1
-1
TEmpProfessionalQualificationMapper.java
.../archives/mapper/TEmpProfessionalQualificationMapper.java
+2
-0
TEmpWorkRecordingMapper.java
...plus/v1/yifu/archives/mapper/TEmpWorkRecordingMapper.java
+2
-0
TEmpFamilyService.java
...loud/plus/v1/yifu/archives/service/TEmpFamilyService.java
+1
-2
TEmpProfessionalQualificationService.java
...rchives/service/TEmpProfessionalQualificationService.java
+9
-0
TEmpWorkRecordingService.java
...us/v1/yifu/archives/service/TEmpWorkRecordingService.java
+9
-0
TEmpFamilyServiceImpl.java
.../v1/yifu/archives/service/impl/TEmpFamilyServiceImpl.java
+2
-2
TEmpProfessionalQualificationServiceImpl.java
...ervice/impl/TEmpProfessionalQualificationServiceImpl.java
+5
-0
TEmpWorkRecordingServiceImpl.java
...u/archives/service/impl/TEmpWorkRecordingServiceImpl.java
+5
-0
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+13
-3
TEmpFamilyMapper.xml
...chives-biz/src/main/resources/mapper/TEmpFamilyMapper.xml
+1
-1
TEmpProfessionalQualification.xml
...c/main/resources/mapper/TEmpProfessionalQualification.xml
+5
-0
TEmpWorkRecordingMapper.xml
...biz/src/main/resources/mapper/TEmpWorkRecordingMapper.xml
+4
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmpFamilyMapper.java
View file @
99f4fa01
...
...
@@ -30,5 +30,5 @@ import org.apache.ibatis.annotations.Param;
*/
@Mapper
public
interface
TEmpFamilyMapper
extends
BaseMapper
<
TEmpFamily
>
{
void
deleteByEmpId
(
@Param
(
"empId"
)
String
empId
,
@Param
(
"tableName"
)
String
tableName
);
void
deleteByEmpId
(
@Param
(
"empId"
)
String
empId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmpProfessionalQualificationMapper.java
View file @
99f4fa01
...
...
@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 员工职业资格信息表
...
...
@@ -30,4 +31,5 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
TEmpProfessionalQualificationMapper
extends
BaseMapper
<
TEmpProfessionalQualification
>
{
void
deleteByEmpId
(
@Param
(
"empId"
)
String
empId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmpWorkRecordingMapper.java
View file @
99f4fa01
...
...
@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 员工工作履历信息表
...
...
@@ -30,4 +31,5 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
TEmpWorkRecordingMapper
extends
BaseMapper
<
TEmpWorkRecording
>
{
void
deleteByEmpId
(
@Param
(
"empId"
)
String
empId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpFamilyService.java
View file @
99f4fa01
...
...
@@ -51,13 +51,12 @@ public interface TEmpFamilyService extends IService<TEmpFamily> {
/**
* @param empId
* @param tableName
* @Description: 删除档案附属表信息(预入职清空附属信息专用,其余的请慎用)
* @Author: hgw
* @Date: 2024/6/19 18:27
* @return: void
**/
void
deleteByEmpId
AndTable
(
String
empId
,
String
tableName
);
void
deleteByEmpId
(
String
empId
);
List
<
TEmpFamily
>
getListByEmpId
(
String
empId
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpProfessionalQualificationService.java
View file @
99f4fa01
...
...
@@ -58,4 +58,13 @@ public interface TEmpProfessionalQualificationService extends IService<TEmpProfe
**/
List
<
TEmpProfessionalQualification
>
getListByEmpId
(
String
empId
);
/**
* @param empId
* @Description: 删除档案附属表信息(预入职清空附属信息专用,其余的请慎用)
* @Author: hgw
* @Date: 2024/6/19 18:27
* @return: void
**/
void
deleteByEmpId
(
String
empId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpWorkRecordingService.java
View file @
99f4fa01
...
...
@@ -58,4 +58,13 @@ public interface TEmpWorkRecordingService extends IService<TEmpWorkRecording> {
**/
List
<
TEmpWorkRecording
>
getListByEmpId
(
String
empId
);
/**
* @param empId
* @Description: 删除档案附属表信息(预入职清空附属信息专用,其余的请慎用)
* @Author: hgw
* @Date: 2024/6/19 18:27
* @return: void
**/
void
deleteByEmpId
(
String
empId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpFamilyServiceImpl.java
View file @
99f4fa01
...
...
@@ -236,8 +236,8 @@ public class TEmpFamilyServiceImpl extends ServiceImpl<TEmpFamilyMapper, TEmpFam
}
@Override
public
void
deleteByEmpId
AndTable
(
String
empId
,
String
tableName
)
{
baseMapper
.
deleteByEmpId
(
empId
,
tableName
);
public
void
deleteByEmpId
(
String
empId
)
{
baseMapper
.
deleteByEmpId
(
empId
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
FamilySearchVO
entity
){
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpProfessionalQualificationServiceImpl.java
View file @
99f4fa01
...
...
@@ -65,6 +65,11 @@ public class TEmpProfessionalQualificationServiceImpl extends ServiceImpl<TEmpPr
private
final
TEmployeeInfoMapper
employeeInfoMapper
;
@Override
public
void
deleteByEmpId
(
String
empId
)
{
baseMapper
.
deleteByEmpId
(
empId
);
}
@Override
public
R
<
Boolean
>
saveDiy
(
TEmpProfessionalQualification
qualification
)
{
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpWorkRecordingServiceImpl.java
View file @
99f4fa01
...
...
@@ -296,4 +296,9 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
return
baseMapper
.
selectList
(
Wrappers
.<
TEmpWorkRecording
>
query
().
lambda
().
eq
(
TEmpWorkRecording:
:
getEmpId
,
empId
).
eq
(
TEmpWorkRecording:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
));
}
@Override
public
void
deleteByEmpId
(
String
empId
)
{
baseMapper
.
deleteByEmpId
(
empId
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
99f4fa01
...
...
@@ -155,6 +155,16 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
"1"
,
authorities
,
"1"
,
null
,
null
,
null
);
if
(
main
!=
null
&&
CommonConstants
.
FIVE_STRING
.
equals
(
main
.
getStatus
()))
{
// 清空信息
if
(
Common
.
isNotNull
(
main
.
getId
()))
{
tPreEmpWorkRecordingService
.
deleteByMainId
(
main
.
getId
());
tPreEmpProfessionalQualificationService
.
deleteByMainId
(
main
.
getId
());
tAttaInfoService
.
deleteByDomainId
(
main
.
getId
());
}
baseMapper
.
deleteById
(
main
);
main
=
null
;
}
if
(
main
!=
null
)
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
main
.
getStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
main
.
getStatus
())
...
...
@@ -1103,7 +1113,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
List
<
TPreEmpFamily
>
tPreEmpFamilyList
=
vo
.
getTpreEmpFamilyList
();
if
(
tPreEmpFamilyList
!=
null
)
{
// 先删除其他信息
tEmpFamilyService
.
deleteByEmpId
AndTable
(
empId
,
"t_emp_family"
);
tEmpFamilyService
.
deleteByEmpId
(
empId
);
List
<
TEmpFamily
>
tEmpFamilyList
=
new
ArrayList
<>();
TEmpFamily
tEmpFamily
;
for
(
TPreEmpFamily
tPreEmpFamily
:
tPreEmpFamilyList
)
{
...
...
@@ -1120,7 +1130,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
List
<
TPreEmpProfessionalQualification
>
tPreEmpProfessionalQualificationList
=
vo
.
getTpreEmpProfessionalQualificationList
();
if
(
tPreEmpProfessionalQualificationList
!=
null
)
{
// 先删除其他信息
tEmp
FamilyService
.
deleteByEmpIdAndTable
(
empId
,
"t_pre_emp_professional_qualification"
);
tEmp
ProfessionalQualificationService
.
deleteByEmpId
(
empId
);
TEmpProfessionalQualification
info
;
for
(
TPreEmpProfessionalQualification
preInfo
:
tPreEmpProfessionalQualificationList
)
{
info
=
new
TEmpProfessionalQualification
();
...
...
@@ -1151,7 +1161,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
List
<
TPreEmpWorkRecording
>
tPreEmpWorkRecordingList
=
vo
.
getTpreEmpWorkRecordingList
();
if
(
tPreEmpWorkRecordingList
!=
null
)
{
// 先删除其他信息
tEmp
FamilyService
.
deleteByEmpIdAndTable
(
empId
,
"t_pre_emp_work_recording"
);
tEmp
WorkRecordingService
.
deleteByEmpId
(
empId
);
List
<
TEmpWorkRecording
>
tEmpWorkRecordingList
=
new
ArrayList
<>();
TEmpWorkRecording
info
;
for
(
TPreEmpWorkRecording
preInfo
:
tPreEmpWorkRecordingList
)
{
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpFamilyMapper.xml
View file @
99f4fa01
...
...
@@ -45,6 +45,6 @@
</resultMap>
<delete
id=
"deleteByEmpId"
>
delete from
#{tableName}
where EMP_ID = #{empId}
delete from
t_emp_family
where EMP_ID = #{empId}
</delete>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpProfessionalQualification.xml
View file @
99f4fa01
...
...
@@ -45,4 +45,9 @@
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"remark"
column=
"REMARK"
/>
</resultMap>
<delete
id=
"deleteByEmpId"
>
delete from t_pre_emp_professional_qualification where EMP_ID = #{empId}
</delete>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpWorkRecordingMapper.xml
View file @
99f4fa01
...
...
@@ -46,4 +46,8 @@
<result
property=
"remark"
column=
"REMARK"
/>
</resultMap>
<delete
id=
"deleteByEmpId"
>
delete from t_pre_emp_work_recording where EMP_ID = #{empId}
</delete>
</mapper>
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