浏览代码

更新

master
三只松鼠 4 年前
父节点
当前提交
2ba418d326
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      src/main/java/com/taauav/app/dto/InspectAppPointDto.java
  2. +2
    -2
      src/main/java/com/taauav/app/service/impl/InspectAppPointServiceImpl.java

+ 1
- 1
src/main/java/com/taauav/app/dto/InspectAppPointDto.java 查看文件

@@ -13,7 +13,7 @@ public class InspectAppPointDto {
/**
* 巡检APP任务ID
*/
private Integer inspectAppId;
private Integer inspectId;

/**
* 经度

+ 2
- 2
src/main/java/com/taauav/app/service/impl/InspectAppPointServiceImpl.java 查看文件

@@ -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());

正在加载...
取消
保存