Commit 4359d8a5708959bced18198ee7036226483dd842
1 parent
145b5e9bc4
Exists in
master
and in
8 other branches
增加
Showing 1 changed file with 2 additions and 2 deletions
platform-biz-service/src/main/resources/mainOrm/Users.xml
View file @
4359d8a
| ... | ... | @@ -211,7 +211,7 @@ |
| 211 | 211 | <if test="ksId != null"> |
| 212 | 212 | and u.ks_id = #{ksId,jdbcType=INTEGER} |
| 213 | 213 | </if> |
| 214 | - <if test="orgIds != null"> | |
| 214 | + <if test="orgIds != null and orgIds.size() > 0"> | |
| 215 | 215 | and u.org_id in |
| 216 | 216 | <foreach collection="orgIds" index="index" item="item" open="(" separator="," close=")"> |
| 217 | 217 | #{item} |
| ... | ... | @@ -248,7 +248,7 @@ |
| 248 | 248 | <if test="ksId != null and ksId != ''"> |
| 249 | 249 | and u.ks_id = #{ksId,jdbcType=INTEGER} |
| 250 | 250 | </if> |
| 251 | - <if test="orgIds != null"> | |
| 251 | + <if test="orgIds != null and orgIds.size() > 0"> | |
| 252 | 252 | and u.org_id in |
| 253 | 253 | <foreach collection="orgIds" index="index" item="item" open="(" separator="," close=")"> |
| 254 | 254 | #{item} |