linhw 2024-09-03 17:45:00 +08:00
parent 299926c650
commit 6082cdabe6
3 changed files with 2 additions and 6 deletions

View File

@ -187,10 +187,6 @@ public class AppLoginController {
@PostMapping("/login")
@ApiOperation(value = "登录", notes = "登录")
public R<?> login(@RequestBody LoginForm loginForm) {
String phone = loginForm.getPhoneNumber();
if (phone.indexOf("+") != -1) {
loginForm.setPhoneNumber(phone.substring(phone.indexOf("+") + 1,phone.length()));
}
AppUser appUser = appUserService.selectAppUserByPhone(loginForm.getPhoneNumber());
if (appUser == null) {

View File

@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<select id="selectAppRegisterByphone" resultType="com.ruoyi.app.domain.AppRegister">
select * from app_register where phone = #{phoneNumber}
select * from app_register where phone like concat('%',#{phoneNumber})
</select>
<select id="selectAppRegisterByEmail" resultType="com.ruoyi.app.domain.AppRegister">

View File

@ -443,7 +443,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<select id="selectAppUserByPhone" resultType="com.ruoyi.app.domain.AppUser">
<include refid="selectAppUserVo"/> where phone = #{phoneNumber}
<include refid="selectAppUserVo"/> where phone like concat('%',#{phoneNumber})
</select>
<select id="selectAppUserByEmail" resultType="com.ruoyi.app.domain.AppUser">