|
@@ -71,29 +71,55 @@ public class CustomerCommonServiceImpl implements CustomerCommonService {
|
|
|
// Renewed renewed = (Renewed)CustomerCommonUtil.getRelation(3,customerCommon);
|
|
|
// List<Renewed> renewedList = renewedMapper.listRenewed(renewed);
|
|
|
// customerCommonList.addAll(CustomerCommonUtil.listToCustomerCommon(3,renewedList));
|
|
|
-//
|
|
|
// /*维修*/
|
|
|
// Repair repair = (Repair)CustomerCommonUtil.getRelation(4,customerCommon);
|
|
|
// List<Repair> repairList = repairMapper.listRepair(repair);
|
|
|
// customerCommonList.addAll(CustomerCommonUtil.listToCustomerCommon(4,repairList));
|
|
|
-//
|
|
|
// /*补发*/
|
|
|
// Reissue reissue = (Reissue)CustomerCommonUtil.getRelation(5,customerCommon);
|
|
|
// List<Reissue> reissueList = reissueMapper.listReissue(reissue);
|
|
|
// customerCommonList.addAll(CustomerCommonUtil.listToCustomerCommon(5,reissueList));
|
|
|
-//
|
|
|
// /*退货*/
|
|
|
// BackGoods backGoods = (BackGoods)CustomerCommonUtil.getRelation(6,customerCommon);
|
|
|
// List<BackGoods> backGoodsList = backGoodsMapper.listBackGoods(backGoods);
|
|
|
// customerCommonList.addAll(CustomerCommonUtil.listToCustomerCommon(6,backGoodsList));
|
|
|
-//
|
|
|
// /*无理由退货*/
|
|
|
// NoreasonBack noreasonBack = (NoreasonBack)CustomerCommonUtil.getRelation(7,customerCommon);
|
|
|
// List<NoreasonBack> noreasonBackList = noreasonBackMapper.listNoreasonBack(noreasonBack);
|
|
|
// customerCommonList.addAll(CustomerCommonUtil.listToCustomerCommon(7,noreasonBackList));
|
|
|
-
|
|
|
return customerCommonList;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Integer updateCustomerCommon(CustomerCommon customerCommon) {
|
|
|
+ Integer flag = 0;
|
|
|
+ switch (customerCommon.getCustomerIsSolve()){
|
|
|
+ case 3:
|
|
|
+ Renewed renewed = (Renewed)CustomerCommonUtil.getRelation(3,customerCommon);
|
|
|
+ flag = renewedMapper.updateRenewedInfo(renewed);
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ Repair repair = (Repair)CustomerCommonUtil.getRelation(4,customerCommon);
|
|
|
+ flag = repairMapper.updateRepairInfo(repair);
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ Reissue reissue = (Reissue)CustomerCommonUtil.getRelation(5,customerCommon);
|
|
|
+ flag = reissueMapper.updateReissueInfo(reissue);
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ BackGoods backGoods = (BackGoods)CustomerCommonUtil.getRelation(6,customerCommon);
|
|
|
+ flag = backGoodsMapper.updateBackGoods(backGoods);
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ NoreasonBack noreasonBack = (NoreasonBack)CustomerCommonUtil.getRelation(7,customerCommon);
|
|
|
+ flag = noreasonBackMapper.updateNoreasonBack(noreasonBack);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ flag = 0;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return flag;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|