|
|
|
@ -2049,12 +2049,16 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
for (ApplicationOutRecord record : applicationOutRecordPForBad) { |
|
|
|
Integer id = record.getId(); |
|
|
|
List<ApplicationOutRecordMin> applicationOutRecordMinByParent = depositoryRecordMapper.findApplicationOutRecordMinByParent(id); |
|
|
|
if(applicationOutRecordMinByParent == null || applicationOutRecordMinByParent.size() <= 0){ |
|
|
|
if (applicationOutRecordMinByParent != null) { |
|
|
|
for (ApplicationOutRecordMin outRecordMin : applicationOutRecordMinByParent) { |
|
|
|
depositoryRecordMapper.deleteApplicationOutRecordMinById(outRecordMin.getId()); |
|
|
|
log.warn(DateUtil.getNowTime() + ": 删除出错的出库子订单:" + JSONObject.toJSONString(record)); |
|
|
|
} |
|
|
|
} |
|
|
|
log.warn(DateUtil.getNowTime() + ": 删除出错的出库订单:" + JSONObject.toJSONString(record)); |
|
|
|
depositoryRecordMapper.deleteApplicationOutRecordById(id); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 用于完成出库时的相关处理操作 |
|
|
|
|