|
@@ -223,7 +223,7 @@ public class BookImplDao implements BookDao {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int queryTotal(String sqlx) {
|
|
public int queryTotal(String sqlx) {
|
|
|
- String sql = "SELECT count(*) FROM`booking` where is_delete=1 "+sqlx;
|
|
|
|
|
|
|
+ String sql = "SELECT count(*) FROM`booking` where 1=1 "+sqlx;
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
return namedParameterJdbcTemplate.queryForInt(sql, sps);
|
|
return namedParameterJdbcTemplate.queryForInt(sql, sps);
|
|
|
}
|
|
}
|