zqy
9 天以前 2d024e19ca10aed7b7cd556a1320c6319abfa6b7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java
@@ -159,8 +159,11 @@
        Long userId = user.getUserId();
        zInfoUser.setSysId(userId);
        LambdaUpdateWrapper<ZInfoUser> uw = new LambdaUpdateWrapper<>();
        uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction());
        return toAjax(zInfoUserService.update(uw));
        //    saveOrUpdate(zInfoUser));
@@ -175,6 +178,10 @@
        SysUser user = SecurityUtils.getLoginUser().getUser();
        Long userId = user.getUserId();
        zInfoUser.setSysId(userId);
        Long userId1 = zInfoUserService.getInfoBysysId(userId).getUserId();
        zInfoUser.setUserId(userId1);
//        ZInfoUser infoBysysId = zInfoUserService.getInfoBysysId(userId);
//
@@ -201,12 +208,14 @@
        //LambdaUpdateWrapper<ZInfoUser> uw = new LambdaUpdateWrapper<>();
        System.out.println("{{{{{{{"+oriUaid);
        System.out.println("{{{{{{{"+zInfoUser);
        //修改uaid相同的用户记录
        if(oriUaid!=null) {
            List<ZInfoUser> list = zInfoUserService.findByUaidToFaid(oriUaid);
            for(ZInfoUser zInfoUser1: list)
                zInfoUser1.setUaid(oriUaid);
            return toAjax(zInfoUserService.saveBatch(list));
                zInfoUser1.setUaid(uniqueId);
            return toAjax(zInfoUserService.updateBatchById(list));
        }
        else
        // uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction());