|
@ -395,12 +395,12 @@ public class DemandService {
|
395
|
395
|
public PageQueryResult<Demand> query(@JdbcConn Connection con, @Nullable String state, @Nullable String source,@Nullable String cost, @Nullable String duration, boolean byCreateTime, @Nullable String key, @DefaultValue("1") int pageNo,
|
396
|
396
|
@DefaultValue("5") int pageSize) throws SQLException {
|
397
|
397
|
if(("2").equals(state)){
|
398
|
|
return this.demandDao.pageQueryOrderByModifyTimeDesc(con, state, source, cost, duration, key, pageSize, pageNo);
|
|
398
|
return this.demandDao.pageQueryOrderByModifyTimeDesc(con, state, source, cost, duration, key == null ? null : ("%" + key + "%"), pageSize, pageNo);
|
399
|
399
|
}
|
400
|
400
|
if(byCreateTime){
|
401
|
|
return this.demandDao.pageQueryOrderByCreateTimeDesc(con, state, source, cost, duration, key, pageSize, pageNo);
|
|
401
|
return this.demandDao.pageQueryOrderByCreateTimeDesc(con, state, source, cost, duration, key == null ? null : ("%" + key + "%"), pageSize, pageNo);
|
402
|
402
|
}else{
|
403
|
|
return this.demandDao.pageQueryOrderByInvalidDayAsc(con, state, source, cost, duration, key, pageSize, pageNo);
|
|
403
|
return this.demandDao.pageQueryOrderByInvalidDayAsc(con, state, source, cost, duration, key == null ? null : ("%" + key + "%"), pageSize, pageNo);
|
404
|
404
|
}
|
405
|
405
|
}
|
406
|
406
|
}
|