|
|
@@ -1,98 +0,0 @@
|
|
|
-package com.platform.response.deviceGroup;
|
|
|
-
|
|
|
-import com.platform.entity.IotDeviceGroup;
|
|
|
-import lombok.Data;
|
|
|
-
|
|
|
-import java.io.Serial;
|
|
|
-import java.io.Serializable;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @author PC
|
|
|
- */
|
|
|
-@Data
|
|
|
-public class DeviceGroupDetailResp implements Serializable {
|
|
|
-
|
|
|
-
|
|
|
- @Serial
|
|
|
- private static final long serialVersionUID = -3891584296778137376L;
|
|
|
- /**
|
|
|
- * 主键ID
|
|
|
- */
|
|
|
- private Long id;
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备分组码值
|
|
|
- */
|
|
|
- private String deviceGroupCode;
|
|
|
-
|
|
|
- /**
|
|
|
- * 租户id
|
|
|
- */
|
|
|
- private String tenantId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 所属客户id
|
|
|
- */
|
|
|
-
|
|
|
- private Long companyId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 设备分组名称
|
|
|
- */
|
|
|
-
|
|
|
- private String title;
|
|
|
-
|
|
|
- /**
|
|
|
- * [有点晕?]1-12(车辆、装载机、矿卡、人员、水表、电表、边坡监控、视频监控、皮带称重、环境监测、无人地磅、排放监测)
|
|
|
- */
|
|
|
- private Integer largeType;
|
|
|
-
|
|
|
- /**
|
|
|
- * 0-未删除,1-删除
|
|
|
- */
|
|
|
- private Integer delFlag;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- private String createTime;
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新时间
|
|
|
- */
|
|
|
-
|
|
|
- private String updateTime;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建人
|
|
|
- */
|
|
|
- private String createUser;
|
|
|
-
|
|
|
- /**
|
|
|
- * 更新人
|
|
|
- */
|
|
|
- private String updateUser;
|
|
|
-
|
|
|
- public static DeviceGroupDetailResp getInstance(){
|
|
|
- return new DeviceGroupDetailResp();
|
|
|
- }
|
|
|
-
|
|
|
- public static DeviceGroupDetailResp toDeviceGroupDetailResp(IotDeviceGroup iotDeviceGroup) {
|
|
|
- DeviceGroupDetailResp instance = DeviceGroupDetailResp.getInstance();
|
|
|
- instance.setId(iotDeviceGroup.getId());
|
|
|
- instance.setDeviceGroupCode(iotDeviceGroup.getDeviceGroupCode());
|
|
|
- instance.setTenantId(iotDeviceGroup.getTenantId());
|
|
|
- instance.setCompanyId(iotDeviceGroup.getCompanyId());
|
|
|
- instance.setTitle(iotDeviceGroup.getTitle());
|
|
|
- instance.setLargeType(iotDeviceGroup.getLargeType());
|
|
|
- instance.setDelFlag(iotDeviceGroup.getDelFlag());
|
|
|
- instance.setCreateTime("");
|
|
|
- instance.setUpdateTime("");
|
|
|
- instance.setCreateUser(iotDeviceGroup.getCreateUser());
|
|
|
- instance.setUpdateUser(iotDeviceGroup.getUpdateUser());
|
|
|
- return instance;
|
|
|
- }
|
|
|
-}
|