Commit bf4d5994 authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 48b9c2a9
......@@ -852,7 +852,12 @@ public class TAutoMainRelServiceImpl extends ServiceImpl<TAutoMainRelMapper, TAu
rel.setCreateBy(user.getId());
rel.setCreateTime(LocalDateTime.now());
rel.setCreateName(user.getNickname());
autoSocialRuleRelMapper.insert(rel);
if (Common.isNotNull(rel.getId())){
autoSocialRuleRelMapper.updateById(rel);
}else {
autoSocialRuleRelMapper.insert(rel);
}
}
}
// 判断数据对象是否都在页面传的对象里,有不在的数据,则返回true 目的是判断是否更新了
......
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