同步入职关联信息到员工信息表清除系统字段

This commit is contained in:
Administrator 2025-05-20 15:02:33 +08:00
parent 8d3fa24ec8
commit 4d88351a0d
2 changed files with 28 additions and 3 deletions

View File

@ -82,8 +82,20 @@ public class SyncRzglPersonInfo implements EsbServerlessRpcRemoteInterface {
}
}else{
//更新
//3.更新元素据到员工信息表,移除id
//3.更新元素据到员工信息表,移除id清楚系统列
map.remove("id");
map.remove("updater");
map.remove("create_time");
map.remove("creator");
map.remove("delete_type");
map.remove("is_delete");
map.remove("form_data_id");
map.remove("flow_id");
map.remove("is_flow");
map.remove("flow_status");
map.remove("eb_workflow_id");
map.remove("current_step");
map.remove("name");
if(!map.isEmpty()){
//更新前先处理一下时间
cleanUpTime(map);

View File

@ -54,8 +54,21 @@ public class SyncXxbgPersonInfo implements EsbServerlessRpcRemoteInterface {
Map<String, Object> map = getXxbgsqInfo(lcid);
log.error("SyncXxbgPersonInfo.map:{}", map);
//2.查询员工信息表字段
//3.更新元素据到员工信息表,移除id
//3.更新元素据到员工信息表,移除id清楚系统列
map.remove("id");
map.remove("updater");
map.remove("create_time");
//map.remove("update_time");
map.remove("creator");
map.remove("delete_type");
map.remove("is_delete");
map.remove("form_data_id");
map.remove("flow_id");
map.remove("is_flow");
map.remove("flow_status");
map.remove("eb_workflow_id");
map.remove("current_step");
map.remove("name");
if(!map.isEmpty()){
//更新前先处理一下时间
cleanUpTime(map);
@ -594,7 +607,7 @@ public class SyncXxbgPersonInfo implements EsbServerlessRpcRemoteInterface {
log.error("getTableColumnsOfTableName222.sql:{}", sql);
Map<String, Object> rs = databaseUtils.execute("LOGIC", "weaver-ebuilder-form-service", sql);
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(rs);
log.error("getTableColumnsOfTableName.recordList:{}", recordList);
//log.error("getTableColumnsOfTableName.recordList:{}", recordList);
return extractFieldNames(recordList);
}