|
@@ -131,6 +131,40 @@
|
|
print_count, car_no, customer_phone, customer_grade, oil_type
|
|
print_count, car_no, customer_phone, customer_grade, oil_type
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
+ <!--根据用户openId和用户类型userType查询用户订单-->
|
|
|
|
+ <select id="getOrderListByOpenIdAndUserType" parameterType="com.platform.yijia.pojo.AppUserInfo" resultType="com.platform.yijia.pojo.PayOrder">
|
|
|
|
+ SELECT
|
|
|
|
+ B.order_no AS orderNo,
|
|
|
|
+ B.oil_gun AS oilGun,
|
|
|
|
+ B.oil_name AS oilName,
|
|
|
|
+ B.consumer AS consumer,
|
|
|
|
+ B.order_liters AS orderLiters,
|
|
|
|
+ B.pay_date AS payDate,
|
|
|
|
+ B.amt AS amt,
|
|
|
|
+ B.created_date AS createdDate,
|
|
|
|
+ B.oil_pirce AS oilPirce,
|
|
|
|
+ B.station_name AS stationName,
|
|
|
|
+ B.receivable_amt AS receivableAmt,
|
|
|
|
+ B.discount_amt AS discountAmt,
|
|
|
|
+ B.score AS score,
|
|
|
|
+ B.discount_coupon_amt AS discountCouponAmt
|
|
|
|
+ FROM
|
|
|
|
+ app_user_info AS A LEFT JOIN pay_order AS B ON A.user_id = B.consumer_id
|
|
|
|
+ <where>
|
|
|
|
+ <if test="userType != null and userType !=''">
|
|
|
|
+ A.user_type = #{userType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="blogOpenid != null and blogOpenid !=''">
|
|
|
|
+ AND A.blog_openid = #{blogOpenid}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="minaOpenid != null and minaOpenid !=''">
|
|
|
|
+ AND A.mina_openid = #{minaOpenid}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ ORDER BY B.created_date DESC
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
<!-- 查询加油员-->
|
|
<!-- 查询加油员-->
|
|
<select id="selectPersonelName" parameterType="map" resultType="map">
|
|
<select id="selectPersonelName" parameterType="map" resultType="map">
|
|
SELECT
|
|
SELECT
|