generated from dxfeng/secondev-wugang-dxfeng
parent
46d0950bed
commit
849307c510
|
|
@ -20,4 +20,7 @@ public interface EntryManageMapper {
|
|||
* @return
|
||||
*/
|
||||
Long getEntryRecordIdByJobNum(@Param("param") BaseParam param, @Param("jobNum") String jobNum);
|
||||
|
||||
|
||||
Long updateFilesInfo(@Param("param") BaseParam param, @Param("employeeId") Long employeeId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@ public class EntryManageServiceImpl implements EntryManageService {
|
|||
|
||||
|
||||
JSONArray datas = new JSONArray();
|
||||
Long formId = ebuilderBaseMapper.getFormIdByTableName(baseParam, "uf_jcl_rzgl");
|
||||
|
||||
Long formId = ebuilderBaseMapper.getFormIdByTableName(baseParam, "uf_jcl_employee_information");
|
||||
List<JSONObject> jsonObjectList = new ArrayList<>();
|
||||
for (Map.Entry<String, List<FileUploadLoad>> entry : fileUploadMap.entrySet()) {
|
||||
String jobNum = entry.getKey();
|
||||
// 入职记录ID
|
||||
|
|
@ -132,12 +132,23 @@ public class EntryManageServiceImpl implements EntryManageService {
|
|||
dataObj.put("mainTable", mainDataObj);
|
||||
log.error("dataObj===" + dataObj);
|
||||
datas.add(dataObj);
|
||||
|
||||
jsonObjectList.add(mainDataObj);
|
||||
}
|
||||
|
||||
Long objId = ebuilderBaseMapper.getObjIdByTableName(baseParam, "uf_jcl_rzgl");
|
||||
Long objId = ebuilderBaseMapper.getObjIdByTableName(baseParam, "uf_jcl_employee_information");
|
||||
Long userId = UserContext.getCurrentUser().getEmployeeId();
|
||||
|
||||
String updateMsg = updateEbTable(datas, String.valueOf(objId), String.valueOf(userId));
|
||||
|
||||
// 更新系统人员表数据
|
||||
for (JSONObject jsonObject : jsonObjectList) {
|
||||
Long id = jsonObject.getLong("id");
|
||||
entryManageMapper.updateFilesInfo(baseParam, id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Map<String, Object> actionMap = new HashMap<>();
|
||||
actionMap.put("updateMsg", updateMsg);
|
||||
return WeaResult.success(actionMap);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,11 @@ public class BaseParam {
|
|||
// * 员工自定义表
|
||||
// */
|
||||
//private String table_emp_cus = "ft_1152026012537184302";
|
||||
|
||||
/**
|
||||
* 人事档案-个人信息表
|
||||
*/
|
||||
private String table_hr_cus = "ft_1152116439014449153";
|
||||
/**
|
||||
* 租户标识
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2,8 +2,27 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.weaver.seconddev.entry.mapper.EntryManageMapper">
|
||||
|
||||
|
||||
<update id="updateFilesInfo">
|
||||
update ${param.e10_other_business}.${param.table_hr_cus} as c
|
||||
join ${param.e10_other_business}.hr_userinfo as b on c.id = b.form_data
|
||||
join ${param.e10_common}.uf_jcl_employee_information as a on b.user = a.id
|
||||
set c.sfzzpzfm = a.sfzzpzfm,
|
||||
c.sfzfmghm = a.sfzfmghm,
|
||||
c.hzzp = a.hzzp,
|
||||
c.zgxlbyzszp = a.zgxlbyzszp,
|
||||
c.xxzbs = a.xxzbs,
|
||||
c.czycbdz = a.czycbdz,
|
||||
c.yxkzm = a.yxkzm,
|
||||
c.tjbg = a.tjbg,
|
||||
c.jkz = a.jkz,
|
||||
c.sjdwlzzm = a.sjdwlzzm,
|
||||
c.qtfj = a.qtfj
|
||||
where a.id = #{employeeId}
|
||||
</update>
|
||||
|
||||
<select id="getEntryRecordIdByJobNum" resultType="java.lang.Long">
|
||||
select t1.id from ${param.e10_common}.uf_jcl_rzgl t1
|
||||
select t1.id from ${param.e10_common}.uf_jcl_employee_information t1
|
||||
where t1.tenant_key = #{param.tenantKey} and t1.delete_type = 0
|
||||
and t1.job_num = #{jobNum}
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue