|
@@ -24,6 +24,7 @@ import com.sckw.slope.detection.model.dto.HeaderData;
|
|
|
import com.sckw.slope.detection.model.dto.SystemDict;
|
|
import com.sckw.slope.detection.model.dto.SystemDict;
|
|
|
import com.sckw.slope.detection.model.param.IntegrationQuery;
|
|
import com.sckw.slope.detection.model.param.IntegrationQuery;
|
|
|
import com.sckw.slope.detection.model.vo.DeviceIntegrationVo;
|
|
import com.sckw.slope.detection.model.vo.DeviceIntegrationVo;
|
|
|
|
|
+import com.sckw.slope.detection.model.vo.DeviceReferenceVo;
|
|
|
import com.sckw.slope.detection.model.vo.IntegrationVo;
|
|
import com.sckw.slope.detection.model.vo.IntegrationVo;
|
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -97,8 +98,14 @@ public class BackTrackService {
|
|
|
put("code", DictEnum.MODEL_PART.getCodeType());
|
|
put("code", DictEnum.MODEL_PART.getCodeType());
|
|
|
put("type", "1");
|
|
put("type", "1");
|
|
|
}});
|
|
}});
|
|
|
|
|
+ List<DeviceReferenceVo> vo = new ArrayList<>();
|
|
|
|
|
+ //BeanUtils.copyProperties(references, vo);
|
|
|
for (KwsDeviceReference re : references) {
|
|
for (KwsDeviceReference re : references) {
|
|
|
-
|
|
|
|
|
|
|
+ for (SystemDict value : dictList.values()) {
|
|
|
|
|
+ if (re.getItem().equals(value.getValue())) {
|
|
|
|
|
+ re.setUnit(value.getUrl());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return HttpResult.ok(references);
|
|
return HttpResult.ok(references);
|
|
|
}
|
|
}
|
|
@@ -394,8 +401,23 @@ public class BackTrackService {
|
|
|
List<KwsDeviceReference> references = deviceReferenceMapper.selectList(new LambdaQueryWrapper<KwsDeviceReference>()
|
|
List<KwsDeviceReference> references = deviceReferenceMapper.selectList(new LambdaQueryWrapper<KwsDeviceReference>()
|
|
|
.in(KwsDeviceReference::getDeviceId, list)
|
|
.in(KwsDeviceReference::getDeviceId, list)
|
|
|
.eq(KwsDeviceReference::getDelFlag, NumberConstant.ZERO)
|
|
.eq(KwsDeviceReference::getDelFlag, NumberConstant.ZERO)
|
|
|
|
|
+ .groupBy(KwsDeviceReference::getItem)
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+ Map<String, SystemDict> dictList = commonService.getDictList(null, new HashMap<>() {{
|
|
|
|
|
+ put("code", DictEnum.MODEL_PART.getCodeType());
|
|
|
|
|
+ put("type", "1");
|
|
|
|
|
+ }});
|
|
|
|
|
+ List<DeviceReferenceVo> vo = new ArrayList<>();
|
|
|
|
|
+ //BeanUtils.copyProperties(references, vo);
|
|
|
|
|
+ for (KwsDeviceReference re : references) {
|
|
|
|
|
+ for (SystemDict value : dictList.values()) {
|
|
|
|
|
+ if (re.getItem().equals(value.getValue())) {
|
|
|
|
|
+ re.setUnit(value.getUrl());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return HttpResult.ok(references);
|
|
return HttpResult.ok(references);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|