Commit 763e5d3d authored by 罗林杰's avatar 罗林杰

修改登录bug

parent 4427ce2e
......@@ -363,6 +363,7 @@ public class WxMiniServiceImpl implements WxMiniService {
sysUser.setPhone(phone);
sysUser.setWxOpenid(openId);
sysUserRbacRepository.updateUserWxByPhone(sysUser);
memInfoRepository.updateMemWxByPhone(sysUser);
}
return this.wxLogin(resultMap, sysUserRbac);
}
......
......@@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.sys.rbac.user.dto.SysUserRbacDTO;
import org.rcisoft.sys.rbac.user.entity.SysUserRbac;
import org.springframework.stereotype.Repository;
import org.rcisoft.core.model.CyPageInfo;
import org.apache.ibatis.annotations.Param;
......@@ -243,5 +244,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
* 查询当前用户是否已被停用
*/
String getUserIsStop(String userId);
/**
* 根据手机号修改用户信息
*/
int updateMemWxByPhone(SysUserRbac var1);
}
......@@ -879,4 +879,11 @@
WHERE 1=1
AND su.business_id = #{userId}
</select>
<update id="updateMemWxByPhone" parameterType="org.rcisoft.sys.rbac.user.entity.SysUserRbac">
update mem_info
set wx_openid = #{wxOpenid}
where 1=1
and mem_phone = #{phone}
</update>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment