提交 f363389c 作者: 方治民

fix: 删除一些无用的引用

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