|
@@ -5,12 +5,14 @@
|
|
|
|
|
|
<select id="saleOrderList" resultType="com.fdkankan.sale.vo.response.RepairerVo">
|
|
<select id="saleOrderList" resultType="com.fdkankan.sale.vo.response.RepairerVo">
|
|
select distinct r.* ,rr.check_result,c.customer_name,c.company_name, cd.send_type,cd.send_tracking_num,
|
|
select distinct r.* ,rr.check_result,c.customer_name,c.company_name, cd.send_type,cd.send_tracking_num,
|
|
- o.sys_user_id as saleId,rr.sys_user_id as repairManId,cd.is_sign_for
|
|
|
|
|
|
+ o.sys_user_id as saleId,rr.sys_user_id as repairManId,cd.is_sign_for,ri.status as invoiceOpenStatus
|
|
from t_repair r
|
|
from t_repair r
|
|
left join t_order_receiving o on r.repair_id = o.repair_id
|
|
left join t_order_receiving o on r.repair_id = o.repair_id
|
|
left join t_repair_register rr on r.repair_id = rr.repair_id
|
|
left join t_repair_register rr on r.repair_id = rr.repair_id
|
|
left join t_customer c on r.repair_id = c.repair_id
|
|
left join t_customer c on r.repair_id = c.repair_id
|
|
left join t_customer_address cd on r.repair_id = cd.repair_id
|
|
left join t_customer_address cd on r.repair_id = cd.repair_id
|
|
|
|
+ left join t_repair_invoice ri on r.repair_id = ri.repair_id
|
|
|
|
+
|
|
where r.rec_status = 'A' and r.status in
|
|
where r.rec_status = 'A' and r.status in
|
|
<foreach item="status" collection="param.statusList" open="(" separator="," close=")">
|
|
<foreach item="status" collection="param.statusList" open="(" separator="," close=")">
|
|
#{status}
|
|
#{status}
|
|
@@ -181,13 +183,12 @@
|
|
|
|
|
|
<select id="pageInfoList" resultType="com.fdkankan.sale.vo.response.RepairerVo">
|
|
<select id="pageInfoList" resultType="com.fdkankan.sale.vo.response.RepairerVo">
|
|
select distinct r.*,rr.check_result,o.create_time as orderReceivingTime,c.customer_name ,c.company_name,
|
|
select distinct r.*,rr.check_result,o.create_time as orderReceivingTime,c.customer_name ,c.company_name,
|
|
- o.sys_user_id as saleId,rr.sys_user_id as repairManId, rr.over_time as repairOverTime,ri.status as invoiceOpenStatus
|
|
|
|
|
|
+ o.sys_user_id as saleId,rr.sys_user_id as repairManId, rr.over_time as repairOverTime
|
|
from t_repair r
|
|
from t_repair r
|
|
left join t_order_receiving o on r.repair_id = o.repair_id
|
|
left join t_order_receiving o on r.repair_id = o.repair_id
|
|
left join t_repair_register rr on r.repair_id = rr.repair_id
|
|
left join t_repair_register rr on r.repair_id = rr.repair_id
|
|
left join t_customer c on r.repair_id = c.repair_id
|
|
left join t_customer c on r.repair_id = c.repair_id
|
|
left join t_repair_pay rp on r.repair_id = rp.repair_id
|
|
left join t_repair_pay rp on r.repair_id = rp.repair_id
|
|
- left join t_repair_invoice ri on r.repair_id = ri.repair_id
|
|
|
|
where r.rec_status = 'A'
|
|
where r.rec_status = 'A'
|
|
<if test="param.repairId != null and param.repairId != ''">
|
|
<if test="param.repairId != null and param.repairId != ''">
|
|
and r.repair_id like concat ('%',#{param.repairId},'%')
|
|
and r.repair_id like concat ('%',#{param.repairId},'%')
|