cc439088 刘嘉

菠萝派接口-退款检测 判断该订单是否属于该店铺的

1 个父辈 6f894e62
......@@ -10,7 +10,7 @@
</select>
<select id="getIMDoingOrderBean" parameterType="java.util.Map" resultMap="iMDoingOrderBean">
select order_code,order_status from ${doingOrderTable} WHERE order_code = #{orderCode}
select order_code,order_status from ${doingOrderTable} WHERE order_code = #{orderCode} and supplier_id =#{supplierId}
</select>
......
......@@ -31,6 +31,8 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
Map<String,Object> params = new HashMap<>();
params.put("orderCode",callRequest.getBizModel().getOrderID());
List<CheckRefundStatusBean> checkRefundStatusBeanList = new ArrayList<>();
//先判断是否有退款
if(pineappleDao.countCheckRefundStatusResponse(params)>0){
Map<String,Object> map = new HashMap<>();
......@@ -40,6 +42,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
map.put("doingOrderTable","im_doing_order_" + tableIndex);
map.put("orderStatus", IMOrderStatus.RefundSuccess);
map.put("orderCode",callRequest.getBizModel().getOrderID());
map.put("supplierId",callRequest.getSupplier().getId());
redisMysqlDbConfig = String.format(AppConstants.REDIS_DB_TYPE, AppConstants.INTEGRALMALL_ORDER_DATABASE, dataBaseModule.intValue());
DBContextHolder.setDBType(redisMysqlDbConfig);//切换数据源
//再判断是否有退款成功的(全部退款,部分退款,退款中)
......