Commit 8091d4c3 by fudahua

fix

parent abfb6d28
......@@ -3,8 +3,12 @@ package com.gic.haoban.manage.web.controller;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService;
import com.gic.dict.api.dto.*;
import com.gic.dict.api.dto.DictDTO;
import com.gic.dict.api.service.ManagerDictService;
import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.dto.StorePhotoDTO;
import com.gic.haoban.base.api.common.ServiceResponse;
......@@ -73,6 +77,9 @@ public class InfoController extends WebBaseController{
private ClerkMainStoreRelatedApiService clerkMainStoreRelatedApiService;
@Autowired
private StaffDepartmentRelatedApiService staffDepartmentRelatedApiService;
@Autowired
private ManagerDictService managerDictService;
private static Logger logger= LoggerFactory.getLogger(InfoController.class);
......@@ -104,6 +111,18 @@ public class InfoController extends WebBaseController{
if(loginStaff == null){
return resultResponse(HaoBanErrCode.ERR_600001);
}
if (StringUtils.isNotBlank(loginStaff.getPhoneNumber())) {
DictDTO loginPhoneNum = managerDictService.getSMSDict("app_login_phone_num", loginStaff.getPhoneNumber());
logger.info("伪登录:{}",loginStaff.getPhoneNumber(), JSONObject.toJSONString(loginPhoneNum));
if (null != loginPhoneNum) {
String midPhone = loginPhoneNum.getDictValue();
StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(enterprise.getWxEnterpriseId(), "86", midPhone);
if (null !=staffDTO) {
loginStaff=staffDTO;
}
}
}
String wxEnterpriseId = loginStaff.getWxEnterpriseId();
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseApiService.getOne(wxEnterpriseId);
......
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