Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ca0a9b094b
@ -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');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user