Commit 57a9d78c authored by hongguangwu's avatar hongguangwu

MVP1.7.12-保存档案

parent 7b58ec80
...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpContactInfo; ...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpContactInfo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 瓜子紧急联系人 * 瓜子紧急联系人
* *
...@@ -39,6 +41,9 @@ public interface TGzEmpContactInfoMapper extends BaseMapper<TGzEmpContactInfo> { ...@@ -39,6 +41,9 @@ public interface TGzEmpContactInfoMapper extends BaseMapper<TGzEmpContactInfo> {
*/ */
IPage<TGzEmpContactInfo> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, @Param("tGzEmpContactInfo") TGzEmpContactInfo tGzEmpContactInfo); IPage<TGzEmpContactInfo> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, @Param("tGzEmpContactInfo") TGzEmpContactInfo tGzEmpContactInfo);
// 获取附属信息——保存到人员档案时使用 hgw
TGzEmpContactInfo getOneByEmpId(@Param("empId") String empId);
// 保存是先删后增 hgw 2025-6-20 11:06:38 // 保存是先删后增 hgw 2025-6-20 11:06:38
int deleteByEmpId(@Param("empId") String empId); int deleteByEmpId(@Param("empId") String empId);
......
...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation; ...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 瓜子教育经历 * 瓜子教育经历
* *
...@@ -39,6 +41,9 @@ public interface TGzEmpEducationMapper extends BaseMapper<TGzEmpEducation> { ...@@ -39,6 +41,9 @@ public interface TGzEmpEducationMapper extends BaseMapper<TGzEmpEducation> {
*/ */
IPage<TGzEmpEducation> getTGzEmpEducationPage(Page<TGzEmpEducation> page, @Param("tGzEmpEducation") TGzEmpEducation tGzEmpEducation); IPage<TGzEmpEducation> getTGzEmpEducationPage(Page<TGzEmpEducation> page, @Param("tGzEmpEducation") TGzEmpEducation tGzEmpEducation);
// 获取附属信息——保存到人员档案时使用 hgw
TGzEmpEducation getOneByEmpId(@Param("empId") String empId);
// 保存是先删后增 hgw 2025-6-20 11:06:38 // 保存是先删后增 hgw 2025-6-20 11:06:38
int deleteByEmpId(@Param("empId") String empId); int deleteByEmpId(@Param("empId") String empId);
} }
...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily; ...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 瓜子家庭成员 * 瓜子家庭成员
* *
...@@ -40,6 +42,9 @@ public interface TGzEmpFamilyMapper extends BaseMapper<TGzEmpFamily> { ...@@ -40,6 +42,9 @@ public interface TGzEmpFamilyMapper extends BaseMapper<TGzEmpFamily> {
*/ */
IPage<TGzEmpFamily> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, @Param("tGzEmpFamily") TGzEmpFamily tGzEmpFamily); IPage<TGzEmpFamily> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, @Param("tGzEmpFamily") TGzEmpFamily tGzEmpFamily);
// 获取附属信息——保存到人员档案时使用 hgw
List<TGzEmpFamily> getListByEmpId(@Param("empId") String empId);
// 保存是先删后增 hgw 2025-6-20 11:06:38 // 保存是先删后增 hgw 2025-6-20 11:06:38
int deleteByEmpId(@Param("empId") String empId); int deleteByEmpId(@Param("empId") String empId);
} }
...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork; ...@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 瓜子工作经历 * 瓜子工作经历
* *
...@@ -40,6 +42,9 @@ public interface TGzEmpWorkMapper extends BaseMapper<TGzEmpWork> { ...@@ -40,6 +42,9 @@ public interface TGzEmpWorkMapper extends BaseMapper<TGzEmpWork> {
*/ */
IPage<TGzEmpWork> getTGzEmpWorkPage(Page<TGzEmpWork> page, @Param("tGzEmpWork") TGzEmpWork tGzEmpWork); IPage<TGzEmpWork> getTGzEmpWorkPage(Page<TGzEmpWork> page, @Param("tGzEmpWork") TGzEmpWork tGzEmpWork);
// 获取附属信息——保存到人员档案时使用 hgw
List<TGzEmpWork> getListByEmpId(@Param("empId") String empId);
// 保存是先删后增 hgw 2025-6-20 11:06:38 // 保存是先删后增 hgw 2025-6-20 11:06:38
int deleteByEmpId(@Param("empId") String empId); int deleteByEmpId(@Param("empId") String empId);
} }
...@@ -107,6 +107,14 @@ ...@@ -107,6 +107,14 @@
</where> </where>
</select> </select>
<!--获取附属信息——保存到人员档案时使用 只有一个-->
<select id="getOneByEmpId" resultMap="tGzEmpContactInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_contact_info a
where a.del_flag = '0' and a.emp_id = #{empId} order by a.create_time desc limit 1
</select>
<!-- 删除 --> <!-- 删除 -->
<delete id="deleteByEmpId"> <delete id="deleteByEmpId">
delete FROM t_gz_emp_contact_info where emp_id = #{empId} delete FROM t_gz_emp_contact_info where emp_id = #{empId}
......
...@@ -137,6 +137,14 @@ ...@@ -137,6 +137,14 @@
</where> </where>
</select> </select>
<!--获取附属信息——保存到人员档案时使用—— 教育经历只有一个最高的-->
<select id="getOneByEmpId" resultMap="tGzEmpEducationMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_education a
where a.del_flag = '0' and a.emp_id = #{empId} order by a.create_time desc limit 1
</select>
<!-- 删除 --> <!-- 删除 -->
<delete id="deleteByEmpId"> <delete id="deleteByEmpId">
delete FROM t_gz_emp_education where emp_id = #{empId} delete FROM t_gz_emp_education where emp_id = #{empId}
......
...@@ -117,6 +117,14 @@ ...@@ -117,6 +117,14 @@
</where> </where>
</select> </select>
<!--获取附属信息——保存到人员档案时使用-->
<select id="getListByEmpId" resultMap="tGzEmpFamilyMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_family a
where a.del_flag = '0' and a.emp_id = #{empId}
</select>
<!-- 删除 --> <!-- 删除 -->
<delete id="deleteByEmpId"> <delete id="deleteByEmpId">
delete FROM t_gz_emp_family where emp_id = #{empId} delete FROM t_gz_emp_family where emp_id = #{empId}
......
...@@ -117,6 +117,14 @@ ...@@ -117,6 +117,14 @@
</where> </where>
</select> </select>
<!--获取附属信息——保存到人员档案时使用-->
<select id="getListByEmpId" resultMap="tGzEmpWorkMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_work a
where a.del_flag = '0' and a.emp_id = #{empId}
</select>
<!-- 删除 --> <!-- 删除 -->
<delete id="deleteByEmpId"> <delete id="deleteByEmpId">
delete FROM t_gz_emp_work where emp_id = #{empId} delete FROM t_gz_emp_work where emp_id = #{empId}
......
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