|
@@ -3,6 +3,7 @@ package com.ym.mec.web.controller;
|
|
|
import com.ym.mec.biz.service.TenantAssetsInfoService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -29,7 +30,7 @@ public class TenantAssetsInfoController extends BaseController {
|
|
|
|
|
|
@ApiOperation("手动扣费")
|
|
|
@PostMapping(value = "/manualDeduct")
|
|
|
-// @PreAuthorize("@pcs.hasPermissions('tenantAssetsInfo/manualDeduct')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAssetsInfo/manualDeduct')")
|
|
|
public Object manualDeductAmount(@RequestBody List<Integer> ids) {
|
|
|
tenantAssetsInfoService.manualDeductAmount(ids);
|
|
|
return succeed();
|