017cea9f 刘嘉

菠萝派接口-订单下载,不允许查询退款中的订单

1 个父辈 89909241
......@@ -137,4 +137,8 @@ public interface IMDoingOrderDao {
int countPineAppleOrder(Map<String, Object> params);
List<DoingOrderDetailResponse> pagerPineAppleOrders(Map<String, Object> params);
//根据订单号获取订单详情
DoingOrderDetailResponse getIMOrderDetailByMap(Map<String, Object> param);
}
......
......@@ -264,6 +264,15 @@
where do.order_code = #{orderCode} AND do.delete_flag=1
</select>
<select id="getIMOrderDetailByMap" parameterType="map" resultMap="oneIMOrderDetailColumn">
select <include refid="Select_DoingOrder_column"/>,do.transaction_id,do1.deduction_line_coupon_price,do1.deduction_line_vb_price
from ${doingOrderTable} do left join ${doingOrder1Table} do1
on do.order_id=do1.order_id
where do.order_code = #{orderCode} AND do.delete_flag=1 and order_status IN ('1','3','4','5','8','100')
</select>
<!-- 根据main_order_code查询现金订单详情-->
<select id="getIMOrderDetailByMainOrderCode" parameterType="map" resultMap="oneIMOrderDetailColumn">
SELECT <include refid="Select_DoingOrder_column"/> FROM
......
......@@ -410,7 +410,7 @@ public class IMDoingOrderService extends BaseServiceImpl implements IIMDoingOrde
param.put("doingOrder1Table", "im_doing_order1_" + tableName);
param.put("orderCode", orderCode);
DBContextHolder.setDBType(redisMysqlDbConfig);
DoingOrderDetailResponse imDoingOrder = iMDoingOrderDao.getIMOrderDetailByOrderCode(param);
DoingOrderDetailResponse imDoingOrder = iMDoingOrderDao.getIMOrderDetailByMap(param);
imDoingOrder = this.getOrderDetailStatusStr(imDoingOrder);
return imDoingOrder;
}
......