Commit 78c5c590 by 杨林龙

1.28.1 开发围栏报警插入

1 parent 9ddfd54a
...@@ -38,10 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -38,10 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Date; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Function; import java.util.function.Function;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -194,7 +191,10 @@ public class ElectricFenceService { ...@@ -194,7 +191,10 @@ public class ElectricFenceService {
ElectricFence fence = new ElectricFence(); ElectricFence fence = new ElectricFence();
BeanUtils.copyProperties(fenceBO, fence); BeanUtils.copyProperties(fenceBO, fence);
// 小程序默认为有线设备 // 小程序默认为有线设备
if (Objects.isNull(fence.getSource())) {
fence.setSource(1); fence.setSource(1);
}
//设置定位信息类型为gps类型 默认都是创建gps类型围栏 //设置定位信息类型为gps类型 默认都是创建gps类型围栏
fence.setLocationType(1); fence.setLocationType(1);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!