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

通过外键值文本填充外键值

上级 64a917a4
......@@ -2839,7 +2839,7 @@ public class ${item.getCodeName()}ServiceImpl implements I${de.getCodeName()}Ser
if(ObjectUtils.isEmpty(entity.get${foreignkeyId}()) && !ObjectUtils.isEmpty(entity.get${foreignkeyName}())){
QueryWrapper<${pub.getPKGCodeName()}.core.${MajorEntity.getPSSystemModule().getCodeName()?lower_case}.domain.${MajorEntityCodeName}> ${MinorPSDER.codeName?lower_case}Wrapper = new QueryWrapper<>();
${MinorPSDER.codeName?lower_case}Wrapper.eq("${foreignkeyField.name?lower_case}",entity.get${foreignkeyName}());
${MajorEntity.getCodeName()} ${MinorPSDER.codeName?lower_case}Entity = ${MajorEntityService}.getOne(${MinorPSDER.codeName?lower_case}Wrapper,false);
${pub.getPKGCodeName()}.core.${MajorEntity.getPSSystemModule().getCodeName()?lower_case}.domain.${MajorEntityCodeName} ${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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册