Browse Source

订单客户类型显示

lyhzzz 2 years ago
parent
commit
2be2ee8b0e

+ 2 - 2
src/main/resources/mapper/manage/DownloadOrderMapper.xml

@@ -4,14 +4,14 @@
 
     <select id="pageList" resultType="com.fdkankan.manage.vo.response.DownOrderVo">
         select o.* ,
-               null as customer_name,null as customer_type,null as end_customer,null as use_type ,null as project_num ,
+               null as customer_name,0 as customer_type,null as end_customer,null as use_type ,null as project_num ,
                null as remark,null as downType,null as agentName,null as agentId,
                 u.user_name  ,
               '线上' as payMethod
         from  t_download_order o
         left join t_user u on o.user_id = u.id
         <include refid="commonWhere"></include>
-        <if test="param.customerType!=null or param.payMethod==1 or param.useType!=null">
+        <if test="param.customerType==1 or param.payMethod==1 or param.useType!=null">
            and  o.rec_status = 'ABC'
         </if>
         union all

+ 2 - 2
src/main/resources/mapper/manage/IncrementOrderMapper.xml

@@ -4,14 +4,14 @@
 
     <select id="pageList" resultType="com.fdkankan.manage.vo.response.IncrementOrderVo">
         select o.* ,
-               null as customer_name,null as customer_type,null as end_customer,null as use_type ,null as project_num ,
+               null as customer_name,0 as customer_type,null as end_customer,null as use_type ,null as project_num ,
                null as remark,null as agentName,null as agentId,
                 u.user_name,u.nick_name,
                '线上' as payMethod
         from  t_increment_order o
         left join t_user u on o.user_id = u.id
         <include refid="commonWhere"></include>
-        <if test="param.customerType!=null or param.payMethod==1 or param.useType!=null">
+        <if test="param.customerType==1 or param.payMethod==1 or param.useType!=null">
            and o.rec_status = 'ABC'
         </if>
         union all