|
|
@@ -562,14 +562,14 @@ public class AssetService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @Scheduled(cron = "0 0 0/1 * * ?")
|
|
|
- public void offTheShelf() {
|
|
|
- LocalDateTime lastTime = LocalDateTime.now().minusHours(120);
|
|
|
- Set<Long> assetIds = collectionRepo
|
|
|
- .findResaleCollectionPriceOver20K(BigDecimal
|
|
|
- .valueOf(20000L), CollectionSource.TRANSFER, lastTime, true);
|
|
|
- assetIds.forEach(this::cancelConsignmentBySystem);
|
|
|
- }
|
|
|
+// @Scheduled(cron = "0 0 0/1 * * ?")
|
|
|
+// public void offTheShelf() {
|
|
|
+// LocalDateTime lastTime = LocalDateTime.now().minusHours(120);
|
|
|
+// Set<Long> assetIds = collectionRepo
|
|
|
+// .findResaleCollectionPriceOver20K(BigDecimal
|
|
|
+// .valueOf(20000L), CollectionSource.TRANSFER, lastTime, true);
|
|
|
+// assetIds.forEach(this::cancelConsignmentBySystem);
|
|
|
+// }
|
|
|
|
|
|
@Scheduled(cron = "0 0 0/1 * * ?")
|
|
|
public void offTheShelfAll() {
|