|
@ -27,7 +27,7 @@ public class PayLogService extends BaseJpaService<PayLog,PayLogDao> {
|
|
|
@Autowired
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
public Page<PayLog> searchList(String params, String startDate, String endDate, Integer page, Integer pageSize) throws Exception{
|
|
|
public Page<PayLog> searchList(String params, String startDate, String endDate, String status, Integer page, Integer pageSize) throws Exception{
|
|
|
List<PayLog> payLogList = new ArrayList<>();
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
if(page == null){
|
|
@ -49,7 +49,9 @@ public class PayLogService extends BaseJpaService<PayLog,PayLogDao> {
|
|
|
if(!StringUtils.isEmpty(endDate)){
|
|
|
filters.append("and create_time < '"+endDate+"' ");
|
|
|
}
|
|
|
|
|
|
if(!StringUtils.isEmpty(status)){
|
|
|
filters.append("and status = '"+status+"' ");
|
|
|
}
|
|
|
payLogList = jdbcTemplate.query(sql+filters.toString()+" order by p.create_time desc"+" limit "+(page-1)*pageSize+","+pageSize, new BeanPropertyRowMapper<>(PayLog.class));
|
|
|
if(payLogList.size()<=0){
|
|
|
return new PageImpl<PayLog>(new ArrayList<>(), pageRequest, 0);
|