模具管理客户要求修正2

This commit is contained in:
杨晓东 2025-10-14 15:19:04 +08:00
parent 88005bf0d4
commit bfccc95235

View File

@ -188,10 +188,11 @@ public class MoldInfoServiceImpl implements IMoldInfoService
}
}
else {
if (location.getCapacity() == 0) {
location.setCapacity(0L);
if (location.getCurrentQuantity() == 0) {
location.setCurrentQuantity(0L);
} else {
location.setCurrentQuantity(location.getCurrentQuantity() - 1);
}
location.setCurrentQuantity(location.getCurrentQuantity() - 1);
if (!location.getCapacity().equals(location.getCurrentQuantity())) {
location.setLocationStatus('1');
}