From 01572e1f679e789e434e9cdfac491b54b68a0ec0 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Fri, 12 Sep 2025 15:09:18 +0800
Subject: [PATCH] 商户信息
---
oying-system/src/main/resources/mapper/rider/RiderOrderRecordMapper.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 48 insertions(+), 8 deletions(-)
diff --git a/oying-system/src/main/resources/mapper/rider/RiderOrderRecordMapper.xml b/oying-system/src/main/resources/mapper/rider/RiderOrderRecordMapper.xml
index 5549df0..d8db864 100644
--- a/oying-system/src/main/resources/mapper/rider/RiderOrderRecordMapper.xml
+++ b/oying-system/src/main/resources/mapper/rider/RiderOrderRecordMapper.xml
@@ -29,13 +29,42 @@
<result column="merchant_longitude" property="merchantLongitude"/>
<result column="merchant_latitude" property="merchantLatitude"/>
<result column="user_id" property="userId"/>
+ <result column="delivery_fee_id" property="deliveryFeeId"/>
+ <result column="order_time" property="orderTime"/>
+ <result column="user_name" property="userName"/>
</resultMap>
<sql id="Base_Column_List">
- record_id, order_id, order_num, merchant_id, merchant_name, merchant_address,
- receiver_address, order_status, accept_time, accept_num, finish_time, delivery_duration,
- is_overtime, order_source, order_income, create_by, create_time, update_by, update_time,
- rider_id, phone, rider_name, user_id, user_longitude, user_latitude, merchant_longitude, merchant_latitude
+ record_id,
+ order_id,
+ order_num,
+ merchant_id,
+ merchant_name,
+ merchant_address,
+ receiver_address,
+ order_status,
+ accept_time,
+ accept_num,
+ finish_time,
+ delivery_duration,
+ is_overtime,
+ order_source,
+ order_income,
+ create_by,
+ create_time,
+ update_by,
+ update_time,
+ rider_id,
+ phone,
+ rider_name,
+ user_id,
+ user_longitude,
+ user_latitude,
+ merchant_longitude,
+ merchant_latitude,
+ delivery_fee_id,
+ order_time,
+ user_name
</sql>
<select id="findAll" resultMap="BaseResultMap">
select
@@ -48,23 +77,29 @@
<if test="criteria.userId != null">
and user_id = #{criteria.userId}
</if>
+ <if test="criteria.userName != null">
+ and user_name = #{criteria.userName}
+ </if>
<if test="criteria.orderId != null">
and order_id = #{criteria.orderId}
</if>
- <if test="criteria.orderNum != null">
+ <if test="criteria.phone != null">
+ and phone = #{criteria.phone}
+ </if>
+ <if test="criteria.orderNum != null">
and order_num = #{criteria.orderNum}
</if>
<if test="criteria.merchantId != null">
and merchant_id = #{criteria.merchantId}
</if>
<if test="criteria.merchantName != null">
- and merchant_name like concat('%',#{criteria.merchantName},'%')
+ and merchant_name like concat('%', #{criteria.merchantName}, '%')
</if>
<if test="criteria.merchantAddress != null">
- and merchant_address like concat('%',#{criteria.merchantAddress},'%')
+ and merchant_address like concat('%', #{criteria.merchantAddress}, '%')
</if>
<if test="criteria.receiverAddress != null">
- and receiver_address like concat('%',#{criteria.receiverAddress},'%')
+ and receiver_address like concat('%', #{criteria.receiverAddress}, '%')
</if>
<if test="criteria.orderStatus != null">
and order_status = #{criteria.orderStatus}
@@ -84,4 +119,9 @@
</where>
order by create_time desc
</select>
+
+ <select id="selectRiderInfo" resultType="com.oying.modules.rider.domain.RiderOrderRecord">
+ select record_id recordId ,accept_time as acceptTime, order_time as orderTime
+ from qs_rider_order_record where order_num = #{orderNum}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3