退料问题修复
This commit is contained in:
parent
2b6a959a20
commit
419605f4c2
|
|
@ -1381,6 +1381,11 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
|
||||||
for(MaCodeDto maCodeDto : details.getMaVos()){
|
for(MaCodeDto maCodeDto : details.getMaVos()){
|
||||||
details.setPreNum(BigDecimal.ONE);
|
details.setPreNum(BigDecimal.ONE);
|
||||||
details.setMaId(maCodeDto.getMaId());
|
details.setMaId(maCodeDto.getMaId());
|
||||||
|
|
||||||
|
BackApplyDetails checkDetails = backApplyInfoMapper.selectCheckDetails(details);
|
||||||
|
if (checkDetails != null) {
|
||||||
|
|
||||||
|
}else{
|
||||||
// 如果details.getGoodNum()大于0
|
// 如果details.getGoodNum()大于0
|
||||||
if (details.getGoodNum().compareTo(BigDecimal.ZERO) > 0) {
|
if (details.getGoodNum().compareTo(BigDecimal.ZERO) > 0) {
|
||||||
details.setGoodNum(BigDecimal.ONE);
|
details.setGoodNum(BigDecimal.ONE);
|
||||||
|
|
@ -1401,6 +1406,9 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue