|
|
@@ -939,7 +939,7 @@
|
|
|
) x WHERE x.rn = 1
|
|
|
) ioa1 ON io.id = ioa1.order_no
|
|
|
<where>
|
|
|
- and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4,5)
|
|
|
+ and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4)
|
|
|
<if test="insOrdersParam.jzgInfoId != null and insOrdersParam.jzgInfoId != ''">
|
|
|
and io.real_quote_user_id in (select bbb.mobile from sys_user bbb where bbb.id in ( select ss.user_id
|
|
|
from sys_user_jzg_info ss where 1 =1 and (ss.leader_id = #{insOrdersParam.jzgInfoId} or ss.id
|
|
|
@@ -1128,7 +1128,7 @@
|
|
|
) x WHERE x.rn = 1
|
|
|
) ioa1 ON io.id = ioa1.order_no
|
|
|
<where>
|
|
|
- and io.is_delete = 0 and sujis.type_attr NOT IN (1,2,3,4,5)
|
|
|
+ and io.is_delete = 0 and sujis.type_attr NOT IN (1,2,3,4)
|
|
|
<if test="insOrdersParam.orderNo != null and insOrdersParam.orderNo != ''">
|
|
|
AND io.id = #{insOrdersParam.orderNo}
|
|
|
</if>
|
|
|
@@ -1336,7 +1336,7 @@
|
|
|
) x WHERE x.rn = 1
|
|
|
) ioa1 ON io.id = ioa1.order_no
|
|
|
<where>
|
|
|
- and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4,5)
|
|
|
+ and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4)
|
|
|
<if test="insOrdersParam.jzgInfoId != null and insOrdersParam.jzgInfoId != ''">
|
|
|
and io.real_quote_user_id in (select bbb.mobile from sys_user bbb where bbb.id in ( select ss.user_id
|
|
|
from sys_user_jzg_info ss where 1 =1 and (ss.leader_id = #{insOrdersParam.jzgInfoId} or ss.id
|
|
|
@@ -1549,7 +1549,7 @@
|
|
|
) x WHERE x.rn = 1
|
|
|
) ioa1 ON io.id = ioa1.order_no
|
|
|
<where>
|
|
|
- and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4,5)
|
|
|
+ and io.is_delete = 0 and io.parent_id != '0' and sujis.type_attr NOT IN (1,2,3,4)
|
|
|
<if test="insOrdersParam.jzgInfoId != null and insOrdersParam.jzgInfoId != ''">
|
|
|
and io.real_quote_user_id in (select bbb.mobile from sys_user bbb where bbb.id in ( select ss.user_id
|
|
|
from sys_user_jzg_info ss where 1 =1 and (ss.leader_id = #{insOrdersParam.jzgInfoId} or ss.id
|
|
|
@@ -1751,9 +1751,9 @@
|
|
|
<where>
|
|
|
and o.is_delete = 0
|
|
|
and o.parent_id = 0
|
|
|
- AND o.company_id = #{companyId}
|
|
|
AND c.license_no = #{licenseNo}
|
|
|
AND c.vin_no = #{vinNo}
|
|
|
+ AND o.product_id = #{productId}
|
|
|
</where>
|
|
|
</select>
|
|
|
|