public class SelectIncludeLogicDeleteMapperTemplate extends AbstractMapperTemplate
xmlLanguageDriver| Constructor and Description |
|---|
SelectIncludeLogicDeleteMapperTemplate() |
| Modifier and Type | Method and Description |
|---|---|
String |
selectByPrimaryKeyIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectCountIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectCountIncludeLogicDelete2(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectListByPrimaryKeyIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,生成 select 语句。
|
String |
selectListIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectListWithPrimaryKeyIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,生成 select 语句。
|
String |
selectOneIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectPageIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectPageIncludeLogicDelete2(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
String |
selectWithPrimaryKeyIncludeLogicDelete(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms)
查询记录,不会过滤掉已经被标记为逻辑删除(
Column.logicDelete())的数据,生成 select 语句。 |
dynamicSql, getNodeContent, getWhereExtraConditionpublic SelectIncludeLogicDeleteMapperTemplate()
public String selectOneIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
<if test="id != null">
and id = #{id}
</if>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectOneIncludeLogicDeleteMapper.selectOneIncludeLogicDelete(Object)public String selectListIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
<if test="id != null">
and id = #{id}
</if>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectListIncludeLogicDeleteMapper.selectListIncludeLogicDelete(Object)public String selectCountIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT COUNT(1) FROM table_name
<where>
<if test="id != null">
and id = #{id}
</if>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectCountIncludeLogicDeleteMapper.selectCountIncludeLogicDelete(Object)public String selectCountIncludeLogicDelete2(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT COUNT(1) FROM table_name
<where>
<if test="condition != null">
<if test="condition.id != null">
and id = #{condition.id}
</if>
</if>
<if test="extraCondition != null">
<include refid="Where_Extra_Condition" />
</if>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectCountIncludeLogicDeleteMapper.selectCountIncludeLogicDelete2(Object,
java.util.Map)public String selectPageIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
<if test="id != null">
and id = #{id}
</if>
</where>
<if test="orders != null and orders.size > 0">
order by
<foreach collection="orders" item="item" separator=",">
${item.property} ${item.direction}
</foreach>
</if>
limit #{offset}, #{pageSize}
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectPageIncludeLogicDeleteMapper.selectPageIncludeLogicDelete(Object,
int, int, List)public String selectPageIncludeLogicDelete2(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
<if test="condition.id != null">
and id = #{condition.id}
</if>
and is_deleted = 'N'
<if test="extraCondition != null">
<include refid="Where_Extra_Condition" />
</if>
</where>
<if test="orders != null and orders.size > 0">
order by
<foreach collection="orders" item="item" separator=",">
${item.property} ${item.direction}
</foreach>
</if>
limit #{offset}, #{pageSize}
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectPageIncludeLogicDeleteMapper.selectPageIncludeLogicDelete2(Object,
Map, int, int, List)public String selectByPrimaryKeyIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
AND id = #{id}
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectByPrimaryKeyIncludeLogicDeleteMapper.selectByPrimaryKeyIncludeLogicDelete(Serializable)public String selectWithPrimaryKeyIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
Column.logicDelete())的数据,生成 select 语句。
示例如下:
SELECT id,... FROM table_name
<where>
AND id = #{id}
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectByPrimaryKeyIncludeLogicDeleteMapper.selectWithPrimaryKeyIncludeLogicDelete(Object)public String selectListByPrimaryKeyIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
示例如下:
SELECT id,... FROM table_name
<where>
AND id in
<foreach collection="ids" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectByPrimaryKeyIncludeLogicDeleteMapper.selectListByPrimaryKeyIncludeLogicDelete(Collection)public String selectListWithPrimaryKeyIncludeLogicDelete(TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms)
示例如下:
SELECT id,... FROM table_name
<where>
AND id in
<foreach collection="ids" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</where>
tableInfo - 数据库表结构信息ms - sql语句节点信息,会将生成的sql语句替换掉原有的 MappedStatement.sqlSourceSelectByPrimaryKeyIncludeLogicDeleteMapper.selectListWithPrimaryKeyIncludeLogicDelete(Collection)Copyright © 2018–2020. All rights reserved.