|
|
@@ -41,7 +41,7 @@ public class InspectAppPointServiceImpl extends ServiceImpl<InspectAppPointMappe |
|
|
|
@Override |
|
|
|
public Response createAppPoint(InspectAppPointDto inspectAppPointDto) { |
|
|
|
// 巡检任务ID |
|
|
|
if (inspectAppPointDto.getInspectAppId() == null || inspectAppPointDto.getInspectAppId() <= 0) { |
|
|
|
if (inspectAppPointDto.getInspectId() == null || inspectAppPointDto.getInspectId() <= 0) { |
|
|
|
return response.failure("巡检任务ID不能为空"); |
|
|
|
} |
|
|
|
// 经度 |
|
|
@@ -53,7 +53,7 @@ public class InspectAppPointServiceImpl extends ServiceImpl<InspectAppPointMappe |
|
|
|
return response.failure("纬度不能为空"); |
|
|
|
} |
|
|
|
TauvInspectAppPoint entity = new TauvInspectAppPoint(); |
|
|
|
entity.setInspectAppId(inspectAppPointDto.getInspectAppId()); |
|
|
|
entity.setInspectAppId(inspectAppPointDto.getInspectId()); |
|
|
|
entity.setX(inspectAppPointDto.getX()); |
|
|
|
entity.setY(inspectAppPointDto.getY()); |
|
|
|
entity.setLength(inspectAppPointDto.getLength()); |