mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 21:29:02 +08:00
♻️ Refactoring code. mybatis plus 3.x refactor
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user