From ccedf0ab5c9f1be014069a081f0ff70e29edeea7 Mon Sep 17 00:00:00 2001 From: weihongyang <1075331873@qq.com> Date: Thu, 30 Jun 2022 16:28:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=E4=BF=AE=E6=94=B9mapper=20xml?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/mapper.xml.vm | 37 ++----------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/ym-generator/src/main/resources/templates/mapper.xml.vm b/ym-generator/src/main/resources/templates/mapper.xml.vm index b0909e8..49be86c 100644 --- a/ym-generator/src/main/resources/templates/mapper.xml.vm +++ b/ym-generator/src/main/resources/templates/mapper.xml.vm @@ -1,39 +1,10 @@ - -#if(${enableCache}) - - - -#end -#if(${baseResultMap}) - - -#foreach($field in ${table.fields}) -#if(${field.keyFlag})##生成主键排在第一位 - -#end -#end -#foreach($field in ${table.commonFields})##生成公共字段 - -#end -#foreach($field in ${table.fields}) -#if(!${field.keyFlag})##生成普通字段 - -#end -#end + + #foreach($field in ${table.fields}) + + #end -#end -#if(${baseColumnList}) - - -#foreach($field in ${table.commonFields}) - ${field.columnName}, -#end - ${table.fieldNames} - - -#end