xiongzhu 4 years ago
parent
commit
d920aba403
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/com/izouma/nineth/service/CollectionService.java

+ 1 - 0
src/main/java/com/izouma/nineth/service/CollectionService.java

@@ -210,6 +210,7 @@ public class CollectionService {
     public void scheduleOnShelf() {
         List<Collection> collections = collectionRepo.findByScheduleSaleTrueAndOnShelfFalseAndStartTimeBeforeAndDelFalse(LocalDateTime.now());
         for (Collection collection : collections) {
+            collection.setScheduleSale(false);
             collection.setOnShelf(true);
             collection.setSalable(true);
         }