Commit ed33942b authored by hongguangwu's avatar hongguangwu

MVP1.6.6-预入职相关_导出优化

parent c1c233e8
......@@ -67,4 +67,13 @@ public interface TPreEmpMainMapper extends BaseMapper<TPreEmpMain> {
TPreEmpMain getTPreEmpMainByCardAndDeptNo(@Param("empIdCard") String empIdCard, @Param("deptNo") String deptNo);
// 以下都是清空临时表的数据
void deleteBadByMainId(@Param("preMainId") String preMainId);
void deleteContactByMainId(@Param("preMainId") String preMainId);
void deleteDisabilityByMainId(@Param("preMainId") String preMainId);
void deleteEducationByMainId(@Param("preMainId") String preMainId);
void deleteFamilyByMainId(@Param("preMainId") String preMainId);
void deleteEmployeeByMainId(@Param("preMainId") String preMainId);
void deleteProjectByMainId(@Param("preMainId") String preMainId);
}
......@@ -151,6 +151,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
if (main != null && CommonConstants.FIVE_STRING.equals(main.getStatus())) {
// 清空信息
if (Common.isNotNull(main.getId())) {
baseMapper.deleteBadByMainId(main.getId());
baseMapper.deleteContactByMainId(main.getId());
baseMapper.deleteDisabilityByMainId(main.getId());
baseMapper.deleteEducationByMainId(main.getId());
baseMapper.deleteFamilyByMainId(main.getId());
baseMapper.deleteEmployeeByMainId(main.getId());
baseMapper.deleteProjectByMainId(main.getId());
tPreEmpWorkRecordingService.deleteByMainId(main.getId());
tPreEmpProfessionalService.deleteProfessionalByMainId(main.getId());
tAttaInfoService.deleteByDomainId(main.getId());
......
......@@ -508,4 +508,26 @@
limit 1
</select>
<delete id="deleteBadByMainId">
delete from t_pre_emp_bad_record where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteContactByMainId">
delete from t_pre_emp_contact_info where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteDisabilityByMainId">
delete from t_pre_emp_disability_info where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteEducationByMainId">
delete from t_pre_emp_education where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteFamilyByMainId">
delete from t_pre_emp_family where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteEmployeeByMainId">
delete from t_pre_employee_info where PRE_MAIN_ID = #{preMainId}
</delete>
<delete id="deleteProjectByMainId">
delete from t_pre_employee_project where PRE_MAIN_ID = #{preMainId}
</delete>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment