Commit 43adeaa1 authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 0e1dc97d
...@@ -443,9 +443,6 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu ...@@ -443,9 +443,6 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
scheme.setDeptNo(autoMainRel.getDeptNo()); scheme.setDeptNo(autoMainRel.getDeptNo());
scheme.setDeptId(autoMainRel.getDeptId()); scheme.setDeptId(autoMainRel.getDeptId());
contractSchemeMapper.insert(scheme); contractSchemeMapper.insert(scheme);
if (Common.isNotNull(scheme.getId())){
contractSchemeMapper.updateById( scheme);
}
} }
} }
//新增社保规则主表 //新增社保规则主表
...@@ -796,11 +793,8 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu ...@@ -796,11 +793,8 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
scheme.setDeptNo(autoMainRel.getDeptNo()); scheme.setDeptNo(autoMainRel.getDeptNo());
scheme.setDeptId(autoMainRel.getDeptId()); scheme.setDeptId(autoMainRel.getDeptId());
scheme.setMainId(autoContractRuleNew.getId()); scheme.setMainId(autoContractRuleNew.getId());
if (Common.isNotNull(scheme.getId())){ scheme.setId(null);
contractSchemeMapper.updateById(scheme);
}else {
contractSchemeMapper.insert(scheme); contractSchemeMapper.insert(scheme);
}
} }
} }
......
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