zhangzaipeng 3 лет назад
Родитель
Сommit
fd47303676
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      single_table/groovy.ftl
  2. 1 1
      single_table/groovy_en.ftl

+ 1 - 1
single_table/groovy.ftl

@@ -84,7 +84,7 @@ class ${moduleName} {
         for (def row : params.modifyRows) {
             // 提取 modifyRows 全部修改的数据
             // 构建update的queryDsl语句,并添加到 "批量执行(addBatch)" 的缓存中
-            if (row._origin.["${primaryKey}"] != null) {
+        if (row._origin.${primaryKey} != null) {
                 update
 <#if columnList??>
     <#list columnList as column>

+ 1 - 1
single_table/groovy_en.ftl

@@ -84,7 +84,7 @@ class ${moduleName} {
         for (def row : params.modifyRows) {
             // 提取 modifyRows 全部修改的数据
             // 构建update的queryDsl语句,并添加到 "批量执行(addBatch)" 的缓存中
-            if (row._origin.["${primaryKey}"] != null) {
+            if (row._origin.${primaryKey} != null) {
                 update
 <#if columnList??>
     <#list columnList as column>