Commit 5c162378 authored by hongguangwu's avatar hongguangwu

优化查询条件

parent f1799758
...@@ -167,6 +167,9 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -167,6 +167,9 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
wrapper.in(TSalaryEmployee::getId, idList); wrapper.in(TSalaryEmployee::getId, idList);
} }
if (Common.isNotNull(searchVo.getAuthSql())) { if (Common.isNotNull(searchVo.getAuthSql())) {
if (Common.isNotNull(searchVo.getAuthSql()) && searchVo.getAuthSql().contains("a.")) {
searchVo.setAuthSql(searchVo.getAuthSql().replace("a.", " "));
}
wrapper.last(searchVo.getAuthSql()); wrapper.last(searchVo.getAuthSql());
} }
return baseMapper.selectCount(wrapper); return baseMapper.selectCount(wrapper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment