Merge remote-tracking branch 'origin/dev-V0.4.5' into dev-V0.4.5
commit
d802d68aaa
|
@ -2524,7 +2524,7 @@
|
||||||
"isFrame": "1",
|
"isFrame": "1",
|
||||||
"menuName": "设备列表",
|
"menuName": "设备列表",
|
||||||
"menuType": "C",
|
"menuType": "C",
|
||||||
"orderNum": 4,
|
"orderNum": 3,
|
||||||
"parentId": 2200,
|
"parentId": 2200,
|
||||||
"path": "devices",
|
"path": "devices",
|
||||||
"perms": null,
|
"perms": null,
|
||||||
|
@ -2546,7 +2546,7 @@
|
||||||
"isFrame": "1",
|
"isFrame": "1",
|
||||||
"menuName": "虚拟设备",
|
"menuName": "虚拟设备",
|
||||||
"menuType": "C",
|
"menuType": "C",
|
||||||
"orderNum": 5,
|
"orderNum": 4,
|
||||||
"parentId": 2200,
|
"parentId": 2200,
|
||||||
"path": "virtualDevices",
|
"path": "virtualDevices",
|
||||||
"perms": null,
|
"perms": null,
|
||||||
|
|
|
@ -1,28 +1,22 @@
|
||||||
package cc.iotkit.manager.dto.vo.thingmodel;
|
package cc.iotkit.manager.dto.vo.thingmodel;
|
||||||
|
|
||||||
import cc.iotkit.model.product.ThingModel;
|
import cc.iotkit.model.product.ThingModel;
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.github.linpeilie.annotations.AutoMapper;
|
||||||
import io.github.linpeilie.annotations.AutoMapping;
|
import io.github.linpeilie.annotations.AutoMapping;
|
||||||
import io.github.linpeilie.annotations.ReverseAutoMapping;
|
import io.github.linpeilie.annotations.ReverseAutoMapping;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
|
||||||
|
|
||||||
|
|
||||||
@ApiModel(value = "ThingModelVo")
|
@ApiModel(value = "ThingModelVo")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@AutoMapper(target = ThingModel.class)
|
@AutoMapper(target = ThingModel.class)
|
||||||
|
|
||||||
public class ThingModelVo implements Serializable {
|
public class ThingModelVo implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -1L;
|
private static final long serialVersionUID = -1L;
|
||||||
|
@ -33,9 +27,7 @@ public class ThingModelVo implements Serializable {
|
||||||
|
|
||||||
@ApiModelProperty(value = "模型内容")
|
@ApiModelProperty(value = "模型内容")
|
||||||
@ExcelProperty(value = "模型内容")
|
@ExcelProperty(value = "模型内容")
|
||||||
@AutoMapping(ignore = true)
|
private ThingModel.Model model;
|
||||||
@ReverseAutoMapping(ignore = true)
|
|
||||||
private String model;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "产品key")
|
@ApiModelProperty(value = "产品key")
|
||||||
@ExcelProperty(value = "产品key")
|
@ExcelProperty(value = "产品key")
|
||||||
|
|
|
@ -103,7 +103,6 @@ public class ProductServiceImpl implements IProductService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ThingModelVo getThingModelByProductKey(String productKey) {
|
public ThingModelVo getThingModelByProductKey(String productKey) {
|
||||||
|
|
||||||
ThingModel thingModel = thingModelData.findByProductKey(productKey);
|
ThingModel thingModel = thingModelData.findByProductKey(productKey);
|
||||||
return MapstructUtils.convert(thingModel, ThingModelVo.class);
|
return MapstructUtils.convert(thingModel, ThingModelVo.class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue