设备弹窗巡检记录接口
This commit is contained in:
@ -12,6 +12,9 @@ import com.fastbee.waterele.domain.MaWatereleRecord;
|
||||
import com.fastbee.waterele.domain.dto.MaGuangaiRecordDto;
|
||||
import com.fastbee.waterele.domain.dto.MaWatereleRecordDto;
|
||||
import com.fastbee.xunjian.domain.XjInspectionRecords;
|
||||
import com.fastbee.xunjian.domain.XjInspectionRoutes;
|
||||
import com.fastbee.xunjian.mapper.XjInspectionRecordsMapper;
|
||||
import com.fastbee.xunjian.mapper.XjInspectionRoutesMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -26,6 +29,10 @@ public class DeviceDetailServiceImpl implements IDeviceDetailService {
|
||||
public IDeviceService iDeviceService;
|
||||
@Autowired
|
||||
private IThingsModelService thingsModelService;
|
||||
@Autowired
|
||||
private XjInspectionRoutesMapper xjInspectionRoutesMapper;
|
||||
@Autowired
|
||||
private XjInspectionRecordsMapper xjInspectionRecordsMapper;
|
||||
public DeviceDetailServiceImpl(DeviceMapper deviceMapper) {
|
||||
this.deviceMapper = deviceMapper;
|
||||
}
|
||||
@ -87,8 +94,20 @@ public class DeviceDetailServiceImpl implements IDeviceDetailService {
|
||||
if (device == null) {
|
||||
throw new RuntimeException("未查到该设备");
|
||||
}
|
||||
List<XjInspectionRecords> xjInspectionRecords = new ArrayList<>();
|
||||
return Collections.emptyList();
|
||||
XjInspectionRoutes xjInspectionRoutes = new XjInspectionRoutes();
|
||||
xjInspectionRoutes.setEngineeringObjectId(deviceId);
|
||||
xjInspectionRoutes.setEngineeringObjectType("1");
|
||||
List<XjInspectionRoutes> xjInspectionRoutes1 = xjInspectionRoutesMapper.selectXjInspectionRoutesList(xjInspectionRoutes);
|
||||
if(xjInspectionRoutes1.size() > 0){
|
||||
List<XjInspectionRecords> xjInspectionRecordsList = new ArrayList<>();
|
||||
XjInspectionRecords xjInspectionRecords = new XjInspectionRecords();
|
||||
xjInspectionRecords.setInspectionRouteId(xjInspectionRoutes1.get(0).getId());
|
||||
xjInspectionRecords.setChaxunBeginTime(queryLogVo.getStartTime());
|
||||
xjInspectionRecords.setChaxunEndTime(queryLogVo.getEndTime());
|
||||
xjInspectionRecordsList = xjInspectionRecordsMapper.selectXjInspectionRecordsList(xjInspectionRecords);
|
||||
return xjInspectionRecordsList;
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user