|
|
@@ -8,13 +8,16 @@ import com.github.microservice.types.deviceUse.DeviceType;
|
|
|
import com.github.microservice.types.deviceUse.OnLineState;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
/**
|
|
|
* @author TRX
|
|
|
* @date 2024/5/16
|
|
|
*/
|
|
|
@Data
|
|
|
+@Slf4j
|
|
|
public class DeviceInfoModel extends SuperModel {
|
|
|
|
|
|
@Schema(description = "设备ID")
|
|
|
@@ -29,13 +32,6 @@ public class DeviceInfoModel extends SuperModel {
|
|
|
@Schema(description = "产品名称")
|
|
|
private String productName;
|
|
|
|
|
|
- public String getProductName() {
|
|
|
- if (ObjectUtils.isNotEmpty(iotTemplate)) {
|
|
|
- return iotTemplate.getName();
|
|
|
- }
|
|
|
- return "";
|
|
|
- }
|
|
|
-
|
|
|
@Schema(description = "产品信息")
|
|
|
private IotTemplateSimpleModel iotTemplate;
|
|
|
|