|
@@ -34,7 +34,7 @@ public class MintOrderController extends BaseController {
|
|
|
private MintActivityRepo mintActivityRepo;
|
|
private MintActivityRepo mintActivityRepo;
|
|
|
private MintMaterialRepo mintMaterialRepo;
|
|
private MintMaterialRepo mintMaterialRepo;
|
|
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
|
public MintOrder save(@RequestBody MintOrder record) {
|
|
public MintOrder save(@RequestBody MintOrder record) {
|
|
|
if (record.getId() != null) {
|
|
if (record.getId() != null) {
|
|
@@ -76,7 +76,7 @@ public class MintOrderController extends BaseController {
|
|
|
return mintOrder;
|
|
return mintOrder;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@PostMapping("/del/{id}")
|
|
@PostMapping("/del/{id}")
|
|
|
public void del(@PathVariable Long id) {
|
|
public void del(@PathVariable Long id) {
|
|
|
mintOrderRepo.softDelete(id);
|
|
mintOrderRepo.softDelete(id);
|
|
@@ -96,7 +96,7 @@ public class MintOrderController extends BaseController {
|
|
|
return mintOrderService.create(SecurityUtils.getAuthenticatedUser(), assetIds, mintActivityId, addressId);
|
|
return mintOrderService.create(SecurityUtils.getAuthenticatedUser(), assetIds, mintActivityId, addressId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@ApiOperation("导出")
|
|
@ApiOperation("导出")
|
|
|
@PostMapping("/excelPhone")
|
|
@PostMapping("/excelPhone")
|
|
|
public void excelPhone(HttpServletResponse response, @RequestBody PageQuery pageQuery) throws IOException {
|
|
public void excelPhone(HttpServletResponse response, @RequestBody PageQuery pageQuery) throws IOException {
|
|
@@ -104,7 +104,7 @@ public class MintOrderController extends BaseController {
|
|
|
ExcelUtils.export(response, data);
|
|
ExcelUtils.export(response, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@ApiOperation("订单完成")
|
|
@ApiOperation("订单完成")
|
|
|
@GetMapping("/finish/{id}")
|
|
@GetMapping("/finish/{id}")
|
|
|
public void finish(@PathVariable Long id) {
|
|
public void finish(@PathVariable Long id) {
|
|
@@ -125,13 +125,13 @@ public class MintOrderController extends BaseController {
|
|
|
}};
|
|
}};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("hasAnyRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@PostMapping("/pass")
|
|
@PostMapping("/pass")
|
|
|
public void audit(@RequestParam Long id) {
|
|
public void audit(@RequestParam Long id) {
|
|
|
mintOrderService.orderAudit(id, true);
|
|
mintOrderService.orderAudit(id, true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("hasAnyRole('ADMIN')")
|
|
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN','SAAS')")
|
|
|
@PostMapping("/deny")
|
|
@PostMapping("/deny")
|
|
|
public void deny(@RequestParam Long id) {
|
|
public void deny(@RequestParam Long id) {
|
|
|
mintOrderService.orderAudit(id, false);
|
|
mintOrderService.orderAudit(id, false);
|