Commit fb3e8a67 by shenjinzhu

1

parent 03179ae3
......@@ -95,7 +95,7 @@ public class DataController {
endTime.add(Calendar.HOUR, 1);
List<EasyNews> newsList = new ArrayList<>();
if(method.equals("type")){
source=request.getParameter("type");
source=(String) map.get("type");
System.out.println(source);
newsList=dataService.findByAccurateType(startd.getTime(), endTime.getTime(), source);
}else{
......@@ -125,11 +125,11 @@ public class DataController {
Channel channel = new Channel();
List<Data> list = new ArrayList<Data>();
if (method.equals("source")) {
String source = request.getParameter("source");
String source = (String) map.get("source");
list = dataService.findBySource(startd.getTime(), endTime.getTime(), source);
channel.setValue(source);
} else {
String tempName = request.getParameter("tempName");
String tempName = (String) map.get("tempName");
list = dataService.findBytempName(startd.getTime(), endTime.getTime(), tempName);
channel.setValue(tempName);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment