|  |  | 
 |  |  |                                         null    // 备注 | 
 |  |  |                                 ); | 
 |  |  |                                 String InAndOut = erpDetTb.getAddId2()==2 ? "(出库)" : "(入库)"; | 
 |  |  |                                 DocType docType = docTypeService.selectOrAdd("ERP订单"+InAndOut, erpDetTb.getAddId().equals("1")); | 
 |  |  |                                 DocType docType = docTypeService.selectOrAdd("ERP订单"+InAndOut, erpDetTb.getAddId2()==1); | 
 |  |  |                                 if (!Cools.isEmpty(docType)) { | 
 |  |  |                                     order.setDocType(docType.getDocId()); | 
 |  |  |                                     if (!orderService.insert(order)) { | 
 |  |  | 
 |  |  |                         condition2.put("BIL_NO", "'" + erpDetTb.getBillNo() + "'"); | 
 |  |  |                         condition2.put("PRD_NO", "'" + erpDetTb.getPrdNo() + "'"); | 
 |  |  |                         condition2.put("ITM", "'" + erpDetTb.getItm() + "'"); | 
 |  |  |                         condition2.put("PRD_MARK", "'" + erpDetTb.getPrdMark() + "'"); | 
 |  |  | //                        condition2.put("PRD_MARK", "'" + erpDetTb.getPrdMark() + "'"); | 
 |  |  |                         erpSqlServer.delete(ErpDetTb.class, condition2); | 
 |  |  |  | 
 |  |  | //                        callApiLogSave(erpDetTb, "ERP_DETTB", "ERP下发订单备份后删除成功!!", true); |