Commit 362d2827b2fc33adc7359cbe978e3c3c2951d8a3
1 parent
f0611848
Exists in
master
and in
2 other branches
remove get page data tenant condition
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
build.gradle
src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java
| ... | ... | @@ -342,7 +342,7 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme |
| 342 | 342 | |
| 343 | 343 | @Override |
| 344 | 344 | public Map<String, Object> findPageBySql(String sqlCondition, int page, int pageSize, Long tenantId){ |
| 345 | - StringBuffer sql = new StringBuffer("SELECT "+this._tableFieldNameListGapWithComma+" FROM "+this.getTableSql()+" WHERE tenant_id=" + tenantId + " and " + sqlCondition ); | |
| 345 | + StringBuffer sql = new StringBuffer("SELECT "+this._tableFieldNameListGapWithComma+" FROM "+this.getTableSql()+" WHERE tenant_id=" + tenantId + " and " + sqlCondition); | |
| 346 | 346 | StringBuffer sqlCount = new StringBuffer("SELECT count(1) rowCount FROM "+this.getTableSql()+" WHERE tenant_id=" + tenantId + " and " + sqlCondition); |
| 347 | 347 | sql.append(" limit ?, ?"); |
| 348 | 348 | List<Object> page_list = new ArrayList<Object>(); |
| ... | ... | @@ -533,8 +533,6 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme |
| 533 | 533 | |
| 534 | 534 | @Override |
| 535 | 535 | public Map<String, Object> getPageData(String selectSql, String fromAndWhereSql, String orderByPartSql, Integer page, Integer pageSize, Long tenantId){ |
| 536 | - fromAndWhereSql = fromAndWhereSql + " and tenant_id="+tenantId; | |
| 537 | - | |
| 538 | 536 | //构造查询语句 |
| 539 | 537 | String querySql = selectSql+" "+fromAndWhereSql+" "+orderByPartSql+" "+UtilsSql.getLimitCondition(page, pageSize); |
| 540 | 538 | ... | ... |