perf:【INFRA 基础设施】代码生成DO模式:主子表非erp模式下,主表保存更新时携带的子表信息放主表的 DO 里
This commit is contained in:
parent
cd341da674
commit
064fecf4ee
|
@ -78,4 +78,19 @@ public class ${table.className}DO extends BaseDO {
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
## 特殊:主子表专属逻辑(非 ERP 模式)
|
||||||
|
#if ( $voType == 20 && $subTables && $subTables.size() > 0 && $table.templateType != 11 )
|
||||||
|
#foreach ($subTable in $subTables)
|
||||||
|
#set ($index = $foreach.count - 1)
|
||||||
|
#if ( $subTable.subJoinMany)
|
||||||
|
@Schema(description = "${subTable.classComment}列表")
|
||||||
|
private List<${subTable.className}DO> ${subClassNameVars.get($index)}s;
|
||||||
|
|
||||||
|
#else
|
||||||
|
@Schema(description = "${subTable.classComment}")
|
||||||
|
private ${subTable.className}DO ${subClassNameVars.get($index)};
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue