|
|
|
@ -2049,10 +2049,14 @@ 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){ |
|
|
|
log.warn(DateUtil.getNowTime()+": 删除出错的出库订单:"+ JSONObject.toJSONString(record)); |
|
|
|
depositoryRecordMapper.deleteApplicationOutRecordById(id); |
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|