@@ -61,7 +61,11 @@ public interface WxMpMarketingService { | |||||
* @param endDate 结束日期 | * @param endDate 结束日期 | ||||
* @param filtering 过滤条件 | * @param filtering 过滤条件 | ||||
* @param page 页码,获取指定页数据 | * @param page 页码,获取指定页数据 | ||||
* @param page_size 一页获取的数据条数(1-100) | |||||
* @param pageSize 一页获取的数据条数(1-100) | |||||
* @return . | |||||
* @throws WxErrorException . | |||||
* @throws IOException . | |||||
*/ | */ | ||||
WxMpAdLeadResult getAdLeads(Date beginDate, Date endDate, List<WxMpAdLeadFilter> filtering, Integer page, Integer page_size) throws WxErrorException, IOException; | |||||
WxMpAdLeadResult getAdLeads(Date beginDate, Date endDate, List<WxMpAdLeadFilter> filtering, Integer page, Integer pageSize) | |||||
throws WxErrorException, IOException; | |||||
} | } |
@@ -54,7 +54,8 @@ public class WxMpMarketingServiceImpl implements WxMpMarketingService { | |||||
} | } | ||||
@Override | @Override | ||||
public WxMpAdLeadResult getAdLeads(Date beginDate, Date endDate, List<WxMpAdLeadFilter> filtering, Integer page, Integer pageSize) throws WxErrorException, IOException { | |||||
public WxMpAdLeadResult getAdLeads(Date beginDate, Date endDate, List<WxMpAdLeadFilter> filtering, Integer page, Integer pageSize) | |||||
throws WxErrorException, IOException { | |||||
Date today = new Date(); | Date today = new Date(); | ||||
if (beginDate == null) { | if (beginDate == null) { | ||||
beginDate = today; | beginDate = today; | ||||
@@ -68,7 +69,7 @@ public class WxMpMarketingServiceImpl implements WxMpMarketingService { | |||||
dateRange.addProperty("end_date", DateFormatUtils.format(endDate, "yyyy-MM-dd")); | dateRange.addProperty("end_date", DateFormatUtils.format(endDate, "yyyy-MM-dd")); | ||||
params += "&date_range=" + URLEncoder.encode(dateRange.toString(), StandardCharsets.UTF_8.name()); | params += "&date_range=" + URLEncoder.encode(dateRange.toString(), StandardCharsets.UTF_8.name()); | ||||
params += "&page=" + page; | params += "&page=" + page; | ||||
params += "&pageSize=" + pageSize; | |||||
params += "&page_size=" + pageSize; | |||||
if (filtering != null) { | if (filtering != null) { | ||||
JsonArray filterJson = new JsonArray(); | JsonArray filterJson = new JsonArray(); | ||||
for (WxMpAdLeadFilter filter : filtering) { | for (WxMpAdLeadFilter filter : filtering) { | ||||
@@ -25,6 +25,7 @@ public class WxMpUserAction implements Serializable { | |||||
private String url; | private String url; | ||||
private Integer actionTime; | private Integer actionTime; | ||||
private String actionType; | private String actionType; | ||||
private String leadsType; | |||||
private String clickId; | private String clickId; | ||||
private Integer actionParam; | private Integer actionParam; | ||||
@@ -44,6 +45,7 @@ public class WxMpUserAction implements Serializable { | |||||
if (this.actionParam != null) { | if (this.actionParam != null) { | ||||
JsonObject actionParamJson = new JsonObject(); | JsonObject actionParamJson = new JsonObject(); | ||||
actionParamJson.addProperty("value", actionParam); | actionParamJson.addProperty("value", actionParam); | ||||
actionParamJson.addProperty("leads_type", leadsType); | |||||
json.add("action_param", actionParamJson); | json.add("action_param", actionParamJson); | ||||
} | } | ||||