Browse Source

fix: 修复规则引擎-执行日志Mapstruct转换类型错误

zak 1 year ago
parent
commit
9e48574170

+ 2 - 6
iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/ruleinfo/RuleLogVo.java

@@ -1,6 +1,6 @@
 package cc.iotkit.manager.dto.vo.ruleinfo;
 
-import cc.iotkit.model.rule.RuleInfo;
+import cc.iotkit.model.rule.RuleLog;
 import io.github.linpeilie.annotations.AutoMapper;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
@@ -10,7 +10,7 @@ import java.io.Serializable;
 
 @ApiModel(value = "RuleLogVo")
 @Data
-@AutoMapper(target = RuleInfo.class)
+@AutoMapper(target = RuleLog.class)
 public class RuleLogVo implements Serializable {
     private static final long serialVersionUID = -1L;
 
@@ -18,19 +18,15 @@ public class RuleLogVo implements Serializable {
     private Long time;
 
     @ApiModelProperty(value = "规则id")
-
     private String ruleId;
 
     @ApiModelProperty(value = "状态")
-
     private String state1;
 
     @ApiModelProperty(value = "内容")
-
     private String content;
 
     @ApiModelProperty(value = "是否成功")
-
     private Boolean success;
 
 }