Browse Source

fix:修改模型向量数据属性类型后部分字段为空的问题

zhongwei
luyie 2 months ago
parent
commit
1c0de42ba7
  1. 39
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java

39
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java

@ -8,7 +8,6 @@ import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springblade.core.tool.utils.Func;
/**
* @Author: ypj
@ -164,49 +163,49 @@ public class DeviceModelData {
public static DeviceModelData of(ModelAttrVO data) {
return DeviceModelData.builder()
.modelId(data.getModelId().toString())
.modelId(null != data.getModelId() ? data.getModelId().toString() : null)
.name(data.getName())
.signage(data.getSignage())
.dbType(data.getDbType())
.fieldLength(data.getFieldLength())
.keepFigures(data.getKeepFigures().toString())
.accessRules(data.getAccessRules().toString())
.keepFigures(null != data.getKeepFigures() ? data.getKeepFigures().toString() : null)
.accessRules(null != data.getAccessRules() ? data.getAccessRules().toString() : null)
.descs(data.getDescs())
.modelClassifyId(data.getModelClassifyId().toString())
.modelClassifyId(null != data.getModelClassifyId() ? data.getModelClassifyId().toString() : null)
.type("0").build();
}
public static DeviceModelData of(ModelFuncVO data) {
return DeviceModelData.builder()
.modelId(data.getModelId().toString())
.modelId(null != data.getModelId() ? data.getModelId().toString() : null)
.name(data.getName())
.signage(data.getSignage())
.parameterJson(data.getParameterJson())
.controlStatus(data.getControlStatus().toString())
.controlStatus(null != data.getControlStatus() ? data.getControlStatus().toString() : null)
.parameterTag(data.getParameterTag())
.isPopup(data.getIsPopup().toString())
.isCheck(data.getIsCheck().toString())
.parameterSource(data.getParameterSource().toString())
.isPopup(null != data.getIsPopup() ? data.getIsPopup().toString() : null)
.isCheck(null != data.getIsCheck() ? data.getIsCheck().toString() : null)
.parameterSource(null != data.getParameterSource() ? data.getParameterSource().toString() : null)
.sourceAttrSignage(data.getSourceAttrSignage())
.controlParameter(data.getControlParameter().toString())
.intervalLength(data.getIntervalLength().toString())
.minValue(data.getMinValue().toString())
.maxValue(data.getMaxValue().toString())
.coefficient(data.getCoefficient().toString())
.controlParameter(null != data.getControlParameter() ? data.getControlParameter().toString() : null)
.intervalLength(null != data.getIntervalLength() ? data.getIntervalLength().toString() : null)
.minValue(null != data.getMinValue() ? data.getMinValue().toString() : null)
.maxValue(null != data.getMaxValue() ? data.getMaxValue().toString() : null)
.coefficient(null != data.getCoefficient() ? data.getCoefficient().toString() : null)
.descs(data.getDescs())
.type("1").build();
}
public static DeviceModelData of(ModelEventVO data) {
return DeviceModelData.builder()
.modelId(data.getModelId().toString())
.modelId(null != data.getModelId() ? data.getModelId().toString() : null)
.name(data.getName())
.signage(data.getSignage())
.modelClassifyId(data.getModelClassifyId().toString())
.level(data.getLevel().toString())
.duration(data.getDuration().toString())
.modelClassifyId(null != data.getModelClassifyId() ? data.getModelClassifyId().toString() : null)
.level(null != data.getLevel() ? data.getLevel().toString() : null)
.duration(null != data.getDuration() ? data.getDuration().toString() : null)
.descs(data.getDescs())
.modelClassifyId(data.getModelClassifyId().toString())
.modelClassifyId(null != data.getModelClassifyId() ? data.getModelClassifyId().toString() : null)
.type("2").build();
}
}

Loading…
Cancel
Save