|
@@ -1021,87 +1021,12 @@ public class CustomerServiceImpl implements CustomerService {
|
|
|
}
|
|
|
CustomerInfo customer = customerList.get(0);
|
|
|
map.put("customer",customer);
|
|
|
- int orderId = 0;
|
|
|
-// switch (customer.getCustomerIsSolve().intValue()) {
|
|
|
-// case 3://换新
|
|
|
-// Renewed renewedInfo = new Renewed();
|
|
|
-// renewedInfo.setRenewedState(1);
|
|
|
-// renewedInfo.setCustomerId(customerInfo.getCustomerId());
|
|
|
-// //查询售后换新详情
|
|
|
-// renewedInfo = renewedMapper.getRenewedInfo(renewedInfo);
|
|
|
-// //orderId = renewedInfo.getOrderId();
|
|
|
-// customerCommon = CustomerCommonUtil.getCustomerCommon(3,renewedInfo);
|
|
|
-// customerCommon = customerService.selectProdcueAndFitting(customerCommon,3);
|
|
|
-// break;
|
|
|
-// case 4://维修
|
|
|
-// Repair repairInfo = new Repair();
|
|
|
-// repairInfo.setRepairState(1);
|
|
|
-// repairInfo.setCustomerId(customerInfo.getCustomerId());
|
|
|
-// //查询售后维修集合
|
|
|
-// repairInfo = repairMapper.getRepairInfo(repairInfo);
|
|
|
-// /*if (repairInfo.getComplaintDetectList() != null && repairInfo.getComplaintDetectList().size() > 0) {
|
|
|
-// repairInfo.setDetectState(repairInfo.getComplaintDetectList().get(0).getDetectState());
|
|
|
-// }*/
|
|
|
-// //orderId = repairInfo.getOrderId();
|
|
|
-// customerCommon = CustomerCommonUtil.getCustomerCommon(4,repairInfo);
|
|
|
-// customerCommon = customerService.selectProdcueAndFitting(customerCommon,4);
|
|
|
-// break;
|
|
|
-// case 5://补发
|
|
|
-// Reissue reissueInfo = new Reissue();
|
|
|
-// reissueInfo.setReissueState(1);
|
|
|
-// reissueInfo.setCustomerId(customerInfo.getCustomerId());
|
|
|
-// //查询售后补发集合
|
|
|
-// List<Reissue> reissueList = reissueMapper.listReissue(reissueInfo);
|
|
|
-// if (reissueList == null || reissueList.size() == 0) {
|
|
|
-// return null;
|
|
|
-// }
|
|
|
-// reissueInfo = reissueList.get(0);
|
|
|
-// //orderId = reissueInfo.getOrderId();
|
|
|
-// customerCommon = CustomerCommonUtil.getCustomerCommon(5,reissueInfo);
|
|
|
-// customerCommon = customerService.selectProdcueAndFitting(customerCommon,5);
|
|
|
-// break;
|
|
|
-// case 6://退货
|
|
|
-// //查询售后退货集合
|
|
|
-// BackGoods backGoodsInfo = new BackGoods();
|
|
|
-// backGoodsInfo.setBackGoodsState(1);
|
|
|
-// backGoodsInfo.setCustomerId(customerInfo.getCustomerId());
|
|
|
-// List<BackGoods> backGoodsList = backGoodsMapper.listBackGoods(backGoodsInfo);
|
|
|
-// if (backGoodsList == null || backGoodsList.size() == 0) {
|
|
|
-// return null;
|
|
|
-// }
|
|
|
-// backGoodsInfo = backGoodsList.get(0);
|
|
|
-// /*if (backGoodsInfo.getComplaintDetectList() != null && backGoodsInfo.getComplaintDetectList().size() > 0) {
|
|
|
-// backGoodsInfo.setDetectState(backGoodsInfo.getComplaintDetectList().get(0).getDetectState());
|
|
|
-// }*/
|
|
|
-// //orderId = backGoodsInfo.getOrderId();
|
|
|
-// customerCommon = CustomerCommonUtil.getCustomerCommon(6,backGoodsInfo);
|
|
|
-// customerCommon = customerService.selectProdcueAndFitting(customerCommon,6);
|
|
|
-// break;
|
|
|
-// case 7://无理由退货
|
|
|
-// //查询售后无理由退货集合
|
|
|
-// NoreasonBack noreasonBackInfo = new NoreasonBack();
|
|
|
-// noreasonBackInfo.setNoreasonBackState(1);
|
|
|
-// noreasonBackInfo.setCustomerId(customerInfo.getCustomerId());
|
|
|
-// List<NoreasonBack> noreasonBackList = noreasonBackMapper.listNoreasonBack(noreasonBackInfo);
|
|
|
-// if (noreasonBackList == null || noreasonBackList.size() == 0) {
|
|
|
-// return null;
|
|
|
-// }
|
|
|
-// noreasonBackInfo = noreasonBackList.get(0);
|
|
|
-// /*if (noreasonBackInfo.getComplaintDetectList() != null && noreasonBackInfo.getComplaintDetectList().size() > 0) {
|
|
|
-// noreasonBackInfo.setDetectState(noreasonBackInfo.getComplaintDetectList().get(0).getDetectState());
|
|
|
-// }*/
|
|
|
-// //orderId = noreasonBackInfo.getOrderId();
|
|
|
-// customerCommon = CustomerCommonUtil.getCustomerCommon(7,noreasonBackInfo);
|
|
|
-// customerCommon = customerService.selectProdcueAndFitting(customerCommon,7);
|
|
|
-// break;
|
|
|
-// }
|
|
|
-
|
|
|
- if(customerCommon != null && customer.getCustomerIsSolve() != null && (customer.getCustomerIsSolve() == 3 || customer.getCustomerIsSolve() == 4 ||
|
|
|
- customer.getCustomerIsSolve() == 5 || customer.getCustomerIsSolve() == 6 || customer.getCustomerIsSolve() == 7)
|
|
|
- ){
|
|
|
+ CmRelation cmRelation = new CmRelation();
|
|
|
+ cmRelation.setCustomerId(customer.getCustomerId());
|
|
|
+ cmRelation = customerInfoMapper.getCmRelationInfo(cmRelation);
|
|
|
RelationOrder relationOrder = new RelationOrder();
|
|
|
- relationOrder.setRelationType(customerCommon.getCustomerIsSolve());
|
|
|
- relationOrder.setRelationId(customerCommon.getRelationId());
|
|
|
+ relationOrder.setRelationId(cmRelation.getRelationId());
|
|
|
+ relationOrder.setRelationCustomerId(customer.getCustomerId());
|
|
|
List<RelationOrder> relationOrderList = relationOrderService.getRelationOrderList(relationOrder);
|
|
|
if(relationOrderList != null && relationOrderList.size() > 0){
|
|
|
String[] salesIds = new String[relationOrderList.size()];
|
|
@@ -1121,7 +1046,13 @@ public class CustomerServiceImpl implements CustomerService {
|
|
|
}
|
|
|
map.put("orderList",orderList);
|
|
|
}
|
|
|
- }
|
|
|
+ //查询寄回寄出产品
|
|
|
+ ClosedProdcue record = new ClosedProdcue();
|
|
|
+ record.setRelationId(cmRelation.getRelationId());
|
|
|
+ customerCommon.setClosedProdcues(closedProdcueMapper.listclosedProdcue(record));
|
|
|
+ SendProdcue sendrecord = new SendProdcue();
|
|
|
+ sendrecord.setRelationId(cmRelation.getRelationId());
|
|
|
+ customerCommon.setSendProdcues(sendProdcueMapper.listSendProdcue(sendrecord));
|
|
|
map.put("customerCommon",customerCommon);
|
|
|
return map;
|
|
|
}
|