Commit 67df314a authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 12f63016
......@@ -841,6 +841,7 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
//保存社保规则明细
if (Common.isNotNull(socialRuleRels)){
TAutoSocialRuleRel temp = null;
for (TAutoSocialRuleRel rel:socialRuleRels){
//存在新增的直接socialFlag =true 后面不在判断此种场景
if (!Common.isNotNull(rel.getId())){
......@@ -853,7 +854,13 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
rel.setCreateTime(LocalDateTime.now());
rel.setCreateName(user.getNickname());
if (Common.isNotNull(rel.getId())){
autoSocialRuleRelMapper.updateById(rel);
temp = autoSocialRuleRelMapper.selectById(rel.getId());
if (null != temp){
autoSocialRuleRelMapper.updateById(rel);
}else {
autoSocialRuleRelMapper.insert(rel);
}
}else {
autoSocialRuleRelMapper.insert(rel);
}
......
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