♻️ Refactoring code. mybatis plus 3.x refactor

This commit is contained in:
冷冷 committed 2018-11-23 14:17:33 +08:00
1 parent ff47da2767
commit c981e6137d
77 files changed
+463 -1340

No files matched your search

@@ -32,27 +32,4 @@
#end
#end
</resultMap>
<!--${classname}简单分页查询-->
<select id="get${className}Page" resultMap="${classname}Map">
SELECT
#foreach($column in $columns)
#if($foreach.count==$!{columns.size()})
${column.columnName}
#else
${column.columnName},
#end
#end
FROM ${tableName}
<where>
#foreach($column in $columns)
<if test="${classname}.$column.lowerAttrName != null and ${classname}.${column.lowerAttrName}.trim() != ''">
AND ${column.columnName} = #{${classname}.$column.lowerAttrName}
</if>
#end
</where>
</select>
</mapper>