forked from kidgrow-microservices-platform

er
2020-04-03 1d87d61cb31912ae9f5856cbfe1d763b27156afe
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
@@ -34,6 +34,7 @@
    <select id="findList" resultType="${package}.${moduleName}.model.${className}">
        select <include refid="Column_List"/>
        from ${tableName}
        <include refid="where"/>
        order by id desc
    </select>
</mapper>