Commit 4df78bd4 by zhengxj

finish 优化报价列表搜索 on 20190902

by zhengxj 

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23738 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 76fe5d37
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</resultMap> </resultMap>
<resultMap id="ExtBaseResultMap" type="com.glsx.ordercenter.dto.BiddingOrderResp" extends="BaseResultMap"> <resultMap id="ExtBaseResultMap" type="com.glsx.ordercenter.dto.BiddingOrderResp" extends="BaseResultMap">
<result column="name" jdbcType="VARCHAR" property="name"/> <result column="name" jdbcType="VARCHAR" property="name"/>
<result column="username" jdbcType="VARCHAR" property="serviceProvider"/> <result column="provider_name" jdbcType="VARCHAR" property="serviceProvider"/>
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber"/> <result column="phone_number" jdbcType="VARCHAR" property="phoneNumber"/>
</resultMap> </resultMap>
...@@ -195,11 +195,10 @@ ...@@ -195,11 +195,10 @@
<select id="selectBiddingList" resultMap="ExtBaseResultMap"> <select id="selectBiddingList" resultMap="ExtBaseResultMap">
SELECT SELECT
sobr.*,su.`name`,su.username,su.phone_number from sys_order_bidding_records sobr sobr.*,su.`name`,sm.provider_name ,su.phone_number from sys_order_bidding_records sobr
LEFT JOIN sys_order so ON sobr.order_id = so.id LEFT JOIN sys_order so ON sobr.order_id = so.id
LEFT JOIN sys_user su ON sobr.service_id = su.id LEFT JOIN sys_user su ON sobr.service_id = su.id
LEFT JOIN sys_user_services sus ON su.id = sus.user_id LEFT JOIN sys_manager sm ON su.id = sm.user_id
LEFT JOIN sys_dict_data sdd ON sdd.data_key = sus.service_key
<where> <where>
sobr.price &gt; 0 and sobr.is_bidding &lt;&gt; 0 sobr.price &gt; 0 and sobr.is_bidding &lt;&gt; 0
<if test="orderId != null"> <if test="orderId != null">
...@@ -211,7 +210,7 @@ ...@@ -211,7 +210,7 @@
<if test="isSelectByPhone==0"> <if test="isSelectByPhone==0">
<if test="keyWord != null"> <if test="keyWord != null">
AND ( su.`name` LIKE CONCAT('%',#{keyWord},'%') OR AND ( su.`name` LIKE CONCAT('%',#{keyWord},'%') OR
sdd.data_value LIKE CONCAT('%',#{keyWord},'%')) sm.provider_name LIKE CONCAT('%',#{keyWord},'%'))
</if> </if>
</if> </if>
</where> </where>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!