|
|
@ -101,6 +101,9 @@ public class WorkOrderInfoServiceImpl implements IWorkOrderInfoService { |
|
|
|
@Resource |
|
|
|
private IContractInfoService contractInfoService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private PointInfoMapper pointInfoMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询工单信息 |
|
|
|
* |
|
|
@ -143,6 +146,17 @@ public class WorkOrderInfoServiceImpl implements IWorkOrderInfoService { |
|
|
|
workOrderInfoVo.setOrderTakingCost(overTimeCost.getOrderTakingCost()); |
|
|
|
workOrderInfoVo.setIsHandleOverTime(overTimeCost .getIsHandleOverTime()); |
|
|
|
workOrderInfoVo.setIsOrderTakingOverTime(overTimeCost.getIsOrderTakingOverTime()); |
|
|
|
|
|
|
|
//
|
|
|
|
String pointName = workOrderInfoVo.getFaultLocation(); |
|
|
|
LambdaQueryWrapper<PointInfo> qw = new LambdaQueryWrapper<>(); |
|
|
|
qw.eq(PointInfo::getPointName, pointName); |
|
|
|
qw.last("LIMIT 1"); |
|
|
|
PointInfo pointInfo = pointInfoMapper.selectOne(qw); |
|
|
|
if (pointInfo != null){ |
|
|
|
workOrderInfoVo.setLongitude(pointInfo.getLongitude()); |
|
|
|
workOrderInfoVo.setLatitude(pointInfo.getLatitude()); |
|
|
|
} |
|
|
|
return workOrderInfoVo; |
|
|
|
} |
|
|
|
|
|
|
|