|
@@ -159,7 +159,7 @@ public class PlanController {
|
|
|
@RequestMapping("/deletePlan")
|
|
|
public HttpRespMsg deletePlan(Integer id){
|
|
|
HttpRespMsg msg=new HttpRespMsg();
|
|
|
- Report one = reportService.getOne(new LambdaQueryWrapper<Report>().eq(id!=null,Report::getPlanId, id));
|
|
|
+ Report one = reportService.getOne(new LambdaQueryWrapper<Report>().eq(id!=null,Report::getPlanId, id).last("LIMIT 1"));
|
|
|
if(one==null){
|
|
|
planService.removeById(id);
|
|
|
return msg;
|