DeliveryTargetControllerTest.java
2.32 KB
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
50
51
52
53
54
55
package cn.com.glsx.dj.controller;
import org.junit.Test;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
public class DeliveryTargetControllerTest extends BaseControllerTest{
@Test
public void testTargetRangePageRequest() throws Exception{
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(4);
params.add("v", "1.0.0");
params.add("method", "dj.api.analysis.vehicle.delivery.target.range.page");
params.add("pageNum", "10");
params.add("pageSize", "10");
params.add("startDate", "2024-04-15");
params.add("endDate", "2024-04-21");
params.add("reportType", "1");
System.out.println(post(params));
}
@Test
public void testReceptionAnalysis() throws Exception{
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(4);
params.add("v", "1.0.0");
params.add("method", "dj.api.pe.analysis.reception");
params.add("merchantFilter.cycleTime", "2024-05-20");
params.add("merchantFilter.cycleType", "2");
params.add("merchantFilter.sceneType", "0");
params.add("merchantFilter.cycleTime", "2024-05-20");
params.add("pageSize", "10");
params.add("currentPage", "1");
params.add("startTime", "2024-05-20 00:00:00");
params.add("endTime", "2024-05-26 23:59:59");
params.add("sessionId", "703ee688-7ced-4bff-bfd8-bf18445ec321");
System.out.println(post(params));
}
@Test
public void testPageClockInMonthly() throws Exception{
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(4);
params.add("v", "1.0.0");
params.add("method", "dj.api.pe.analysis.clock.in.monthly.page");
params.add("merchantFilter.cycleTime", "2024-04-01");
params.add("merchantFilter.cycleType", "3");
params.add("merchantFilter.sceneType", "0");
params.add("merchantFilter.cycleTime", "2024-05-20");
params.add("pageSize", "10");
params.add("currentPage", "1");
params.add("startTime", "2024-04-01 00:00:00");
params.add("endTime", "2024-04-30 23:59:59");
params.add("sessionId", "07902455-2a46-4948-9d71-b1c59fe3b414");
System.out.println(post(params));
}
}