forked from kidgrow-microservices-platform

zhaoxiaohao
2020-04-10 665c0a06d0bca5a22fb42406c465d736f876b04e
kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm
@@ -11,7 +11,7 @@
    <sql id="where">
        <where>
            <!--查询条件自行添加-->
            p.is_del=0
            is_del=0
            #foreach($column in $columns)
            #if($column.columnName != $pk.columnName || $pk.extra != 'auto_increment')
            <if test="p.$column.attrname != null and p.$column.attrname !=''">
@@ -28,6 +28,7 @@
        from ${tableName}
        <include refid="where"/>
        order by id desc
        limit 1
    </select>
    <!--定义根据-${className}当作查询条件返回对象集合-->