!217 fix: 逻辑删除列为 String 类型时查询数据时多加单引号问题。

Merge pull request !217 from 王帅/main
This commit is contained in:
Michael Yang 2023-07-30 13:03:00 +00:00 committed by Gitee
commit 1722ff9227
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -44,7 +44,7 @@ public class DefaultLogicDeleteProcessor extends AbstractLogicDeleteProcessor {
public void buildQueryCondition(QueryWrapper queryWrapper, TableInfo tableInfo) {
queryWrapper.where(QueryCondition.create(tableInfo.getSchema(), tableInfo.getTableName(), tableInfo.getLogicDeleteColumn()
, EQUALS
, prepareValue(getLogicNormalValue())));
, getLogicNormalValue()));
}
@Override