菠萝派接口-退款检测 判断该订单是否属于该店铺的
正在显示
2 个修改的文件
包含
4 行增加
和
1 行删除
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
10 | </select> | 10 | </select> |
11 | 11 | ||
12 | <select id="getIMDoingOrderBean" parameterType="java.util.Map" resultMap="iMDoingOrderBean"> | 12 | <select id="getIMDoingOrderBean" parameterType="java.util.Map" resultMap="iMDoingOrderBean"> |
13 | select order_code,order_status from ${doingOrderTable} WHERE order_code = #{orderCode} | 13 | select order_code,order_status from ${doingOrderTable} WHERE order_code = #{orderCode} and supplier_id =#{supplierId} |
14 | </select> | 14 | </select> |
15 | 15 | ||
16 | 16 | ... | ... |
... | @@ -31,6 +31,8 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef | ... | @@ -31,6 +31,8 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef |
31 | Map<String,Object> params = new HashMap<>(); | 31 | Map<String,Object> params = new HashMap<>(); |
32 | params.put("orderCode",callRequest.getBizModel().getOrderID()); | 32 | params.put("orderCode",callRequest.getBizModel().getOrderID()); |
33 | List<CheckRefundStatusBean> checkRefundStatusBeanList = new ArrayList<>(); | 33 | List<CheckRefundStatusBean> checkRefundStatusBeanList = new ArrayList<>(); |
34 | |||
35 | |||
34 | //先判断是否有退款 | 36 | //先判断是否有退款 |
35 | if(pineappleDao.countCheckRefundStatusResponse(params)>0){ | 37 | if(pineappleDao.countCheckRefundStatusResponse(params)>0){ |
36 | Map<String,Object> map = new HashMap<>(); | 38 | Map<String,Object> map = new HashMap<>(); |
... | @@ -40,6 +42,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef | ... | @@ -40,6 +42,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef |
40 | map.put("doingOrderTable","im_doing_order_" + tableIndex); | 42 | map.put("doingOrderTable","im_doing_order_" + tableIndex); |
41 | map.put("orderStatus", IMOrderStatus.RefundSuccess); | 43 | map.put("orderStatus", IMOrderStatus.RefundSuccess); |
42 | map.put("orderCode",callRequest.getBizModel().getOrderID()); | 44 | map.put("orderCode",callRequest.getBizModel().getOrderID()); |
45 | map.put("supplierId",callRequest.getSupplier().getId()); | ||
43 | redisMysqlDbConfig = String.format(AppConstants.REDIS_DB_TYPE, AppConstants.INTEGRALMALL_ORDER_DATABASE, dataBaseModule.intValue()); | 46 | redisMysqlDbConfig = String.format(AppConstants.REDIS_DB_TYPE, AppConstants.INTEGRALMALL_ORDER_DATABASE, dataBaseModule.intValue()); |
44 | DBContextHolder.setDBType(redisMysqlDbConfig);//切换数据源 | 47 | DBContextHolder.setDBType(redisMysqlDbConfig);//切换数据源 |
45 | //再判断是否有退款成功的(全部退款,部分退款,退款中) | 48 | //再判断是否有退款成功的(全部退款,部分退款,退款中) | ... | ... |
-
请 注册 或 登录 后发表评论