Browse Source

字段全匹配

chengyao 3 years ago
parent
commit
041df7c063

+ 1 - 1
src/main/java/com/diagbot/facade/SysUserFacade.java

@@ -120,7 +120,7 @@ public class SysUserFacade extends SysUserServiceImpl {
         ImageCaptchaDTO base64ForWeb = ImageCaptchaUtil.createBase64ForWeb(new ImageCaptchaParams());
         String key = UUID.randomUUID().toString();
         base64ForWeb.setCaptchaId(key);
-        redisUtils.set(key, base64ForWeb.getWords(), 60*3);
+        redisUtils.set(key, base64ForWeb.getWords(), 60*2);
         return base64ForWeb;
     };
 

+ 1 - 1
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -3617,7 +3617,7 @@
         and bas.is_deleted = 'N'
         where 1=1
         <if test="professor != null and professor != ''">
-            and bas.professor like CONCAT('%',#{professor},'%')
+            and bas.professor = #{professor}
         </if>
     </select>