Commit 9fe30237 by qwmqiuwenmin

fix

parent 3a043a83
package com.gic.haoban.manage.web.controller; package com.gic.haoban.manage.web.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.haoban.common.utils.HaobanResponse; import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.StaffDTO; import com.gic.haoban.manage.api.dto.StaffDTO;
import com.gic.haoban.manage.api.service.StaffApiService; import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.web.auth.AuthRequestUtil; import com.gic.haoban.manage.web.auth.AuthRequestUtil;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode; import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.vo.LoginVO; import com.gic.haoban.manage.web.vo.LoginVO;
@RestController @RestController
public class LoginController extends WebBaseController{ public class LoginController extends WebBaseController{
private static Logger logger= LoggerFactory.getLogger(LoginController.class);
@Autowired @Autowired
StaffApiService staffApiService; StaffApiService staffApiService;
...@@ -20,6 +26,7 @@ public class LoginController extends WebBaseController{ ...@@ -20,6 +26,7 @@ public class LoginController extends WebBaseController{
public HaobanResponse login() { public HaobanResponse login() {
LoginVO loginVO = new LoginVO(); LoginVO loginVO = new LoginVO();
StaffDTO staff = staffApiService.selectById("1"); StaffDTO staff = staffApiService.selectById("1");
logger.info("【好办登录】staff={}",JSON.toJSONString(staff));
loginVO.setWxEnterpriseId("1"); loginVO.setWxEnterpriseId("1");
loginVO.setStaffDTO(staff); loginVO.setStaffDTO(staff);
AuthRequestUtil.setSessionUser(loginVO); AuthRequestUtil.setSessionUser(loginVO);
......
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