提交 82a19691 编写于 作者: zhouweidong's avatar zhouweidong

联合主键

上级 d7080c43
......@@ -456,7 +456,12 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
if(_update.size()>0)
this.updateBatch(_update);
if(_create.size()>0)
<#comment>联合主键,走saveBatch,防止因主键冲突导致后续数据无法保存</#comment>
<#if item.getUnionKeyValuePSDEFields()??>
this.saveBatch(_create);
<#else>
this.createBatch(_create);
</#if>
if(delIds.size()>0)
this.removeBatch(delIds);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册