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

数据导入外键值检查

上级 5c2d32b8
......@@ -2841,7 +2841,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
if(ObjectUtils.isEmpty(entity.get${foreignkeyId}()) && !ObjectUtils.isEmpty(entity.get${foreignkeyName}())){
QueryWrapper<${MajorEntity.getCodeName()}> ${MinorPSDER.codeName?lower_case}Wrapper = new QueryWrapper<>();
${MinorPSDER.codeName?lower_case}Wrapper.eq("${foreignkeyField.name?lower_case}",entity.get${foreignkeyName}());
${MajorEntity.getCodeName()} ${minder.codeName?lower_case}Entity = ${MajorEntityService}.getOne(${MinorPSDER.codeName?lower_case}Wrapper,false);
${MajorEntity.getCodeName()} ${MinorPSDER.codeName?lower_case}Entity = ${MajorEntityService}.getOne(${MinorPSDER.codeName?lower_case}Wrapper,false);
if(${MinorPSDER.codeName?lower_case}Entity == null){
Integer lineNum = i + 1;
errorLines.add(lineNum);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册