退料接收问题修复

This commit is contained in:
hongchao 2026-01-19 17:21:13 +08:00
parent 7cd4c29ee5
commit 410949d503
1 changed files with 1 additions and 1 deletions

View File

@ -1910,7 +1910,7 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
dto.setMaId(listOneMaCode.get(0).getMaId());
// 判断是否属于该工程
MaCodeVo vo = backApplyInfoMapper.getMachineByMaIdOne(dto);
if(vo!=null && !Objects.equals(vo.getProId(), dto.getProId())){
if(vo!=null && (!Objects.equals(vo.getProId(), dto.getProId()) || !Objects.equals(vo.getUnitId(), dto.getUnitId()))){
return AjaxResult.error("该设备编码非该单位工程下的设备,单位:"+vo.getUnitName()+",工程:"+vo.getProName());
}else if(vo == null){
return AjaxResult.error("该设备编码不存在领用记录,请重新选择");