mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
!217 fix: 逻辑删除列为 String 类型时查询数据时多加单引号问题。
Merge pull request !217 from 王帅/main
This commit is contained in:
commit
1722ff9227
@ -44,7 +44,7 @@ public class DefaultLogicDeleteProcessor extends AbstractLogicDeleteProcessor {
|
|||||||
public void buildQueryCondition(QueryWrapper queryWrapper, TableInfo tableInfo) {
|
public void buildQueryCondition(QueryWrapper queryWrapper, TableInfo tableInfo) {
|
||||||
queryWrapper.where(QueryCondition.create(tableInfo.getSchema(), tableInfo.getTableName(), tableInfo.getLogicDeleteColumn()
|
queryWrapper.where(QueryCondition.create(tableInfo.getSchema(), tableInfo.getTableName(), tableInfo.getLogicDeleteColumn()
|
||||||
, EQUALS
|
, EQUALS
|
||||||
, prepareValue(getLogicNormalValue())));
|
, getLogicNormalValue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user