|
|
|
@ -4053,8 +4053,11 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
new Thread(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
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(); |
|
|
|
return depositoryRecordMapper.deleteApplicationInRecordById(id); |
|
|
|
} |
|
|
|
@ -4073,9 +4076,11 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
public void run() { |
|
|
|
for (ApplicationInRecordP record : applicationInRecordsByIds |
|
|
|
) { |
|
|
|
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(); |
|
|
|
return depositoryRecordMapper.deleteApplicationInRecordByIds(list); |
|
|
|
} |
|
|
|
|