模具管理客户要求修正2
This commit is contained in:
parent
88005bf0d4
commit
bfccc95235
@ -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);
|
||||
}
|
||||
if (!location.getCapacity().equals(location.getCurrentQuantity())) {
|
||||
location.setLocationStatus('1');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user