|
|
|
@ -203,7 +203,16 @@ public class AchievementManagementController implements AchievementManagementApi |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@PostMapping("/deleteReport") |
|
|
|
|
public R deleteReport(@RequestParam Integer reportId, @RequestParam Integer recordId) { |
|
|
|
|
public R deleteReport(@RequestParam List<Integer> reportId, @RequestParam List<Integer> recordId) { |
|
|
|
|
if (reportId == null || reportId.size() == 0){ |
|
|
|
|
return R.error(400,"参数错误!"); |
|
|
|
|
} |
|
|
|
|
if (recordId == null || recordId.size() == 0){ |
|
|
|
|
return R.error(400,"参数错误!"); |
|
|
|
|
} |
|
|
|
|
if (reportId.size() != recordId.size()){ |
|
|
|
|
return R.error(400,"参数错误!"); |
|
|
|
|
} |
|
|
|
|
R result = service.deleteReport(reportId, recordId); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|