|
@ -28,9 +28,11 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
@Transactional
|
|
|
public class CustomerService extends BaseService{
|
|
|
|
|
|
@Autowired
|
|
@ -296,7 +298,7 @@ public class CustomerService extends BaseService{
|
|
|
if(StringUtils.isNotBlank(endDate)){
|
|
|
sql +=" AND r.call_time <='"+endDate+" 23:59:59'";
|
|
|
}
|
|
|
sql += " LIMIT "+(page-1)*size+","+size +" ORDER BY r.call_time DESC";
|
|
|
sql += " ORDER BY r.call_time DESC LIMIT "+(page-1)*size+","+size;
|
|
|
List<Map<String,Object>> rs = jdbcTemplate.queryForList(sql);
|
|
|
|
|
|
return rs;
|