提交 437baf0d authored 作者: 李秋林's avatar 李秋林

模糊查询店铺名称时去除首尾空格

上级 9324e64b
...@@ -74,8 +74,8 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao { ...@@ -74,8 +74,8 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao {
LambdaQueryWrapper<QinCeClienteleStoreDO> qw = builderQueryWrapper(storeWrapper); LambdaQueryWrapper<QinCeClienteleStoreDO> qw = builderQueryWrapper(storeWrapper);
// 指定字段查询 // 指定字段查询
qw.select(QinCeClienteleStoreDO::getQcId, qw.select(QinCeClienteleStoreDO::getQcId,
QinCeClienteleStoreDO::getStoreName, QinCeClienteleStoreDO::getStoreName,
QinCeClienteleStoreDO::getStoreAddr) QinCeClienteleStoreDO::getStoreAddr)
.last(" limit 20"); .last(" limit 20");
List<QinCeClienteleStoreDO> qinCeClienteleStoreDOS = qinCeClienteleStoreMapper.selectList(qw); List<QinCeClienteleStoreDO> qinCeClienteleStoreDOS = qinCeClienteleStoreMapper.selectList(qw);
...@@ -109,7 +109,7 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao { ...@@ -109,7 +109,7 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao {
} }
// 按门店名称模糊查询 // 按门店名称模糊查询
if (StringUtils.isNotBlank(storeWrapper.getStoreNameVague())) { if (StringUtils.isNotBlank(storeWrapper.getStoreNameVague())) {
qw.like(QinCeClienteleStoreDO::getStoreName, storeWrapper.getStoreNameVague()); qw.like(QinCeClienteleStoreDO::getStoreName, storeWrapper.getStoreNameVague().trim());
} }
return qw; return qw;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论