review:【INFRA 基础设施】代码生成的 review

This commit is contained in:
YunaiV
2025-05-20 21:12:24 +08:00
parent c8ee7adeca
commit 73e4f831f2
4 changed files with 4 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
#end
// 插入
#if ($voType == 10)
## TODO @puhui999insert 也要加下 clean。万一前端乱传递哈哈哈。这个就是 do 模式的缺点;(只在 do 模式下看看主子表是不是也可能存在insert 的时候;
${table.className}DO ${classNameVar} = BeanUtils.toBean(createReqVO, ${table.className}DO.class);
#end
${classNameVar}Mapper.insert(${classNameVar});

View File

@@ -102,6 +102,7 @@ export function export${simpleClassName}(params: any) {
}
## 特殊:主子表专属逻辑
## TODO @puhui999下面这块缩进调整了会乱掉么
#foreach ($subTable in $subTables)
#set ($index = $foreach.count - 1)
#set ($subSimpleClassName = $subSimpleClassNames.get($index))