From 410949d5033b8e8abe57a4dac2fce4baa471e034 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Mon, 19 Jan 2026 17:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E6=8E=A5=E6=94=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/back/service/impl/BackApplyInfoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/back/service/impl/BackApplyInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/back/service/impl/BackApplyInfoServiceImpl.java index ea7976f2..b4955ce7 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/back/service/impl/BackApplyInfoServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/back/service/impl/BackApplyInfoServiceImpl.java @@ -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("该设备编码不存在领用记录,请重新选择");