Commit ba4438b9 by zhengxj

finish 对账单-对账单明细派单时间问题 on 20200309 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26079 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 241cfd82
...@@ -109,7 +109,7 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ ...@@ -109,7 +109,7 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ
SysReconciliation reconciliation = threeValues.getTwo(); SysReconciliation reconciliation = threeValues.getTwo();
SysReconciliationMonthly monthly = threeValues.getThree(); SysReconciliationMonthly monthly = threeValues.getThree();
// 1.先判断对账单状态,如果不是 待确认或待运营审核 状态,则不能删除哦 // 1.先判断对账单状态,如果不是 待确认或待运营审核 状态,则不能删除哦
if ((!reconciliation.getStatementStatus().equals(ReconciliationStatusEnum.PENDING_CONFIRM_STATUS.getCode())) && (!reconciliation.getStatementStatus().equals(ReconciliationStatusEnum.PENDING_AUDIT_STATUS.getCode()))) if (!reconciliation.getStatementStatus().equals(ReconciliationStatusEnum.PENDING_CONFIRM_STATUS.getCode()) && !reconciliation.getStatementStatus().equals(ReconciliationStatusEnum.PENDING_AUDIT_STATUS.getCode()))
throw BusinessException.create("对账单状态不是[待确认]或[待运营审核]不能执行删除操作!对账单号[" + reconciliation.getReconciliationSn() + "]"); throw BusinessException.create("对账单状态不是[待确认]或[待运营审核]不能执行删除操作!对账单号[" + reconciliation.getReconciliationSn() + "]");
// 2.删除对账明细 // 2.删除对账明细
reconciliationDetailMapper.deleteByPrimaryKey(detail.getId()); reconciliationDetailMapper.deleteByPrimaryKey(detail.getId());
...@@ -197,7 +197,7 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ ...@@ -197,7 +197,7 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ
vo.setServiceName(serviceItemMaps.get(orderMaps.get(x.getOrderSn()).getServiceCode()) == null ? "" : serviceItemMaps.get(orderMaps.get(x.getOrderSn()).getServiceCode()).getServiceName()); vo.setServiceName(serviceItemMaps.get(orderMaps.get(x.getOrderSn()).getServiceCode()) == null ? "" : serviceItemMaps.get(orderMaps.get(x.getOrderSn()).getServiceCode()).getServiceName());
vo.setShopName(merchantMaps.get(orderMaps.get(x.getOrderSn()).getShopId()) == null ? "" : merchantMaps.get(orderMaps.get(x.getOrderSn()).getShopId()).getShopName()); vo.setShopName(merchantMaps.get(orderMaps.get(x.getOrderSn()).getShopId()) == null ? "" : merchantMaps.get(orderMaps.get(x.getOrderSn()).getShopId()).getShopName());
vo.setCompleteTime(orderMaps.get(x.getOrderSn()).getCompleteTime()); vo.setCompleteTime(orderMaps.get(x.getOrderSn()).getCompleteTime());
vo.setReassignMechanicTime(orderMaps.get(x.getOrderSn()).getReassignMechanicTime()); vo.setReassignMechanicTime(orderMaps.get(x.getOrderSn()).getCreateTime());
result.add(vo); result.add(vo);
}); });
return result; return result;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!