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 @@ ...@@ -645,7 +645,9 @@
<select id="getSysMerchantList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo" <select id="getSysMerchantList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMerchant"> resultType="com.glsx.usercenter.pojo.user.SysMerchant">
<bind name="merchantId" value="'%' + merchantId + '%'" /> <if test="merchantId != null ">
<bind name="merchantId" value="'%' + merchantId + '%'"/>
</if>
SELECT SELECT
u.id, u.id,
u.username, u.username,
...@@ -689,7 +691,7 @@ ...@@ -689,7 +691,7 @@
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="merchantId != null and merchantId!=''"> <if test="merchantId != null ">
and u.id like #{merchantId} and u.id like #{merchantId}
</if> </if>
...@@ -762,7 +764,9 @@ ...@@ -762,7 +764,9 @@
<select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo" <select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMechanic"> resultType="com.glsx.usercenter.pojo.user.SysMechanic">
<bind name="mechanicId" value="'%' + mechanicId + '%'" /> <if test="mechanicId != null ">
<bind name="mechanicId" value="'%' + mechanicId + '%'"/>
</if>
SELECT SELECT
u.id, u.id,
u.org_id orgId, u.org_id orgId,
...@@ -809,7 +813,7 @@ ...@@ -809,7 +813,7 @@
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="mechanicId != null and mechanicId!=''"> <if test="mechanicId != null ">
and u.id like #{mechanicId} and u.id like #{mechanicId}
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!