main
parent
299926c650
commit
6082cdabe6
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue