From 5d33f4766e36d655b0fd430374a757805e8db2a5 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Mon, 21 Sep 2020 10:25:14 +0800
Subject: [PATCH] opration 添加支付的功能

---
 kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm b/kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm
index 8c652d5..3569505 100644
--- a/kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm
+++ b/kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm
@@ -14,8 +14,8 @@
             is_del=0
             #foreach($column in $columns)
             #if($column.columnName != $pk.columnName || $pk.extra != 'auto_increment')
-            <if test="$column.attrname != null and $column.attrname !=''">
-                and  $column.columnName =  #{$column.attrname}
+            <if test="p.$column.attrname != null and p.$column.attrname !=''">
+                and  $column.columnName =  #{p.$column.attrname}
             </if>
             #end
             #end
@@ -28,12 +28,14 @@
         from ${tableName}
         <include refid="where"/>
         order by id desc
+        limit 1
     </select>
 
     <!--定义根据-${className}当作查询条件返回对象集合-->
     <select id="findList" resultType="${package}.${moduleName}.model.${className}">
         select <include refid="Column_List"/>
         from ${tableName}
+        <include refid="where"/>
         order by id desc
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0