From 863f50cde2162da3e18ed7d18ee6b425a9a00cf3 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 24 Jul 2018 10:01:39 +0800 Subject: [PATCH] format --- .../resources/templates/vm/xml/Mapper.xml.vm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/main/resources/templates/vm/xml/Mapper.xml.vm b/src/main/resources/templates/vm/xml/Mapper.xml.vm index f82e7cbc..c8a6d0be 100644 --- a/src/main/resources/templates/vm/xml/Mapper.xml.vm +++ b/src/main/resources/templates/vm/xml/Mapper.xml.vm @@ -49,19 +49,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update ${tableName} - #foreach($column in $columns) - #if($column.columnName != $primaryKey.columnName) - - $column.columnName = #{$column.attrname}, - - #end - #end +#foreach($column in $columns) +#if($column.columnName != $primaryKey.columnName) + $column.columnName = #{$column.attrname}, +#end +#end - where ${primaryKey.columnName} = #{${primaryKey.attrname}} + where ${primaryKey.columnName} = #{${primaryKey.attrname}} - - delete from ${tableName} where ${primaryKey.columnName} = #{${primaryKey.attrname}}