mirror of https://gitee.com/makejava/EasyCode.git
修复默认模板存在的BUG
This commit is contained in:
parent
fcbbd5d388
commit
5bca1b3144
File diff suppressed because one or more lines are too long
|
@ -37,7 +37,7 @@ public class $!{tableName} {
|
|||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param actualFlightInfo 筛选条件
|
||||
* @param $!{tool.firstLowerCase($tableInfo.name)} 筛选条件
|
||||
* @param pageRequest 分页对象
|
||||
* @return 查询结果
|
||||
*/
|
||||
|
@ -90,4 +90,4 @@ public class $!{tableName} {
|
|||
return ResponseEntity.ok(this.$!{tool.firstLowerCase($tableInfo.name)}Service.deleteById(id));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,13 @@ $!callback.setSavePath($tool.append($modulePath, "/src/main/resources/mapper"))
|
|||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from $!tableInfo.obj.name
|
||||
<include refid="queryWhere"/>
|
||||
<where>
|
||||
#foreach($column in $tableInfo.fullColumn)
|
||||
<if test="$!column.name != null#if($column.type.equals("java.lang.String")) and $!column.name != ''#end">
|
||||
and $!column.obj.name = #{$!column.name}
|
||||
</if>
|
||||
#end
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
|
|
Loading…
Reference in New Issue