diff --git a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/esb/SyncOrganizationPersonInfo.java b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/esb/SyncOrganizationPersonInfo.java index 12214ea..5fcd803 100644 --- a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/esb/SyncOrganizationPersonInfo.java +++ b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/esb/SyncOrganizationPersonInfo.java @@ -1073,7 +1073,10 @@ public class SyncOrganizationPersonInfo implements EsbServerlessRpcRemoteInterfa log.error("updateAllYgxxDetailInfo.zzDetail:{}", zzDetail); for (Map map : zzDetail) { sql = "update "+map.get("table_name")+" set delete_type = 1,is_delete=1,ft_status=1,update_time ='" + nowData + "' where form_data_id = "+FORM_DATA; - deleteDetailData(sql); + if(map.get("form_name").equals(newDetail.get("name"))){ + //只删除对应的明细表原数据 + deleteDetailData(sql); + } } String newDetailsql = "select * from "+newDetail.get("tableName")+" where FORM_DATA_ID = '" + ygxxid + "' and delete_type=0"; log.error("getYgxxDetailInfo.newDetailsql:{}", newDetailsql);