|
@@ -118,8 +118,7 @@ public class QykhPlanServiceImpl implements QykhPlanService {
|
|
|
"bannerurl," +
|
|
|
"seoid, " +
|
|
|
"ord ");
|
|
|
- StringBuffer countSql = new StringBuffer("select count(*) ");
|
|
|
- StringBuffer sql = new StringBuffer(" from " + info_table_name + " where 1 = 1 ");
|
|
|
+ StringBuffer sql = new StringBuffer(" from " + info_table_name + " where 1 = 1 ");
|
|
|
if (StringUtils.isNotBlank(guaranteeInfoDTO.getPlanname())) {
|
|
|
sql.append("and planname like '%" + guaranteeInfoDTO.getPlanname() + "%' ");
|
|
|
}
|
|
@@ -128,9 +127,8 @@ public class QykhPlanServiceImpl implements QykhPlanService {
|
|
|
conn = qykhDataSource.getConnection();
|
|
|
stmt = conn.createStatement();
|
|
|
// 获取总条数
|
|
|
- rs = stmt.executeQuery(countSql.append(sql).toString());
|
|
|
- rs.next();
|
|
|
- rs = stmt.executeQuery(querySql.append(sql).toString());
|
|
|
+ log.info("sql: " + querySql.append(sql));
|
|
|
+ rs = stmt.executeQuery(querySql.toString());
|
|
|
// 封装数据
|
|
|
List<PlanVO> list = packageInfo(rs);
|
|
|
rs.close();
|