Merge remote-tracking branch 'origin/master'

This commit is contained in:
gcw_MV9p2JJN 2025-10-14 15:19:41 +08:00
commit ca0a9b094b

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');
}