Commit 5fab9801 by zhengxj

finish 整合订单列表搜索条件 on 20191010 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24160 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 1da02a7f
......@@ -1240,7 +1240,7 @@
</choose>
and (
<!-- 合并未知订单单和普通单 and (
so.work_order_no = ''
OR ISNULL(so.work_order_no)
OR (
......@@ -1248,7 +1248,7 @@
AND (so.merchant_id) IS NOT NULL
AND (so.shop_id) IS NOT NULL
)
)
) -->
<if test="orderSn != null and orderSn!=''">
and so.order_sn like "%"#{orderSn}"%"
......@@ -1271,17 +1271,17 @@
and sp.group_id = #{orderChannel}
</if>
<if test="vinNo != null and vinNo!=''">
<!-- <if test="vinNo != null and vinNo!=''">
and so.vin_no like "%"#{vinNo}"%"
</if>
</if> -->
<if test="carOwner != null and carOwner!=''">
<!-- <if test="carOwner != null and carOwner!=''">
and so.car_owner like "%"#{carOwner}"%"
</if>
</if> -->
<if test="shopName != null and shopName!=''">
<!-- <if test="shopName != null and shopName!=''">
and ssm.shop_name like "%"#{shopName}"%"
</if>
</if> -->
<if test="province != null and province!=''">
and p.area_name like "%"#{province}"%"
......@@ -1291,9 +1291,9 @@
and c.area_name like "%"#{city}"%"
</if>
<if test="workOrderNo != null and workOrderNo!=''">
<!-- <if test="workOrderNo != null and workOrderNo!=''">
and so.work_order_no like "%"#{workOrderNo}"%"
</if>
</if> -->
<if test="serviceName != null and serviceName!=''">
and sc.name like "%"#{serviceName}"%"
......@@ -1301,8 +1301,12 @@
<if test="orderType != null and orderType!=''">
and so.order_type = #{orderType}
</if>
<if test="keyWord != null and keyWord!=''">
and(( sm.name like "%"#{keyWord}"%"
and sm.user_type = 3) or ssm.shop_name like "%"#{keyWord}"%" or so.car_owner like "%"#{keyWord}"%" or so.vin_no like "%"#{keyWord}"%" or so.work_order_no like "%"#{keyWord}"%")
</if>
<choose>
<when test="userType == 2">
and so.shop_id = #{userId}
......@@ -1378,10 +1382,10 @@
</otherwise>
</choose>
<if test="machanicInfo != null and machanicInfo!=''">
and (sm.name like "%"#{machanicInfo}"%" or sm.phone_number like "%"#{machanicInfo}"%" )
<!-- <if test="machanicInfo != null and machanicInfo!=''">
and sm.name like "%"#{machanicInfo}"%"
and sm.user_type = 3
</if>
</if> -->
and so.order_type != 4
order by so.create_time desc
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!