Parcourir la source

调整查询订单的接口,支持app中业务员查看订单数据

lipf il y a 2 mois
Parent
commit
c634f16949

+ 1 - 9
tenant/insurance/quotation-summary/src/main/resources/mapper/InsOrdersMapper.xml

@@ -900,19 +900,11 @@
         <where>
             and io.is_delete = 0  and io.parent_id != '0'
             <if test="insOrdersParam.jzgInfoId != null and insOrdersParam.jzgInfoId != ''">
-                and io.real_quote_user_id in (select username from  sys_user bbb where bbb.id in (
-                select ss.user_id from sys_user_jzg_info ss where ss.leader_id = #{insOrdersParam.jzgInfoId} and ss.is_delete = 0
-                ) and bbb.is_delete = 0 )
+                and io.real_quote_user_id in (select username 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 =#{insOrdersParam.jzgInfoId}) and ss.is_delete = 0 ) and bbb.is_delete = 0 )
             </if>
             <if test="insOrdersParam.orderNo != null and insOrdersParam.orderNo != ''">
                 AND io.id = #{insOrdersParam.orderNo}
             </if>
-            <if test="insOrdersParam.parentId == 0 ">
-                AND io.parent_id = 0
-            </if>
-            <if test="insOrdersParam.parentId == 1 ">
-                AND io.parent_id != 0
-            </if>
             <if test="insOrdersParam.licenseNo != null and insOrdersParam.licenseNo != ''">
                 AND ioci.license_no = #{insOrdersParam.licenseNo}
             </if>