Commit b0cca0d8 by zhengxj

finish 服务商端订单市场 on 20190819

by zhengxj 

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23448 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent b5994bff
......@@ -42,10 +42,7 @@
</foreach>
</trim>
</if>
</foreach>
</trim>
</if>
</foreach>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
......@@ -229,15 +226,18 @@
<select id="selectBiddingOrders" resultMap="com.glsx.ordercenter.mapper.SysOrderMapper.BaseResultMap">
select so.* from sys_order so
LEFT JOIN sys_order_bidding_records sobr ON so.id=sobr.order_id
where so.active_status in (10,15) AND so.order_type= 4
<if test="serviceId != null">
<where>
so.active_status in (10,15) AND so.order_type= 4
<if test="serviceId != null">
and sobr.service_id = #{serviceId,jdbcType=INTEGER}
</if>
<if test="keyWord != null">
AND ( so.order_sn LIKE CONCAT('%',#{keyWord},'%')
OR so.contact LIKE CONCAT('%',#{keyWord},'%') OR
so.vin_no LIKE CONCAT('%',#{keyWord},'%'))
</if>
</select>
</if>
<if test="keyWord != null">
AND ( so.order_sn LIKE CONCAT('%',#{keyWord},'%')
OR
so.contact LIKE CONCAT('%',#{keyWord},'%') OR
so.vin_no LIKE
CONCAT('%',#{keyWord},'%'))
</if>
</where>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!