|
|
|
@ -135,12 +135,12 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper
|
|
|
|
|
*/ |
|
|
|
|
private boolean savePhenomenon(OperPhenomenonEntity entity) { |
|
|
|
|
String deptId = AuthUtil.getDeptId(); |
|
|
|
|
if (StringUtils.isNotBlank(deptId)) { |
|
|
|
|
if (StringUtils.isBlank(deptId)) { |
|
|
|
|
throw new ServiceException("获取当前用户机构失败!"); |
|
|
|
|
} |
|
|
|
|
StationEntity station = new StationEntity(); |
|
|
|
|
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()), () -> { |
|
|
|
|
throw new ServiceException("该工作票站点下未获取到两票抬头!"); |
|
|
|
|
}); |
|
|
|
|