From c007868c62c7da5c9ce1bf0e77d9e5f8619826e4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期三, 12 六月 2019 12:24:09 +0800 Subject: [PATCH] 查询默认有效调整 --- fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java | 392 +++++++++++++++++++++++++++++++++----------------------- 1 files changed, 231 insertions(+), 161 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java index 1300046..b2a1d45 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java @@ -17,21 +17,27 @@ import com.yeshi.fanli.dao.mybatis.order.CommonOrderGoodsMapper; import com.yeshi.fanli.dao.mybatis.order.CommonOrderMapper; +import com.yeshi.fanli.dao.mybatis.order.CommonOrderTradeIdMapMapper; import com.yeshi.fanli.dao.mybatis.taobao.TaoBaoWeiQuanOrderMapper; import com.yeshi.fanli.entity.bus.user.HongBaoV2; import com.yeshi.fanli.entity.bus.user.UserInfo; import com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord; +import com.yeshi.fanli.entity.goods.CommonGoods; import com.yeshi.fanli.entity.order.CommonOrder; import com.yeshi.fanli.entity.order.CommonOrderGoods; +import com.yeshi.fanli.entity.order.CommonOrderTradeIdMap; import com.yeshi.fanli.entity.system.SystemCoupon.CouponTypeEnum; import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; import com.yeshi.fanli.entity.taobao.TaoBaoOrder; import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder; import com.yeshi.fanli.exception.order.CommonOrderException; import com.yeshi.fanli.exception.taobao.TaobaoGoodsDownException; +import com.yeshi.fanli.log.LogHelper; import com.yeshi.fanli.service.inter.common.JumpDetailV2Service; import com.yeshi.fanli.service.inter.config.ConfigService; import com.yeshi.fanli.service.inter.config.SystemCouponService; +import com.yeshi.fanli.service.inter.goods.CommonGoodsService; +import com.yeshi.fanli.service.inter.hongbao.HongBaoV2Service; import com.yeshi.fanli.service.inter.order.CommonOrderService; import com.yeshi.fanli.service.inter.user.UserSystemCouponRecordService; import com.yeshi.fanli.service.inter.user.UserSystemCouponService; @@ -40,6 +46,7 @@ import com.yeshi.fanli.util.StringUtil; import com.yeshi.fanli.util.factory.CommonOrderGoodsFactory; import com.yeshi.fanli.util.taobao.TaoBaoOrderUtil; +import com.yeshi.fanli.util.taobao.TaoBaoUtil; import com.yeshi.fanli.util.taobao.TaoKeApiUtil; import com.yeshi.fanli.vo.msg.ClientTextStyleVO; import com.yeshi.fanli.vo.order.CommonOrderGoodsVO; @@ -58,31 +65,38 @@ @Resource private CommonOrderGoodsMapper commonOrderGoodsMapper; - + @Resource private JumpDetailV2Service jumpDetailV2Service; - + @Resource private ConfigService configService; - + @Resource private UserSystemCouponService userSystemCouponService; - + @Resource private UserSystemCouponRecordService userSystemCouponRecordService; - + @Resource private SystemCouponService systemCouponService; - - - // 濂栧姳璁㈠崟鍥剧墖 - public final static String PIC_REWARD= "http://192.168.1.200/icon/jl.png"; - - // 鍏嶅崟鐘舵�佸浘鐗� - public final static String PIC_FREE_ON = "http://192.168.1.200/icon/state1.png"; - public final static String PIC_FREE_FAIL = "http://192.168.1.200/icon/state2.png"; - public final static String PIC_FREE_SUCCEED = "http://192.168.1.200/icon/state3.png"; + @Resource + private HongBaoV2Service hongBaoV2Service; + + @Resource + private CommonOrderTradeIdMapMapper commonOrderTradeIdMapMapper; + + @Resource + private CommonGoodsService commonGoodsService; + + // 濂栧姳璁㈠崟鍥剧墖 + public final static String PIC_REWARD = "http://img.flqapp.com/resource/order/order_state_reward.png"; + + // 鍏嶅崟鐘舵�佸浘鐗� + public final static String PIC_FREE_ON = "http://img.flqapp.com/resource/order/order_state_freeing.png"; + public final static String PIC_FREE_FAIL = "http://img.flqapp.com/resource/order/order_state_free_fail.png"; + public final static String PIC_FREE_SUCCEED = "http://img.flqapp.com/resource/order/order_state_free_suc.png"; @Override public int insert(CommonOrder record) { @@ -155,8 +169,7 @@ return listOrder; } - - + @Override public Map<String, BigDecimal> countHistoryOrder(Long uid, Integer day) { return commonOrderMapper.countHistoryOrder(uid, day); @@ -187,14 +200,13 @@ public void listDataFactory(List<CommonOrderVO> listOrder, List<CommonOrderVO> listGoods, Long uid) { List<String> listNo = new ArrayList<String>(); - for (CommonOrderVO commonOrderVO: listOrder) { + for (CommonOrderVO commonOrderVO : listOrder) { listNo.add(commonOrderVO.getOrderNo()); } - + // 宸茬粡浣跨敤鍒歌鍗� List<UserSystemCouponRecord> couponRecordList = userSystemCouponRecordService.getRecordByOrderNoList(listNo); - - + /* 缁勫悎鍟嗗搧淇℃伅 */ for (CommonOrderVO commonOrder : listGoods) { @@ -248,7 +260,7 @@ totalSettlement = commonOrder.getTotalPayment(); } // 瀹炰粯娆� - commonGoodsVO.setActualPay("瀹炰粯娆撅細楼" + totalSettlement); + commonGoodsVO.setActualPay("浠樻閲戦锛毬�" + totalSettlement); listOrderGoods.add(commonGoodsVO); @@ -269,10 +281,10 @@ SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd HH:mm"); SimpleDateFormat formatday = new SimpleDateFormat("yyyy.MM.dd"); - + // 鏄惁瀛樺湪濂栧姳鍒� boolean hasRewardCoupon = userSystemCouponService.hasRewardCoupon(uid); - + /* 缁勭粐璁㈠崟鐘舵�� 绛変俊鎭� */ for (CommonOrderVO order : listOrder) { @@ -364,7 +376,7 @@ order.setOrderOrigin("2"); order.setHongBaoTypePic(CommonOrder.TYPE_SHARE); signList.add(CommonOrder.TYPE_SHARE); - + } else if (HongBaoV2.TYPE_YAOQING == hongBaoType || HongBaoV2.TYPE_YIJI == hongBaoType || HongBaoV2.TYPE_ERJI == hongBaoType || HongBaoV2.TYPE_SHARE_YIJI == hongBaoType || HongBaoV2.TYPE_SHARE_ERJI == hongBaoType) { @@ -434,110 +446,119 @@ hongBaoMap.put("content", hongbaoInfo + " 楼" + hongBao.setScale(2, BigDecimal.ROUND_DOWN).toString()); hongBaoMap.put("fontColor", hongbaoInfoFontColor); order.setHongBaoInfo(hongBaoMap); - - - // 鏄惁鍏嶅崟鍟嗗搧 - boolean freeOrder = false; - // 鏄惁濂栧姳鎴愬姛 - boolean rewardSuccess = false; - // 濂栧姳璁㈠崟銆佸厤鍗� - if (couponRecordList != null && couponRecordList.size() > 0) { - - for (UserSystemCouponRecord couponRecord: couponRecordList) { - // 璁㈠崟鍙峰尮閰� - if (order.getOrderNo().equals(couponRecord.getOrderNo())) { - - String systemCouponType = couponRecord.getCouponType(); - Integer state = couponRecord.getState(); - - // 濂栧姳璁㈠崟: 涓旀垚鍔� - if (CouponTypeEnum.rebatePercentCoupon.name().equals(systemCouponType) - && UserSystemCouponRecord.STATE_SUCCESS == state) { - rewardSuccess = true; - signList.add(PIC_REWARD); // 鍔犲叆濂栧姳鎴愬姛鍥剧墖 - - } else if (CouponTypeEnum.freeCoupon.name().equals(systemCouponType) - || CouponTypeEnum.welfareFreeCoupon.name().equals(systemCouponType)) { - - if (UserSystemCouponRecord.STATE_FREE_ON == state) { - // 鍏嶅崟涓� - freeOrder = true; - signList.add(PIC_FREE_ON); - } else if (UserSystemCouponRecord.STATE_SUCCESS == state) { - // 鍏嶅崟鎴愬姛 - freeOrder = true; - signList.add(PIC_FREE_SUCCEED); - } else if (UserSystemCouponRecord.STATE_FAIL_RULE == state || UserSystemCouponRecord.STATE_FAIL_DRAWBACK == state) { - // 瑙勫垯涓嶅尮閰嶃�侀��娆� - freeOrder = true; - signList.add(PIC_FREE_FAIL); - } + + // 闈炶嚜璐殑璁㈠崟 涓嶆樉绀鸿繑鍒┿�佸厤鍗曡鎯� + if (HongBaoV2.TYPE_ZIGOU != hongBaoType) { + // 璁㈠崟鏍囪瘑 + order.setSignList(signList); + + } else { + + // 鏄惁鍏嶅崟鍟嗗搧 + boolean freeOrder = false; + // 鏄惁濂栧姳鎴愬姛 + boolean rewardSuccess = false; + + // 濂栧姳璁㈠崟銆佸厤鍗� 浣跨敤璁板綍 + if (couponRecordList != null && couponRecordList.size() > 0) { + + for (UserSystemCouponRecord couponRecord : couponRecordList) { + // 璁㈠崟鍙峰尮閰� + if (order.getOrderNo().equals(couponRecord.getOrderNo())) { + + String systemCouponType = couponRecord.getCouponType(); + Integer state = couponRecord.getState(); + + // 濂栧姳璁㈠崟: 涓旀垚鍔� + if (CouponTypeEnum.rebatePercentCoupon.name().equals(systemCouponType) + && UserSystemCouponRecord.STATE_SUCCESS == state) { + rewardSuccess = true; + signList.add(PIC_REWARD); // 鍔犲叆濂栧姳鎴愬姛鍥剧墖 + + } else if (CouponTypeEnum.freeCoupon.name().equals(systemCouponType) + || CouponTypeEnum.welfareFreeCoupon.name().equals(systemCouponType)) { + + if (UserSystemCouponRecord.STATE_FREE_ON == state) { + // 鍏嶅崟涓� + freeOrder = true; + signList.add(PIC_FREE_ON); + } else if (UserSystemCouponRecord.STATE_SUCCESS == state) { + // 鍏嶅崟鎴愬姛 + freeOrder = true; + signList.add(PIC_FREE_SUCCEED); + } else if (UserSystemCouponRecord.STATE_FAIL_RULE == state + || UserSystemCouponRecord.STATE_FAIL_DRAWBACK == state) { + // 瑙勫垯涓嶅尮閰嶃�侀��娆� + freeOrder = true; + signList.add(PIC_FREE_FAIL); + } + } + + break; } - - break; } } + + // 璁㈠崟鏍囪瘑 + order.setSignList(signList); + + boolean rewardOrder = false; + + int type = 1; // 1 甯歌璺宠浆椤甸潰 2寮瑰嚭閫夐」锛堝鍔卞埜锛� + if (rewardSuccess) { + // 濂栧姳鎴愬姛 + rewardOrder = true; + } else if (hasRewardCoupon && !freeOrder && HongBaoV2.TYPE_ZIGOU == hongBaoType + && HongBaoV2.STATE_YILINGQU == hongBaoState) { + // 鏈夊彲鐢ㄧ殑濂栧姳鍒� 銆侀潪鍏嶅崟璁㈠崟 銆佷笖宸插埌璐︾殑 銆佽繑鍒╄鍗� + type = 2; + rewardOrder = true; + } + + if (rewardOrder) { + ClientTextStyleVO rewardStyleVO = new ClientTextStyleVO(); + // 濂栧姳鍒歌繘搴﹁鎯� + rewardStyleVO.setContent("杩斿埄濂栧姳 >"); + rewardStyleVO.setColor("#E5005C"); + rewardStyleVO.setBottomColor("#FFDCEA"); + + Map<String, Object> jumpLink = new HashMap<String, Object>(); + jumpLink.put("orderNo", order.getOrderNo()); + + Map<String, Object> jump = new HashMap<String, Object>(); + jump.put("type", type); + jump.put("params", jumpLink); + jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("rewardCouponDetail")); + + Map<String, Object> rewardMap = new HashMap<String, Object>(); + rewardMap.put("text", rewardStyleVO); + rewardMap.put("jump", jump); + + order.setRewardDetail(rewardMap); + } + + if (freeOrder) { + ClientTextStyleVO rewardStyleVO = new ClientTextStyleVO(); + // 杩斿埄銆佸厤鍗曡鎯� + rewardStyleVO.setContent("鍏嶅崟璇︽儏 >"); + rewardStyleVO.setColor("#E5005C"); + rewardStyleVO.setBottomColor("#FFDCEA"); + + Map<String, Object> jumpLink = new HashMap<String, Object>(); + jumpLink.put("orderNo", order.getOrderNo()); + + Map<String, Object> jump = new HashMap<String, Object>(); + jump.put("type", 1); // 椤甸潰璺宠浆 + jump.put("params", jumpLink); + jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("freeCouponDetail")); + + Map<String, Object> rewardMap = new HashMap<String, Object>(); + rewardMap.put("text", rewardStyleVO); + rewardMap.put("jump", jump); + + order.setRewardDetail(rewardMap); + } } - - // 璁㈠崟鏍囪瘑 - order.setSignList(signList); - - boolean rewardOrder = false; - - int type = 1; // 1 甯歌璺宠浆椤甸潰 2寮瑰嚭閫夐」锛堝鍔卞埜锛� - if (rewardSuccess) { - // 濂栧姳鎴愬姛 - rewardOrder = true; - } else if(hasRewardCoupon && !freeOrder && HongBaoV2.STATE_YILINGQU == hongBaoState) { - // 鏈夊彲鐢ㄧ殑濂栧姳鍒� 銆侀潪鍏嶅崟璁㈠崟 銆佷笖宸插埌璐︾殑 - type = 2; - rewardOrder = true; - } - - if (rewardOrder) { - ClientTextStyleVO rewardStyleVO = new ClientTextStyleVO(); - // 濂栧姳鍒歌繘搴﹁鎯� - rewardStyleVO.setContent("杩斿埄濂栧姳 >"); - rewardStyleVO.setColor( "#E5005C"); - rewardStyleVO.setBottomColor("#FFDCEA"); - - Map<String, Object> jumpLink = new HashMap<String,Object>(); - jumpLink.put("orderNo", order.getOrderNo()); - - Map<String, Object> jump = new HashMap<String,Object>(); - jump.put("type", type); - jump.put("params", jumpLink); - jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("rewardCouponDetail")); - - Map<String, Object> rewardMap = new HashMap<String,Object>(); - rewardMap.put("text", rewardStyleVO); - rewardMap.put("jump", jump); - - order.setRewardDetail(rewardMap); - } - - if (freeOrder) { - ClientTextStyleVO rewardStyleVO = new ClientTextStyleVO(); - // 杩斿埄銆佸厤鍗曡鎯� - rewardStyleVO.setContent("鍏嶅崟璇︽儏 >"); - rewardStyleVO.setColor( "#E5005C"); - rewardStyleVO.setBottomColor("#FFDCEA"); - - Map<String, Object> jumpLink = new HashMap<String,Object>(); - jumpLink.put("orderNo", order.getOrderNo()); - - Map<String, Object> jump = new HashMap<String,Object>(); - jump.put("type", 1); // 椤甸潰璺宠浆 - jump.put("params", jumpLink); - jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("freeCouponDetail")); - - Map<String, Object> rewardMap = new HashMap<String,Object>(); - rewardMap.put("text", rewardStyleVO); - rewardMap.put("jump", jump); - - order.setRewardDetail(rewardMap); - } - } } @@ -587,6 +608,15 @@ taoBaoGoods = TaoKeApiUtil.getSimpleGoodsInfo(taoBaoOrder.getAuctionId()); } catch (TaobaoGoodsDownException e) { e.printStackTrace(); + LogHelper.errorDetailInfo(e, "AUCTIONID:" + taoBaoOrder.getAuctionId(), ""); + try { + taoBaoGoods = TaoBaoUtil.getSimpleGoodsBrief(taoBaoOrder.getAuctionId()); + } catch (Exception e1) { + CommonGoods commonGoods = commonGoodsService.getCommonGoodsByGoodsIdAndGoodsType( + taoBaoOrder.getAuctionId(), Constant.SOURCE_TYPE_TAOBAO); + if (commonGoods != null) + taoBaoGoods = TaoBaoUtil.convert(commonGoods); + } } if (taoBaoGoods != null) { goods = CommonOrderGoodsFactory.create(taoBaoGoods); @@ -602,6 +632,10 @@ commonOrder.setStateWholeOrder(wholeOrderState); commonOrderMapper.insertSelective(commonOrder); + // 鎻掑叆鏄犲皠锛屼繚璇佷氦鏄揑D鐨勫畬鏁存�� + commonOrderTradeIdMapMapper.insertSelective(new CommonOrderTradeIdMap(commonOrder.getId(), + commonOrder.getTradeId(), new Date(), commonOrder.getSourceType())); + commonOrderList.add(commonOrder); continue; } else {// 淇敼 @@ -611,18 +645,25 @@ continue; } CommonOrder newCommonOrder = TaoBaoOrderUtil.convert(taoBaoOrder); - CommonOrder updateCommonOrder = new CommonOrder(commonOrder.getId()); - updateCommonOrder.seteIncome(newCommonOrder.geteIncome()); - updateCommonOrder.setEstimate(newCommonOrder.getEstimate()); - updateCommonOrder.setPayment(newCommonOrder.getPayment()); - updateCommonOrder.setSettlement(newCommonOrder.getSettlement()); - updateCommonOrder.setSettleTime(newCommonOrder.getSettleTime()); - updateCommonOrder.setState(newCommonOrder.getState()); - updateCommonOrder.setStateWholeOrder(wholeOrderState); - updateCommonOrder.setUpdateTime(new Date()); - commonOrderMapper.updateByPrimaryKeySelective(updateCommonOrder); - commonOrderList.add(commonOrderMapper.selectByPrimaryKey(updateCommonOrder.getId())); - continue; + + // 浜ゆ槗ID涓�鑷存墠淇敼 + if (commonOrder.getTradeId() != null + && commonOrder.getTradeId().equalsIgnoreCase(newCommonOrder.getTradeId())) { + + CommonOrder updateCommonOrder = new CommonOrder(commonOrder.getId()); + updateCommonOrder.seteIncome(newCommonOrder.geteIncome()); + updateCommonOrder.setEstimate(newCommonOrder.getEstimate()); + updateCommonOrder.setPayment(newCommonOrder.getPayment()); + updateCommonOrder.setSettlement(newCommonOrder.getSettlement()); + updateCommonOrder.setSettleTime(newCommonOrder.getSettleTime()); + updateCommonOrder.setState(newCommonOrder.getState()); + updateCommonOrder.setStateWholeOrder(wholeOrderState); + updateCommonOrder.setUpdateTime(new Date()); + updateCommonOrder.setTradeId(newCommonOrder.getTradeId()); + commonOrderMapper.updateByPrimaryKeySelective(updateCommonOrder); + commonOrderList.add(commonOrderMapper.selectByPrimaryKey(updateCommonOrder.getId())); + } else + commonOrderList.add(commonOrder); } } return commonOrderList; @@ -784,6 +825,29 @@ order.setHongBaoState(3); } + List<HongBaoV2> listhb = hongBaoV2Service.listChildrenById(order.getHongbaoId()); + if (listhb != null && listhb.size() > 0) { + if (listhb.size() == 1) { + UserInfo userInfo = listhb.get(0).getUserInfo(); + if (userInfo != null) { + order.setLevelOneId(userInfo.getId() + ""); + order.setLevelOneMoney(listhb.get(0).getMoney() + ""); + } + } else if (listhb.size() == 2) { + UserInfo userInfo = listhb.get(0).getUserInfo(); + if (userInfo != null) { + order.setLevelOneId(userInfo.getId() + ""); + order.setLevelOneMoney(listhb.get(0).getMoney() + ""); + } + + UserInfo userInfo2 = listhb.get(1).getUserInfo(); + if (userInfo2 != null) { + order.setLevelTwoId(userInfo2.getId() + ""); + order.setLevelTwoMoney(listhb.get(1).getMoney() + ""); + } + } + } + } return list; @@ -797,7 +861,7 @@ } @Override - public CommonOrderVO getInfoByOrderNo(Long uid,String orderNo) throws CommonOrderException{ + public CommonOrderVO getInfoByOrderNo(Long uid, String orderNo) throws CommonOrderException { List<CommonOrderVO> list = getOrderByUid(1, uid, null, null, null, orderNo, null, null, null); if (list == null || list.size() == 0) { return null; @@ -805,9 +869,10 @@ return list.get(0); } } - + @Override - public CommonOrderVO getCommonOrderByOrderNo(Long uid, String orderNo, Integer orderState) throws CommonOrderException { + public CommonOrderVO getCommonOrderByOrderNo(Long uid, String orderNo, Integer orderState) + throws CommonOrderException { CommonOrderVO commonOrderVO = commonOrderMapper.getCommonOrderByOrderNo(uid, orderNo, orderState); // 璁㈠崟淇℃伅涓虹┖ @@ -877,7 +942,7 @@ totalSettlement = commonOrder.getTotalPayment(); } // 瀹炰粯娆� - commonGoodsVO.setActualPay("瀹炰粯娆撅細楼" + totalSettlement); + commonGoodsVO.setActualPay("浠樻閲戦锛毬�" + totalSettlement); listOrderGoods.add(commonGoodsVO); @@ -897,9 +962,10 @@ return commonOrderVO; } - + @Override - public List<CommonOrderVO> getCouponHongbaoByOrderNo(Long uid, Integer hongBaoState, String orderNo) throws CommonOrderException { + public List<CommonOrderVO> getCouponHongbaoByOrderNo(Long uid, Integer hongBaoState, String orderNo) + throws CommonOrderException { List<CommonOrderVO> listOrder = commonOrderMapper.getCouponHongbaoByOrderNo(uid, hongBaoState, orderNo); @@ -922,38 +988,42 @@ return listOrder; } - @Override public JSONObject getRewardJumpInfo(String orderNo) { - + JSONObject map = new JSONObject(); // 璁㈠崟鏍囪瘑 List<String> signList = new ArrayList<String>(); signList.add(CommonOrder.TYPE_FANLI); signList.add(PIC_REWARD); // 鍔犲叆濂栧姳鎴愬姛鍥剧墖 map.put("signList", signList); - - + ClientTextStyleVO rewardStyleVO = new ClientTextStyleVO(); // 濂栧姳鍒歌繘搴﹁鎯� rewardStyleVO.setContent("杩斿埄濂栧姳 >"); - rewardStyleVO.setColor( "#E5005C"); + rewardStyleVO.setColor("#E5005C"); rewardStyleVO.setBottomColor("#FFDCEA"); - - Map<String, Object> jumpLink = new HashMap<String,Object>(); + + Map<String, Object> jumpLink = new HashMap<String, Object>(); jumpLink.put("orderNo", orderNo); - - Map<String, Object> jump = new HashMap<String,Object>(); - jump.put("type", 1); - jump.put("params", jumpLink); - jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("rewardCouponDetail")); - - Map<String, Object> rewardMap = new HashMap<String,Object>(); - rewardMap.put("text", rewardStyleVO); - rewardMap.put("jump", jump); - - map.put("rewardDetail", rewardMap); - + + Map<String, Object> jump = new HashMap<String, Object>(); + jump.put("type", 1); + jump.put("params", jumpLink); + jump.put("jumpDetail", jumpDetailV2Service.getByTypeCache("rewardCouponDetail")); + + Map<String, Object> rewardMap = new HashMap<String, Object>(); + rewardMap.put("text", rewardStyleVO); + rewardMap.put("jump", jump); + + map.put("rewardDetail", rewardMap); + return map; } + + @Override + public CommonOrder selectBySourceTypeAndTradeId(int sourceType, String tradeId) { + + return commonOrderMapper.selectBySourceTypeAndTradeId(sourceType, tradeId); + } } -- Gitblit v1.8.0