Commit 0a8eb4b6 authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 14205bc9
......@@ -443,6 +443,9 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
scheme.setDeptNo(autoMainRel.getDeptNo());
scheme.setDeptId(autoMainRel.getDeptId());
contractSchemeMapper.insert(scheme);
if (Common.isNotNull(scheme.getId())){
contractSchemeMapper.updateById( scheme);
}
}
}
//新增社保规则主表
......@@ -793,8 +796,13 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
scheme.setDeptNo(autoMainRel.getDeptNo());
scheme.setDeptId(autoMainRel.getDeptId());
scheme.setMainId(autoContractRuleNew.getId());
if (Common.isNotNull(scheme.getId())){
contractSchemeMapper.updateById(scheme);
}else {
contractSchemeMapper.insert(scheme);
}
}
}
// 判断数据对象是否都在页面传的对象里,有不在的数据,则返回true 目的是判断是否更新了
schemeFlag = checkContractSchemeForNotIn(schemesOld,schemes);
......
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