修复默认模板存在的BUG

This commit is contained in:
makejava 2021-08-17 16:39:43 +08:00
parent fcbbd5d388
commit 5bca1b3144
3 changed files with 10 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@ public class $!{tableName} {
/** /**
* 分页查询 * 分页查询
* *
* @param actualFlightInfo 筛选条件 * @param $!{tool.firstLowerCase($tableInfo.name)} 筛选条件
* @param pageRequest 分页对象 * @param pageRequest 分页对象
* @return 查询结果 * @return 查询结果
*/ */
@ -90,4 +90,4 @@ public class $!{tableName} {
return ResponseEntity.ok(this.$!{tool.firstLowerCase($tableInfo.name)}Service.deleteById(id)); return ResponseEntity.ok(this.$!{tool.firstLowerCase($tableInfo.name)}Service.deleteById(id));
} }
} }

View File

@ -49,7 +49,13 @@ $!callback.setSavePath($tool.append($modulePath, "/src/main/resources/mapper"))
<select id="count" resultType="java.lang.Long"> <select id="count" resultType="java.lang.Long">
select count(1) select count(1)
from $!tableInfo.obj.name 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> </select>
<!--新增所有列--> <!--新增所有列-->