|
|
@@ -5,11 +5,13 @@ import com.tdba.cxb.ares.api.model.BindUserAdd;
|
|
5
|
5
|
import com.tdba.cxb.ares.api.model.OperatorLoginReq;
|
|
6
|
6
|
import com.tdba.cxb.ares.api.model.TDBAResponse;
|
|
7
|
7
|
import com.tdba.cxb.ares.api.service.UserService;
|
|
|
8
|
+import com.tdba.cxb.ares.api.util.DateUtil;
|
|
8
|
9
|
import com.tdba.cxb.ares.api.util.TDBAController;
|
|
9
|
10
|
import org.springframework.validation.annotation.Validated;
|
|
10
|
11
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
11
|
12
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
12
|
13
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
14
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
13
|
15
|
|
|
14
|
16
|
import javax.annotation.Resource;
|
|
15
|
17
|
|
|
|
@@ -30,8 +32,17 @@ public class UserController {
|
|
30
|
32
|
private UserService userService;
|
|
31
|
33
|
|
|
32
|
34
|
@GetMapping("statistics_list")
|
|
33
|
|
- public TDBAResponse statistics_list(){
|
|
34
|
|
- userService.createSpreadInfo(LocalDate.of(2021, 4, 9));
|
|
|
35
|
+ public TDBAResponse statistics_list(@RequestParam("begin") String begin,
|
|
|
36
|
+ @RequestParam("end") String end){
|
|
|
37
|
+
|
|
|
38
|
+ LocalDate beginDate = DateUtil.resolveDateString(begin);
|
|
|
39
|
+ LocalDate endDate = DateUtil.resolveDateString(end);
|
|
|
40
|
+
|
|
|
41
|
+ while(beginDate.isBefore(endDate)){
|
|
|
42
|
+// userService.createSpreadInfo(beginDate);
|
|
|
43
|
+ beginDate = beginDate.plusDays(1);
|
|
|
44
|
+ System.out.println(beginDate);
|
|
|
45
|
+ }
|
|
35
|
46
|
return buildSuccess("");
|
|
36
|
47
|
}
|
|
37
|
48
|
|