|
|
@@ -21,53 +21,46 @@ public class RiceScheduledTasksConfig {
|
|
|
@Autowired
|
|
|
private RiceInviteRepo riceInviteRepo;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+// //@Scheduled(cron = "0 * * * * ?")
|
|
|
+// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+// public void resetExchangeCount() {
|
|
|
+// List<Rice> riceList = riceRepo.findAll();
|
|
|
+// for (Rice rice : riceList) {
|
|
|
+// rice.setExchangeCount(0);
|
|
|
+// }
|
|
|
+// riceRepo.saveAll(riceList);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
-// public void InviteExchangeCount() {
|
|
|
+// public void resetInviteCount() {
|
|
|
// List<Rice> riceList = riceRepo.findAll();
|
|
|
// for (Rice rice : riceList) {
|
|
|
// rice.setInviteCount(0);
|
|
|
// }
|
|
|
// riceRepo.saveAll(riceList);
|
|
|
// }
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
- public void resetExchangeCount() {
|
|
|
- List<Rice> riceList = riceRepo.findAll();
|
|
|
- for (Rice rice : riceList) {
|
|
|
- rice.setExchangeCount(0);
|
|
|
- }
|
|
|
- riceRepo.saveAll(riceList);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
- public void resetInviteCount() {
|
|
|
- List<Rice> riceList = riceRepo.findAll();
|
|
|
- for (Rice rice : riceList) {
|
|
|
- rice.setInviteCount(0);
|
|
|
- }
|
|
|
- riceRepo.saveAll(riceList);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- // @Scheduled(cron = "0 * * * * ?")
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
- public void resetHelpCount() {
|
|
|
- List<Rice> riceList = riceRepo.findAll();
|
|
|
- for (Rice rice : riceList) {
|
|
|
- rice.setHelpCount(0L);
|
|
|
- }
|
|
|
- riceRepo.saveAll(riceList);
|
|
|
- }
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
- public void resetEarnPointsEveryDay() {
|
|
|
- List<Rice> riceList = riceRepo.findAll();
|
|
|
- for (Rice rice : riceList) {
|
|
|
- rice.setEarnPointsEveryDay(0L);
|
|
|
- }
|
|
|
- riceRepo.saveAll(riceList);
|
|
|
- }
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+// public void resetHelpCount() {
|
|
|
+// List<Rice> riceList = riceRepo.findAll();
|
|
|
+// for (Rice rice : riceList) {
|
|
|
+// rice.setHelpCount(0L);
|
|
|
+// }
|
|
|
+// riceRepo.saveAll(riceList);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+// public void resetEarnPointsEveryDay() {
|
|
|
+// List<Rice> riceList = riceRepo.findAll();
|
|
|
+// for (Rice rice : riceList) {
|
|
|
+// rice.setEarnPointsEveryDay(0L);
|
|
|
+// }
|
|
|
+// riceRepo.saveAll(riceList);
|
|
|
+// }
|
|
|
|
|
|
}
|