|
|
@@ -6,6 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.thyy.scheduled.service.DpccService;
|
|
|
+import org.thyy.scheduled.utils.AccessTokenUtil;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/dpcc")
|
|
|
@@ -17,6 +18,12 @@ public class DpccController {
|
|
|
this.service = service;
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/refreshToken")
|
|
|
+ public String refreshToken() {
|
|
|
+ service.getToken();
|
|
|
+ return AccessTokenUtil.getInstance().get("dpccToken");
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/uploadMzDataByDate")
|
|
|
public String uploadMzDataByDate(@RequestParam("start") String start,
|
|
|
@RequestParam("end") String end) {
|