From d8359ddb48dab5cc797a9d552e11fde571f4920c Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 27 八月 2019 12:32:46 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoWeiQuanOrderServiceImpl.java | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoWeiQuanOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoWeiQuanOrderServiceImpl.java index 20aa8ac..748fac5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoWeiQuanOrderServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoWeiQuanOrderServiceImpl.java @@ -37,8 +37,7 @@ .selectByOrderIdAndOrderItemId(order.getOrderId(), order.getOrderItemId()); if (taoBaoWeiQuanOrder != null) { // 宸茬粡鏄渶鏂扮殑鐘舵�佷簡 - if (taoBaoWeiQuanOrder.getState().equalsIgnoreCase("缁存潈鎴愬姛") - || taoBaoWeiQuanOrder.getState().equalsIgnoreCase("缁存潈澶辫触")) + if (taoBaoWeiQuanOrder.getState().contains("缁存潈鎴愬姛") || taoBaoWeiQuanOrder.getState().contains("缁存潈澶辫触")) return; // 鏇存柊閲戦锛岀姸鎬佷笌鏃堕棿 TaoBaoWeiQuanOrder update = new TaoBaoWeiQuanOrder(); @@ -52,7 +51,7 @@ taoBaoWeiQuanOrderMapper.updateByPrimaryKeySelective(update); try { - if (order.getState().equalsIgnoreCase("缁存潈鎴愬姛")) { + if (order.getState().contains("缁存潈鎴愬姛")) { List<MsgOrderDetail> msgList = msgOrderDetailService.listMsgOrderByOrderId(order.getOrderId()); for (MsgOrderDetail msg : msgList) { if (msg.getType() == MsgTypeOrderTypeEnum.fanli) { @@ -87,4 +86,24 @@ return taoBaoWeiQuanOrderMapper.selectByOrderItemId(tradeId); } + @Override + public List<TaoBaoWeiQuanOrder> listByState(String state, int page, int pageSize) { + return taoBaoWeiQuanOrderMapper.listByState(state, (page - 1) * pageSize, pageSize); + } + + @Override + public long countByState(String state) { + return taoBaoWeiQuanOrderMapper.countByState(state); + } + + @Override + public List<TaoBaoWeiQuanOrder> listByOrderId(String orderId) { + return taoBaoWeiQuanOrderMapper.listByOrderId(orderId); + } + + @Override + public TaoBaoWeiQuanOrder selectByTradeId(String tradeId) { + return taoBaoWeiQuanOrderMapper.selectByOrderItem(tradeId); + } + } -- Gitblit v1.8.0