Explorar o código

【CHG】解决线上报错的SQL

ZhaoMn %!s(int64=4) %!d(string=hai) anos
pai
achega
f4ca1024f7

+ 4 - 4
railway-business/src/main/resources/mapper/baseinfo/BaseDeptStationMapper.xml

@@ -44,8 +44,8 @@
       <if test='null != deptId'>
         dept_id,
       </if>
-      <if test='null != deptStationId'>
-        dept_station_id,
+      <if test='null != stationId'>
+        station_id,
       </if>
       <if test='null != qjlc'>
         qjlc,
@@ -85,8 +85,8 @@
       <if test='null != deptId'>
         #{deptId},
       </if>
-      <if test='null != deptStationId'>
-        #{deptStationId},
+      <if test='null != stationId'>
+        #{stationId},
       </if>
       <if test='null != qjlc'>
         #{qjlc},

+ 1 - 2
railway-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -73,7 +73,7 @@
     <if test="roleId != null and roleId != 0">
       AND ur.role_id = #{roleId}
     </if>
-    <if test="searchValue != null and searchValue != 0">
+    <if test="searchValue != null and searchValue != ''">
       AND (
       u.real_name like concat('%', #{searchValue}, '%')
       OR u.phone like concat('%', #{searchValue}, '%')
@@ -148,7 +148,6 @@
     where u.user_name = #{userName}
   </select>
 
-
   <select id="selectUserByNickName" parameterType="String" resultMap="SysUserResult">
     <include refid="selectUserVo"/>
     where u.nick_name = #{nickName}