|
|
@@ -25,7 +25,7 @@ import java.util.List;
|
|
|
public class MintActivityController extends BaseController {
|
|
|
private MintActivityService mintActivityService;
|
|
|
private MintActivityRepo mintActivityRepo;
|
|
|
- private SysConfigService sysConfigService;
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
|
|
|
@PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@PostMapping("/save")
|
|
|
@@ -75,18 +75,18 @@ public class MintActivityController extends BaseController {
|
|
|
// @Cacheable(cacheNames = "mintActivity", key = "#id")
|
|
|
public MintActivity get(@PathVariable Long id) {
|
|
|
MintActivity mintActivity = mintActivityRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
- String mintCountCollection = sysConfigService.getString("mint_countCollection");
|
|
|
- String regex = ",";
|
|
|
- String[] split = mintCountCollection.split(regex);
|
|
|
- if (Arrays.asList(split).contains(String.valueOf(id))) {
|
|
|
- // Id在split数组中
|
|
|
- return mintActivity;
|
|
|
- } else {
|
|
|
- // Id不在split数组中
|
|
|
+// String mintCountCollection = sysConfigService.getString("mint_countCollection");
|
|
|
+// String regex = ",";
|
|
|
+// String[] split = mintCountCollection.split(regex);
|
|
|
+// if (Arrays.asList(split).contains(String.valueOf(id))) {
|
|
|
+// // Id在split数组中
|
|
|
+// return mintActivity;
|
|
|
+// } else {
|
|
|
+// // Id不在split数组中
|
|
|
mintActivity.setVTotal(mintActivity.getTotal());
|
|
|
mintActivity.setTotal(0);
|
|
|
return mintActivity;
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
@PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|