|
@@ -550,6 +550,7 @@
|
|
|
SELECT count(1) FROM tz_order a
|
|
SELECT count(1) FROM tz_order a
|
|
|
LEFT JOIN tz_user_addr_order b on a.addr_order_id=b.addr_order_id
|
|
LEFT JOIN tz_user_addr_order b on a.addr_order_id=b.addr_order_id
|
|
|
LEFT JOIN tz_shop_detail c on a.shop_id=c.shop_id
|
|
LEFT JOIN tz_shop_detail c on a.shop_id=c.shop_id
|
|
|
|
|
+ left join tz_user d on a.user_id = d.user_id
|
|
|
<where>
|
|
<where>
|
|
|
<if test="orderParam.orderNumber != null and orderParam.orderNumber != ''">
|
|
<if test="orderParam.orderNumber != null and orderParam.orderNumber != ''">
|
|
|
and a.order_number = #{orderParam.orderNumber}
|
|
and a.order_number = #{orderParam.orderNumber}
|
|
@@ -563,6 +564,9 @@
|
|
|
<if test="orderParam.dvyType != null and orderParam.dvyType != ''">
|
|
<if test="orderParam.dvyType != null and orderParam.dvyType != ''">
|
|
|
and a.dvy_type = #{orderParam.dvyType}
|
|
and a.dvy_type = #{orderParam.dvyType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="orderParam.userAttrType != null and orderParam.userAttrType != '' and orderParam.userAttrType != 0">
|
|
|
|
|
+ AND d.user_attr_type = #{orderParam.userAttrType}
|
|
|
|
|
+ </if>
|
|
|
<if test="orderParam.shopId != null">
|
|
<if test="orderParam.shopId != null">
|
|
|
and a.shop_id = #{orderParam.shopId}
|
|
and a.shop_id = #{orderParam.shopId}
|
|
|
</if>
|
|
</if>
|