Commit 4a2bb8a2 by duanhq

列表显示出错 by duanht 2019/3/8

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18349 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 918e7467
......@@ -645,7 +645,9 @@
<select id="getSysMerchantList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMerchant">
<bind name="merchantId" value="'%' + merchantId + '%'" />
<if test="merchantId != null ">
<bind name="merchantId" value="'%' + merchantId + '%'"/>
</if>
SELECT
u.id,
u.username,
......@@ -689,8 +691,8 @@
and u.id = #{id,jdbcType=INTEGER}
</if>
<if test="merchantId != null and merchantId!=''">
and u.id like #{merchantId}
<if test="merchantId != null ">
and u.id like #{merchantId}
</if>
<if test="serviceKey != null and serviceKey!=''">
......@@ -762,7 +764,9 @@
<select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMechanic">
<bind name="mechanicId" value="'%' + mechanicId + '%'" />
<if test="mechanicId != null ">
<bind name="mechanicId" value="'%' + mechanicId + '%'"/>
</if>
SELECT
u.id,
u.org_id orgId,
......@@ -809,7 +813,7 @@
and u.id = #{id,jdbcType=INTEGER}
</if>
<if test="mechanicId != null and mechanicId!=''">
<if test="mechanicId != null ">
and u.id like #{mechanicId}
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!