Commit 4f6a0a55 by 徐高华

Merge branch 'master_xgh_待开发调整711' into 'master'

Master xgh 待开发调整711

See merge request !194
parents 5032b15a b217b240
...@@ -321,11 +321,15 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -321,11 +321,15 @@ public class StaffApiServiceImpl implements StaffApiService {
res.setCode(3); res.setCode(3);
return res; return res;
} }
String nationCode = null ;
String phoneNumber = null;
String imageUrl = changeHeaderImageUrl(user.getAvatar()); String imageUrl = changeHeaderImageUrl(user.getAvatar());
String mobile = user.getMobile(); String mobile = user.getMobile();
String[] arr = getNationCodeAndPhoneNumber(mobile); if(StringUtils.isNotBlank(mobile)) {
String nationCode = arr[0]; String[] arr = getNationCodeAndPhoneNumber(mobile);
String phoneNumber = arr[1]; nationCode = arr[0];
phoneNumber = arr[1];
}
TabHaobanStaff staff = staffService.selectByPhoneNumberOrUserIdAndEnterpriseId(phoneNumber, userId, wxEnterpriseId); TabHaobanStaff staff = staffService.selectByPhoneNumberOrUserIdAndEnterpriseId(phoneNumber, userId, wxEnterpriseId);
if (staff != null) { if (staff != null) {
staffService.delOtherStaffByWxUserId(staff.getWxUserId(), staff.getStaffId(), wxEnterpriseId); staffService.delOtherStaffByWxUserId(staff.getWxUserId(), staff.getStaffId(), wxEnterpriseId);
......
...@@ -368,6 +368,7 @@ public class StaffController extends WebBaseController { ...@@ -368,6 +368,7 @@ public class StaffController extends WebBaseController {
logger.info("没有权限门店"); logger.info("没有权限门店");
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
logger.info("好办门店数={},wxEnterpriseId={},enterpriseIds={}",storeIds.size(),wxEnterpriseId,enterpriseIds);
List<ClerkDTO> clerkDTOList = clerkNewService.listClerkByEnterpriseIdAndSearchAndClerkType(enterpriseIds, storeIds, search); List<ClerkDTO> clerkDTOList = clerkNewService.listClerkByEnterpriseIdAndSearchAndClerkType(enterpriseIds, storeIds, search);
List<ClerkInfoVo> retList = EntityUtil.changeEntityListByJSON(ClerkInfoVo.class, clerkDTOList); List<ClerkInfoVo> retList = EntityUtil.changeEntityListByJSON(ClerkInfoVo.class, clerkDTOList);
if (CollectionUtils.isNotEmpty(retList)) { if (CollectionUtils.isNotEmpty(retList)) {
......
...@@ -160,6 +160,8 @@ public class WxEnterpriseInfoController extends WebBaseController { ...@@ -160,6 +160,8 @@ public class WxEnterpriseInfoController extends WebBaseController {
} else { } else {
loginStaff = staffDTOS.get(0); loginStaff = staffDTOS.get(0);
} }
}else {
logger.info("伪登录关联用户查不到,user={}",dictValue);
} }
} }
} }
......
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