Commit 8f0bf58d authored by tangwei's avatar tangwei

Merge branch 'develop_dl_plan6_temp' of…

Merge branch 'develop_dl_plan6_temp' of http://39.98.45.134:8090/moa/amos-boot-biz into develop_dl_plan6_temp
parents 9a411522 6c1b9842
...@@ -23,6 +23,7 @@ import org.springframework.data.domain.PageImpl; ...@@ -23,6 +23,7 @@ import org.springframework.data.domain.PageImpl;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.DeleteMapping;
...@@ -354,9 +355,13 @@ public class PointController extends AbstractBaseController { ...@@ -354,9 +355,13 @@ public class PointController extends AbstractBaseController {
PointClassify pointClassify=iPointClassifyDao.getOne(id); PointClassify pointClassify=iPointClassifyDao.getOne(id);
List<PointClassify> list=iPointClassifyDao.getPointClassifyByPointId(pointClassify.getPointId()); List<PointClassify> list=iPointClassifyDao.getPointClassifyByPointId(pointClassify.getPointId());
List<RoutePointItem> listp=iRoutePointItemDao.getRoutePointItemByPointId(pointClassify.getPointId()); List<RoutePointItem> listp=iRoutePointItemDao.getRoutePointItemByPointId(pointClassify.getPointId());
if(list.size()==1&&listp!=null&&listp.size()>0){ if(list.size()==1&&listp!=null&&listp.size()>0){
return CommonResponseUtil.failure("巡查点已绑定路线,最少保留一个巡查对象!"); return CommonResponseUtil.failure("巡查点已绑定路线,最少保留一个巡查对象!");
} }
if(list.size()==1){
return CommonResponseUtil.failure("巡查点最少保留一个巡查对象!");
}
//删除对象 //删除对象
iPointClassifyDao.deleteById(id); iPointClassifyDao.deleteById(id);
//删除检查项 //删除检查项
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment