退料问题修复

This commit is contained in:
hongchao 2025-09-11 18:25:26 +08:00
parent 2b6a959a20
commit 419605f4c2
1 changed files with 25 additions and 17 deletions

View File

@ -1381,6 +1381,11 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
for(MaCodeDto maCodeDto : details.getMaVos()){
details.setPreNum(BigDecimal.ONE);
details.setMaId(maCodeDto.getMaId());
BackApplyDetails checkDetails = backApplyInfoMapper.selectCheckDetails(details);
if (checkDetails != null) {
}else{
// 如果details.getGoodNum()大于0
if (details.getGoodNum().compareTo(BigDecimal.ZERO) > 0) {
details.setGoodNum(BigDecimal.ONE);
@ -1401,6 +1406,9 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
}
}
}
}
return result;
}