Showing
1 changed file
with
3 additions
and
0 deletions
@@ -47,6 +47,9 @@ public class DeviceDTO extends TenantDTO { | @@ -47,6 +47,9 @@ public class DeviceDTO extends TenantDTO { | ||
47 | private String tbDeviceId; | 47 | private String tbDeviceId; |
48 | private String deviceTypeId; | 48 | private String deviceTypeId; |
49 | 49 | ||
50 | + @NotEmpty( | ||
51 | + message = "设备编号不能为空", | ||
52 | + groups = {AddGroup.class}) | ||
50 | private String sn; | 53 | private String sn; |
51 | 54 | ||
52 | @NotEmpty( | 55 | @NotEmpty( |