|
|
@@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select las.id, las.live_id, las.store_id, las.order_id, las.refund_amount,
|
|
|
las.refund_type, las.reasons, las.explains, las.explain_img, las.delivery_code, las.delivery_sn, las.delivery_name, las.status, las.sales_status,
|
|
|
las.order_status, las.create_time, las.is_del, las.user_id, las.consignee, las.phone_number, las.address, las.company_id, las.company_user_id, las.dept_id,
|
|
|
- cu.nick_name as company_user_nick_name, c.company_name,lo.order_code,lo.user_phone,las.user_id,
|
|
|
+ cu.nick_name as company_user_nick_name, c.company_name,lo.order_code,lo.user_phone,las.user_id
|
|
|
from live_after_sales las
|
|
|
left join live_order lo on lo.order_id = las.order_id
|
|
|
left join company_user cu on cu.user_id = las.company_user_id
|
|
|
@@ -78,6 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderCode != null and orderCode != ''"> and lo.order_code = #{orderCode}</if>
|
|
|
<if test="refundAmount != null "> and las.refund_amount = #{refundAmount}</if>
|
|
|
<if test="refundType != null "> and las.refund_type = #{refundType}</if>
|
|
|
+ <if test="status != null "> and las.status = #{status}</if>
|
|
|
+ <if test="salesStatus != null "> and las.sales_status = #{salesStatus}</if>
|
|
|
+ <if test="orderStatus != null "> and las.order_status = #{orderStatus}</if>
|
|
|
<if test="reasons != null and reasons != ''"> and las.reasons = #{reasons}</if>
|
|
|
<if test="explains != null and explains != ''"> and las.explains = #{explains}</if>
|
|
|
<if test="explainImg != null and explainImg != ''"> and las.explain_img = #{explainImg}</if>
|
|
|
@@ -87,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null "> and las.status = #{status}</if>
|
|
|
<if test="salesStatus != null "> and las.sales_status = #{salesStatus}</if>
|
|
|
<if test="orderStatus != null "> and las.order_status = #{orderStatus}</if>
|
|
|
+ <if test="deliveryStatus != null "> and las.order_status = #{deliveryStatus}</if>
|
|
|
<if test="isDel != null and isDel != ''"> and las.is_del = #{isDel}</if>
|
|
|
<if test="userId != null "> and las.user_id = #{userId}</if>
|
|
|
<if test="consignee != null and consignee != ''"> and las.consignee = #{consignee}</if>
|
|
|
@@ -95,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null "> and las.company_id = #{companyId}</if>
|
|
|
<if test="companyUserId != null "> and las.company_user_id = #{companyUserId}</if>
|
|
|
<if test="deptId != null "> and cu.dept_id = #{deptId}</if>
|
|
|
+ <if test="userPhone != null "> and lo.user_phone like concat('%',#{userPhone},'%')</if>
|
|
|
</where>
|
|
|
order by las.create_time desc
|
|
|
</select>
|