Commit 4b2c6c5a authored by hongguangwu's avatar hongguangwu

MVP1.7.8-hgw(判断简档详档)

parent 753e849c
......@@ -46,12 +46,17 @@ public interface TAttaInfoMapper extends BaseMapper<TAttaInfo> {
List<TAttaInfo> getAttaByApplyId(@Param("applyId")String applyId);
void deleteByDomainId(@Param("domainId") String domainId);
// 详档变简档,删除身份证、其他附件、签名之外的附件
void deleteByDomainIdExceptionCard(@Param("domainId") String domainId);
void deleteByDomainIdAndType(@Param("domainId") String domainId, @Param("relationType") String relationType);
// 删除学历与职业资格之外的附件
void deleteByDomainIdAndOther(@Param("domainId") String domainId);
// 简档,仅删除身份证附件和(21(预入职申明签名);22(预入职确认签名);23(预入职pdf文)
void deleteByDomainIdCard(@Param("domainId") String domainId);
List<TAttaInfoVo> getAttInfoByParam(@Param("departNo")String departNo, @Param("startDate")String startDate, @Param("endDate")String endDate);
int getAttInfoCountByParam(@Param("departNo")String departNo, @Param("startDate")String startDate, @Param("endDate")String endDate);
......
......@@ -80,8 +80,19 @@ public interface TAttaInfoService extends IService<TAttaInfo> {
**/
void deleteByDomainId(String domainId);
/**
* @Description: 详档变简档,删除身份证、其他附件、签名之外的附件
* @Author: hgw
* @Date: 2025/3/21 17:06
* @return: void
**/
void deleteByDomainIdExceptionCard(String domainId);
void deleteByDomainIdAndOther(String domainId);
// 简档,仅删除身份证附件和(21(预入职申明签名);22(预入职确认签名);23(预入职pdf文)
void deleteByDomainIdCard(String domainId);
void deleteByDomainIdAndType(String domainId, int relationType);
List<TAttaInfoVo> getAttInfoByParam(String departNo, String startDate, String endDate);
......
......@@ -135,11 +135,21 @@ public class TAttaInfoServiceImpl extends ServiceImpl<TAttaInfoMapper, TAttaInfo
baseMapper.deleteByDomainId(domainId);
}
@Override
public void deleteByDomainIdExceptionCard(String domainId) {
baseMapper.deleteByDomainIdExceptionCard(domainId);
}
@Override
public void deleteByDomainIdAndOther(String domainId) {
baseMapper.deleteByDomainIdAndOther(domainId);
}
@Override
public void deleteByDomainIdCard(String domainId) {
baseMapper.deleteByDomainIdCard(domainId);
}
@Override
public void deleteByDomainIdAndType(String domainId, int relationType) {
// 学历
......
......@@ -127,6 +127,11 @@
delete from t_atta_info where domain_id=#{domainId}
</delete>
<!-- 详档变简档,删除身份证、其他附件、签名之外的附件 -->
<delete id="deleteByDomainIdExceptionCard">
delete from t_atta_info where domain_id=#{domainId} and relation_type not in ('9','24','27','21','22')
</delete>
<delete id="deleteByDomainIdAndType">
delete from t_atta_info where domain_id=#{domainId} and relation_type = #{relationType}
</delete>
......@@ -134,6 +139,12 @@
<delete id="deleteByDomainIdAndOther">
delete from t_atta_info where domain_id=#{domainId} and relation_type not in ('0','2','26','27')
</delete>
<!-- 简档,仅删除身份证附件和(21(预入职申明签名);22(预入职确认签名);23(预入职pdf文) -->
<delete id="deleteByDomainIdCard">
delete from t_atta_info where domain_id=#{domainId} and relation_type in ('9','24','21','22','23')
</delete>
<select id="getAttInfoByParam" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TAttaInfoVo">
SELECT
b.id,
......
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