|
@@ -1,25 +1,23 @@
|
|
|
package com.zhongzheng.controller.user;
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.zhongzheng.common.annotation.Log;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
-import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
-import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
-import com.zhongzheng.controller.alioss.OssController;
|
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
|
+import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
|
import com.zhongzheng.modules.user.domain.UserWxFollow;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.service.IUserVisitLogService;
|
|
|
import com.zhongzheng.modules.user.service.IUserWxFollowService;
|
|
|
-import com.zhongzheng.modules.user.vo.RanKingUser;
|
|
|
import com.zhongzheng.modules.user.vo.UserVo;
|
|
|
import com.zhongzheng.modules.wx.bo.WxLoginBody;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -56,6 +54,8 @@ public class UserController extends BaseController {
|
|
|
|
|
|
private final WxLoginService wxLoginService;
|
|
|
|
|
|
+ private final ISysTenantService sysTenantService;
|
|
|
+
|
|
|
private static Logger log = LoggerFactory.getLogger(UserController.class);
|
|
|
/**
|
|
|
* 修改客户端用户
|
|
@@ -119,6 +119,12 @@ public class UserController extends BaseController {
|
|
|
vo.setUserFollowWx(1);
|
|
|
}
|
|
|
vo.setNull();
|
|
|
+ String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
+ if (StringUtils.isNotBlank(tenantId)){
|
|
|
+ SysTenant tenant = sysTenantService.getById(Long.valueOf(tenantId));
|
|
|
+ vo.setEduPhone(tenant.getEduPhone());
|
|
|
+ }
|
|
|
+
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
iUserVisitLogService.insertByAddBo(bo);
|
|
|
return AjaxResult.success(vo);
|