|
|
@ -135,12 +135,12 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private boolean savePhenomenon(OperPhenomenonEntity entity) { |
|
|
|
private boolean savePhenomenon(OperPhenomenonEntity entity) { |
|
|
|
String deptId = AuthUtil.getDeptId(); |
|
|
|
String deptId = AuthUtil.getDeptId(); |
|
|
|
if (StringUtils.isNotBlank(deptId)) { |
|
|
|
if (StringUtils.isBlank(deptId)) { |
|
|
|
throw new ServiceException("获取当前用户机构失败!"); |
|
|
|
throw new ServiceException("获取当前用户机构失败!"); |
|
|
|
} |
|
|
|
} |
|
|
|
StationEntity station = new StationEntity(); |
|
|
|
StationEntity station = new StationEntity(); |
|
|
|
station.setRefDept(Long.valueOf(deptId)); |
|
|
|
station.setRefDept(Long.valueOf(deptId)); |
|
|
|
R<StationEntity> stationR = stationClient.getOne(station); |
|
|
|
R<StationEntity> stationR = stationClient.getStationByCodeOrRedDept(station); |
|
|
|
Assert.isTrue(stationR.isSuccess() && ObjectUtil.isNotEmpty(stationR.getData()) && Func.isNotEmpty(stationR.getData().getSignage()), () -> { |
|
|
|
Assert.isTrue(stationR.isSuccess() && ObjectUtil.isNotEmpty(stationR.getData()) && Func.isNotEmpty(stationR.getData().getSignage()), () -> { |
|
|
|
throw new ServiceException("该工作票站点下未获取到两票抬头!"); |
|
|
|
throw new ServiceException("该工作票站点下未获取到两票抬头!"); |
|
|
|
}); |
|
|
|
}); |
|
|
|