|
@ -52,7 +52,7 @@ public class WorkbenchController { |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("getCard") |
|
|
@PostMapping("getCard") |
|
|
public ResponseEntity<WorkbenchCard> card1(@RequestBody WorkbenchCard workbench, |
|
|
public ResponseEntity<WorkbenchCard> card1(@RequestBody WorkbenchCard workbench, |
|
|
@AuthenticationPrincipal Admin admin) { |
|
|
|
|
|
|
|
|
@AuthenticationPrincipal Admin admin) throws Exception{ |
|
|
if (admin != null) { |
|
|
if (admin != null) { |
|
|
String account = admin.getAccount(); |
|
|
String account = admin.getAccount(); |
|
|
List<String> markets = generalService.getRoleMarket(account); |
|
|
List<String> markets = generalService.getRoleMarket(account); |
|
@ -73,12 +73,12 @@ public class WorkbenchController { |
|
|
/* |
|
|
/* |
|
|
更新统计表并获取卡片数据 |
|
|
更新统计表并获取卡片数据 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("updateCard") |
|
|
|
|
|
|
|
|
/*@PostMapping("updateCard") |
|
|
public ResponseEntity<WorkbenchCard> updateCard(@RequestBody WorkbenchCard workbench){ |
|
|
public ResponseEntity<WorkbenchCard> updateCard(@RequestBody WorkbenchCard workbench){ |
|
|
statisticsService.runHourlyTaskPart1(); //更新余量数据 |
|
|
statisticsService.runHourlyTaskPart1(); //更新余量数据 |
|
|
statisticsService.runHourlyTaskPart2(); //更新余量外数据 |
|
|
statisticsService.runHourlyTaskPart2(); //更新余量外数据 |
|
|
|
|
|
|
|
|
WorkbenchCard result =workbenchService.getCard(workbench.getMarkets()); //获取卡片数据 |
|
|
WorkbenchCard result =workbenchService.getCard(workbench.getMarkets()); //获取卡片数据 |
|
|
return ResponseEntity.ok(result); |
|
|
return ResponseEntity.ok(result); |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
} |
|
|
} |