瀏覽代碼

修复sqlbug

hjp 3 周之前
父節點
當前提交
73481449ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/app/UserDao.xml

+ 1 - 1
src/main/resources/mapper/app/UserDao.xml

@@ -22,7 +22,7 @@
                 and u.user_type=#{userEntity.userType}
             </if>
             <if test="userEntity.userType!=null and userEntity.userType==2">
-                and u.user_type=#{userEntity.userType} and user_id in (select user_id from driver where status=2)
+                and u.user_type=#{userEntity.userType} and u.user_id in (select user_id from driver where status=2)
             </if>
             <if test="userEntity.sex!=null and userEntity.sex!=0">
                 and u.sex=#{userEntity.sex}