@@ -40,6 +40,7 @@ public class RiceScheduledTasksConfig {
}
+ // @Scheduled(cron = "0 * * * * ?")
@Scheduled(cron = "0 0 0 * * ?")
public void resetHelpCount() {
List<Rice> riceList = riceRepo.findAll();
@@ -135,6 +135,7 @@ public class RiceInviteController extends BaseController {
rice1.setHelpCount(rice1.getHelpCount() + 1);
+ riceRepo.save(rice1);
if(rice1.getHelpCount()==2){
Long BeforeNumberOfHelpOthers = rice1.getNumberOfHelpOthers();
rice1.setNumberOfHelpOthers(rice1.getNumberOfHelpOthers()+1);