|
|
@@ -45,14 +45,14 @@ public class MintActivityController extends BaseController {
|
|
|
@PostMapping("/save")
|
|
|
public MintActivity save(@RequestBody MintActivity record) {
|
|
|
if (record.getRule() != null) mintActivityService.checkRule(record.getRule());
|
|
|
- List<CreateCollection> createCollections = new ArrayList<>();
|
|
|
- record.getTargetCollectionIds().forEach(collection -> {
|
|
|
- double hour = collection.getDelayHours();
|
|
|
- int minutes = (int) (hour * 60);
|
|
|
- collection.setMinutes(minutes);
|
|
|
- createCollections.add(collection);
|
|
|
- });
|
|
|
- record.setTargetCollectionIds(createCollections);
|
|
|
+// List<CreateCollection> createCollections = new ArrayList<>();
|
|
|
+// record.getTargetCollectionIds().forEach(collection -> {
|
|
|
+// double hour = collection.getDelayHours();
|
|
|
+// int minutes = (int) (hour * 60);
|
|
|
+//// collection.setMinutes(minutes);
|
|
|
+// createCollections.add(collection);
|
|
|
+// });
|
|
|
+// record.setTargetCollectionIds(createCollections);
|
|
|
if (record.getId() != null) {
|
|
|
MintActivity orig = mintActivityRepo.findById(record.getId()).orElseThrow(new BusinessException("无记录"));
|
|
|
orig.setName(record.getName());
|