|
@@ -1,20 +1,14 @@
|
|
|
package com.imed.costaccount.web;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
import com.imed.costaccount.common.util.Result;
|
|
|
+import com.imed.costaccount.model.ReportRelation;
|
|
|
import com.imed.costaccount.model.User;
|
|
|
+import com.imed.costaccount.service.ReportRelationService;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import com.imed.costaccount.model.ReportRelation;
|
|
|
-import com.imed.costaccount.service.ReportRelationService;
|
|
|
+import java.util.Arrays;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -72,7 +66,7 @@ public class ReportRelationController {
|
|
|
*/
|
|
|
@RequestMapping("/delete")
|
|
|
public Result delete(@RequestBody Long[] ids){
|
|
|
- reportRelationService.removeByIds(Arrays.asList(ids));
|
|
|
+ reportRelationService.deleteByIds(Arrays.asList(ids));
|
|
|
return Result.ok();
|
|
|
}
|
|
|
|