Commit 75192120 by carrieyzzhang

retention decode

parent b2af5cb0
...@@ -21,6 +21,8 @@ import org.springframework.web.bind.annotation.RequestMethod; ...@@ -21,6 +21,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -56,6 +58,14 @@ public class RetentionController { ...@@ -56,6 +58,14 @@ public class RetentionController {
String isDeviceStr = request.getParameter("isdevice"); String isDeviceStr = request.getParameter("isdevice");
String retentiontype = request.getParameter("retentiontype"); String retentiontype = request.getParameter("retentiontype");
if (!StringUtil.isEmpty(eventInfo)) {
try {
eventInfo = URLDecoder.decode(eventInfo, "UTF-8");
} catch (UnsupportedEncodingException e) {
}
}
String eventType = request.getParameter("eventType"); String eventType = request.getParameter("eventType");
boolean isProfile=false; boolean isProfile=false;
if(!StringUtils.isEmpty(eventType) && "profile".equals(eventType)){ if(!StringUtils.isEmpty(eventType) && "profile".equals(eventType)){
...@@ -110,6 +120,13 @@ public class RetentionController { ...@@ -110,6 +120,13 @@ public class RetentionController {
String endDate = this.getEndDateByReportView(end, reportView); String endDate = this.getEndDateByReportView(end, reportView);
String eventInfo = request.getParameter("eventinfo"); String eventInfo = request.getParameter("eventinfo");
if (!StringUtil.isEmpty(eventInfo)) {
try {
eventInfo = URLDecoder.decode(eventInfo, "UTF-8");
} catch (UnsupportedEncodingException e) {
}
}
String userGroupStr = request.getParameter("usergroupid"); String userGroupStr = request.getParameter("usergroupid");
String dimensionStr = request.getParameter("dimention"); String dimensionStr = request.getParameter("dimention");
......
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