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

解决fillparentdata时,get不到父数据而把do的父数据置空问题

上级 f1076553
......@@ -723,7 +723,9 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
if(!ObjectUtils.isEmpty(et.get${MajorKeyFieldCodeName}())){
${pub.getPKGCodeName()}.core.${MajorEntity.getPSSystemModule().getCodeName()?lower_case}.domain.${MajorEntity.getCodeName()} ${MajorEntityName}=et.get${MajorEntityName?cap_first}();
if(ObjectUtils.isEmpty(${MajorEntityName})){
${pub.getPKGCodeName()}.core.${MajorEntity.getPSSystemModule().getCodeName()?lower_case}.domain.${MajorEntity.getCodeName()} majorEntity=${MajorEntityService}.get(et.get${MajorKeyFieldCodeName}());
${pub.getPKGCodeName()}.core.${MajorEntity.getPSSystemModule().getCodeName()?lower_case}.domain.${MajorEntity.getCodeName()} majorEntity=${MajorEntityService}.getById(et.get${MajorKeyFieldCodeName}());
if(ObjectUtils.isEmpty(majorEntity))
return;
et.set${MajorEntityName?cap_first}(majorEntity);
${MajorEntityName}=majorEntity;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册