|
@@ -31,6 +31,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
|
|
|
+import java.text.ParseException;
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -144,6 +146,8 @@ public class TaskController extends BaseController {
|
|
|
private UserMusicService userMusicService;
|
|
private UserMusicService userMusicService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderRepairService musicGroupPaymentCalenderRepairService;
|
|
private MusicGroupPaymentCalenderRepairService musicGroupPaymentCalenderRepairService;
|
|
|
|
|
+
|
|
|
|
|
+ private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
|
|
|
@GetMapping(value = "/initSysMusicCompareDayData")
|
|
@GetMapping(value = "/initSysMusicCompareDayData")
|
|
|
public void initSysMusicCompareDayData(){
|
|
public void initSysMusicCompareDayData(){
|
|
@@ -771,6 +775,17 @@ public class TaskController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/balanceRelation")
|
|
@GetMapping("/balanceRelation")
|
|
|
public void balanceRelation(){
|
|
public void balanceRelation(){
|
|
|
- studentService.balanceRelation();
|
|
|
|
|
|
|
+ Date now = new Date();
|
|
|
|
|
+ studentService.balanceRelation(now);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 平衡关系定时任务
|
|
|
|
|
+ * @throws ParseException
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/updateBalanceRelation")
|
|
|
|
|
+ public void updateBalanceRelation(String dateStr) throws ParseException{
|
|
|
|
|
+
|
|
|
|
|
+ studentService.balanceRelation(sdf.parse(dateStr));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|