From 7637b9502f6959c3fd8474ee5d49d0e6225f9291 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Thu, 18 May 2017 23:13:55 +0800 Subject: [PATCH] =?UTF-8?q?@alpha4=20#bugfix=20#=20mapper=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=94=9F=E6=88=90=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/template/generatorConfig.vm | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/zheng-common/src/main/resources/template/generatorConfig.vm b/zheng-common/src/main/resources/template/generatorConfig.vm index 27a02425..f223a925 100644 --- a/zheng-common/src/main/resources/template/generatorConfig.vm +++ b/zheng-common/src/main/resources/template/generatorConfig.vm @@ -60,21 +60,16 @@ + #foreach($table in $tables) - #if($last_insert_id_tables.size() != 0) - #foreach($last_insert_id_table in $last_insert_id_tables.entrySet()) - #if($!last_insert_id_table.key == $!table.table_name) - - -
- #else -
- #end - #end + #if($last_insert_id_tables.containsKey($!table.table_name) == true) + + +
#else
#end #end - \ No newline at end of file +