|
|
@@ -103,6 +103,14 @@ public class BackTrackService {
|
|
|
}
|
|
|
|
|
|
public HttpResult getDeviceChart(String devicesId,String snCode, String parts, String dateStart,String dateEnd,Integer original) {
|
|
|
+ //先查询设备
|
|
|
+ KwsDevice deviceHas = deviceMapper.selectOne(new LambdaQueryWrapper<KwsDevice>()
|
|
|
+ .eq(KwsDevice::getSnCode, snCode));
|
|
|
+ if(!DeviceEnum.ALREADY_REFERRED_TO.getStatus().equals(deviceHas.getStatus())){//已基准
|
|
|
+ List<SlopeData> selectedData = slopeDataMapper.selectLineList(snCode, parts, dateStart, dateEnd);
|
|
|
+ return HttpResult.ok(selectedData);
|
|
|
+ }
|
|
|
+
|
|
|
Map<String, Object> returnData = new HashMap<>();
|
|
|
//在获取设备的要素
|
|
|
List<KwsDeviceReference> references = deviceReferenceMapper.selectList(new LambdaQueryWrapper<KwsDeviceReference>()
|