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

修改登录bug

parent 4427ce2e
...@@ -363,6 +363,7 @@ public class WxMiniServiceImpl implements WxMiniService { ...@@ -363,6 +363,7 @@ public class WxMiniServiceImpl implements WxMiniService {
sysUser.setPhone(phone); sysUser.setPhone(phone);
sysUser.setWxOpenid(openId); sysUser.setWxOpenid(openId);
sysUserRbacRepository.updateUserWxByPhone(sysUser); sysUserRbacRepository.updateUserWxByPhone(sysUser);
memInfoRepository.updateMemWxByPhone(sysUser);
} }
return this.wxLogin(resultMap, sysUserRbac); return this.wxLogin(resultMap, sysUserRbac);
} }
......
...@@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.ResultMap; ...@@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.rcisoft.core.model.CyPersistModel; import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.sys.rbac.user.dto.SysUserRbacDTO; import org.rcisoft.sys.rbac.user.dto.SysUserRbacDTO;
import org.rcisoft.sys.rbac.user.entity.SysUserRbac;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.rcisoft.core.model.CyPageInfo; import org.rcisoft.core.model.CyPageInfo;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -243,5 +244,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> { ...@@ -243,5 +244,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
* 查询当前用户是否已被停用 * 查询当前用户是否已被停用
*/ */
String getUserIsStop(String userId); String getUserIsStop(String userId);
/**
* 根据手机号修改用户信息
*/
int updateMemWxByPhone(SysUserRbac var1);
} }
...@@ -879,4 +879,11 @@ ...@@ -879,4 +879,11 @@
WHERE 1=1 WHERE 1=1
AND su.business_id = #{userId} AND su.business_id = #{userId}
</select> </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> </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