|
|
@ -4053,7 +4053,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
new Thread(new Runnable() { |
|
|
new Thread(new Runnable() { |
|
|
@Override |
|
|
@Override |
|
|
public void run() { |
|
|
public void run() { |
|
|
updateInventoryForErrorInRecord(record.getMid(), record.getQuantity(), record.getAirUnit(), record.getPlaceId(), record.getDepositoryId()); |
|
|
if (Integer.compare(record.getAirapproverPass(), 4) == 0 || Integer.compare(record.getAirapproverPass(), 1) == 0) { |
|
|
|
|
|
// 如果已经入库
|
|
|
|
|
|
updateInventoryForErrorInRecord(record.getMid(), record.getQuantity(), record.getAirUnit(), record.getPlaceId(), record.getDepositoryId()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}).start(); |
|
|
}).start(); |
|
|
return depositoryRecordMapper.deleteApplicationInRecordById(id); |
|
|
return depositoryRecordMapper.deleteApplicationInRecordById(id); |
|
|
@ -4073,7 +4076,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
public void run() { |
|
|
public void run() { |
|
|
for (ApplicationInRecordP record : applicationInRecordsByIds |
|
|
for (ApplicationInRecordP record : applicationInRecordsByIds |
|
|
) { |
|
|
) { |
|
|
updateInventoryForErrorInRecord(record.getMid(), record.getQuantity(), record.getAirUnit(), record.getPlaceId(), record.getDepositoryId()); |
|
|
if (Integer.compare(record.getAirapproverPass(), 4) == 0 || Integer.compare(record.getAirapproverPass(), 1) == 0) { |
|
|
|
|
|
updateInventoryForErrorInRecord(record.getMid(), record.getQuantity(), record.getAirUnit(), record.getPlaceId(), record.getDepositoryId()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}).start(); |
|
|
}).start(); |
|
|
|