diff --git a/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs b/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs
index a9b18c5c..1401fe1f 100644
--- a/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs
+++ b/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs
@@ -7,20 +7,20 @@ namespace Dlhis.Entity.Device.Entities;
///
/// 设备与电子围栏关系表
///
-[SugarTable("ElectronicFenceDeviceRelationEntity")]
-[SugarIndex("idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode", new[] { nameof(DeviceCode), nameof(EFenceCode) }, new[] { OrderByType.Asc, OrderByType.Asc }, false)]
+[SugarTable("ElectronicFenceDeviceRelation")]
public class EFenceDeviceRelationEntity : SugarBaseEntity, ISoftDeleted
{
///
/// 设备ID
///
- [SugarColumn(IsNullable = false)]
+ [SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode" })]
public Guid DeviceCode { get; set; }
///
/// 电子围栏ID
///
- [SugarColumn(IsNullable = false)]
+ [SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode" })]
+
public Guid EFenceCode { get; set; }
public bool IsDeleted { get; set; }