Browse Source

缺陷记录编码修正

zhongwei
tyty 1 year ago
parent
commit
c7df48365b
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

@ -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("该工作票站点下未获取到两票抬头!");
}); });

Loading…
Cancel
Save