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 @@ ...@@ -42,10 +42,7 @@
</foreach> </foreach>
</trim> </trim>
</if> </if>
</foreach> </foreach>
</trim>
</if>
</foreach>
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
...@@ -229,15 +226,18 @@ ...@@ -229,15 +226,18 @@
<select id="selectBiddingOrders" resultMap="com.glsx.ordercenter.mapper.SysOrderMapper.BaseResultMap"> <select id="selectBiddingOrders" resultMap="com.glsx.ordercenter.mapper.SysOrderMapper.BaseResultMap">
select so.* from sys_order so select so.* from sys_order so
LEFT JOIN sys_order_bidding_records sobr ON so.id=sobr.order_id 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 <where>
<if test="serviceId != null"> so.active_status in (10,15) AND so.order_type= 4
<if test="serviceId != null">
and sobr.service_id = #{serviceId,jdbcType=INTEGER} and sobr.service_id = #{serviceId,jdbcType=INTEGER}
</if> </if>
<if test="keyWord != null"> <if test="keyWord != null">
AND ( so.order_sn LIKE CONCAT('%',#{keyWord},'%') AND ( so.order_sn LIKE CONCAT('%',#{keyWord},'%')
OR so.contact LIKE CONCAT('%',#{keyWord},'%') OR OR
so.vin_no LIKE CONCAT('%',#{keyWord},'%')) so.contact LIKE CONCAT('%',#{keyWord},'%') OR
</if> so.vin_no LIKE
</select> CONCAT('%',#{keyWord},'%'))
</if>
</where>
</select>
</mapper> </mapper>
\ No newline at end of file \ 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!