소스 검색

修改模板

zhangzaipeng 3 년 전
부모
커밋
a78a54eeaa
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      single_table/groovy.ftl
  2. 1 1
      single_table/groovy_en.ftl

+ 1 - 1
single_table/groovy.ftl

@@ -36,7 +36,7 @@ class ${moduleName} {
 
         for (def row : params.removeRecords) {
             // 提取 removeRecords 全部删除的数据
-            if (row._origin[primaryKey] != null) {
+            if (row._origin.${primaryKey}!= null) {
             // 构建删除条件,添加到 "批量执行(addBatch)" 的缓存中
             remove.where(
         ${camelName(tableName)}.${camelName(primaryKey)}.eq(

+ 1 - 1
single_table/groovy_en.ftl

@@ -36,7 +36,7 @@ class ${moduleName} {
 
         for (def row : params.removeRecords) {
             // 提取 removeRecords 全部删除的数据
-            if (row._origin[primaryKey] != null) {
+            if (row._origin.${primaryKey} != null) {
             // 构建删除条件,添加到 "批量执行(addBatch)" 的缓存中
             remove.where(
         ${camelName(tableName)}.${camelName(primaryKey)}.eq(