1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.cy.report.action;
import java.util.HashMap;
import java.util.Map;
import net.sf.json.JSONObject;
import com.cy.report.exception.AppException;
import com.cy.report.service.ServiceFactory;
public class McvmodelAction extends BaseAction {
private String date;
private String channelid;
private String appkey;
public String execute() {
Map<String, String> param = new HashMap<String, String>();
param.put("date", date);
param.put("channelId", channelid);
param.put("appkey", appkey);
Map<String, Number> map = new HashMap<String, Number>();
Map<String, Map<Number, Number>> t = ServiceFactory.getQueryService().resultForWanModel(param);
JSONObject jb = JSONObject.fromObject(t);
//System.out.println(jb.toString());
return SUCCESS;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getChannelid() {
return channelid;
}
public void setChannelid(String channelid) {
this.channelid = channelid;
}
public String getAppkey() {
return appkey;
}
public void setAppkey(String appkey) {
this.appkey = appkey;
}
}