Commits

guoc...@163.com  committed 53db80c

修改模板中的insert方法

  • Participants
  • Parent commits 4d82fbf

Comments (0)

Files changed (1)

File CodeUnion.CodeGenerator/Templates/3.5/ModelDao.xml.vm

 			(
 #foreach ($column in $allColumns)
 #each
+#if ($column.Alias == "CreateTime" || $column.Alias == "LastUpdateTime")
+				GetDate()#between
+#else
 				$qualifier$column.Alias$qualifier#between
+#end
+#between
 ,
 #end
 
 #each
 #if ($column.Alias == "CreateTime" || $column.Alias == "LastUpdateTime")
 				GetDate()#between
-,
 #else
 				$qualifier$column.Alias$qualifier#between
+#end
+#between
 ,
 #end
-#end
 
 			)
 		</insert>