提交 f363389c 作者: 方治民

fix: 删除一些无用的引用

上级 c216be5e
/* (C) 2022 YiRing, Inc. */ /* (C) 2022 YiRing, Inc. */
package com.yiring.app.domain.location; package com.yiring.app.domain.location;
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
import com.yiring.app.domain.alarm.AlarmType; import com.yiring.app.domain.alarm.AlarmType;
import com.yiring.auth.domain.user.User; import com.yiring.auth.domain.user.User;
import com.yiring.common.domain.BasicEntity; import com.yiring.common.domain.BasicEntity;
...@@ -13,7 +12,6 @@ import lombok.*; ...@@ -13,7 +12,6 @@ import lombok.*;
import lombok.experimental.FieldDefaults; import lombok.experimental.FieldDefaults;
import lombok.experimental.FieldNameConstants; import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.Comment; import org.hibernate.annotations.Comment;
import org.hibernate.annotations.TypeDef;
import org.locationtech.jts.geom.Point; import org.locationtech.jts.geom.Point;
/** /**
...@@ -33,7 +31,6 @@ import org.locationtech.jts.geom.Point; ...@@ -33,7 +31,6 @@ import org.locationtech.jts.geom.Point;
@FieldNameConstants @FieldNameConstants
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
@Entity @Entity
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
@Table(name = "BS_LOCATION_FENCE_ALARM") @Table(name = "BS_LOCATION_FENCE_ALARM")
@Comment("围栏报警记录") @Comment("围栏报警记录")
public class LocationFenceAlarm extends BasicEntity implements Serializable { public class LocationFenceAlarm extends BasicEntity implements Serializable {
...@@ -80,7 +77,7 @@ public class LocationFenceAlarm extends BasicEntity implements Serializable { ...@@ -80,7 +77,7 @@ public class LocationFenceAlarm extends BasicEntity implements Serializable {
@SuppressWarnings({ "unused" }) @SuppressWarnings({ "unused" })
public enum Status { public enum Status {
ING("进行中"), ING("进行中"),
STOP("停止"); OVER("结束");
final String text; final String text;
......
...@@ -55,9 +55,6 @@ public class PositionMessageServiceImpl implements PositionMessageService { ...@@ -55,9 +55,6 @@ public class PositionMessageServiceImpl implements PositionMessageService {
DistrictRepository districtRepository; DistrictRepository districtRepository;
@Resource @Resource
LocationFenceAlarmRepository locationFenceAlarmRepository;
@Resource
LocationTurnoverRepository locationTurnoverRepository; LocationTurnoverRepository locationTurnoverRepository;
@Resource @Resource
...@@ -259,6 +256,7 @@ public class PositionMessageServiceImpl implements PositionMessageService { ...@@ -259,6 +256,7 @@ public class PositionMessageServiceImpl implements PositionMessageService {
.sourceId(district.getId()) .sourceId(district.getId())
.tag(id.getTag()) .tag(id.getTag())
.time(id.getTime()) .time(id.getTime())
.isLatest(true)
.build(); .build();
turnovers.add(turnover); turnovers.add(turnover);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论