优化代码生成Mapper.xml.vm 修复查询条件param参数
| | |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | p.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 |
| | |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | public interface ClientMapper extends SuperMapper<Client> { |
| | | List<Client> findList(Page<Client> page, @Param("params") Map<String, Object> params ); |
| | | List<Client> findList(Page<Client> page, @Param("params") Map<String, Object> params); |
| | | } |
| | | |