|
|
@ -168,9 +168,10 @@ public class PoiStoreStaffService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//账号信息
|
|
|
|
//账号信息
|
|
|
|
QueryWrapper<PrivilageAccountDO> wrapperAccount = new QueryWrapper<>();
|
|
|
|
QueryWrapper<PrivilageAccountDO> wrapperAccount = new QueryWrapper<>();
|
|
|
|
wrapperAccount.eq("user_id",poiStoreStaff.getUserId());
|
|
|
|
wrapperAccount.eq("user_id",poiStoreStaff.getUserId()).eq("type",Constants.ACCOUNT_STATUS_UNABLE);
|
|
|
|
PrivilageAccountDO privilageAccountDO = privilageAccountDOMapper.selectOne(wrapperAccount);
|
|
|
|
PrivilageAccountDO privilageAccountDO = privilageAccountDOMapper.selectOne(wrapperAccount);
|
|
|
|
if(privilageAccountDO!=null){
|
|
|
|
if(privilageAccountDO!=null){
|
|
|
|
|
|
|
|
poiStoreStaffVO.setAccountId(privilageAccountDO.getId());
|
|
|
|
if(privilageAccountDO.getStatus()!=null &&privilageAccountDO.getStatus()== 1){
|
|
|
|
if(privilageAccountDO.getStatus()!=null &&privilageAccountDO.getStatus()== 1){
|
|
|
|
poiStoreStaffVO.setAccountFlag(true);
|
|
|
|
poiStoreStaffVO.setAccountFlag(true);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
@ -179,6 +180,7 @@ public class PoiStoreStaffService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.add(poiStoreStaffVO);
|
|
|
|
list.add(poiStoreStaffVO);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
result.put("shopId",shopNameByUserId.getStoreId());
|
|
|
|
//店铺信息
|
|
|
|
//店铺信息
|
|
|
|
PoiStore poiStore = poiStoreDOMapper.selectById(shopNameByUserId.getStoreId());
|
|
|
|
PoiStore poiStore = poiStoreDOMapper.selectById(shopNameByUserId.getStoreId());
|
|
|
|
if (null != poiStore) {
|
|
|
|
if (null != poiStore) {
|
|
|
@ -278,15 +280,20 @@ public class PoiStoreStaffService {
|
|
|
|
PoiStoreStaff poiStoreStaff = poiStoreStaffDOMapper.selectById(id);
|
|
|
|
PoiStoreStaff poiStoreStaff = poiStoreStaffDOMapper.selectById(id);
|
|
|
|
PoiStoreStaffVO staffVO = new PoiStoreStaffVO();
|
|
|
|
PoiStoreStaffVO staffVO = new PoiStoreStaffVO();
|
|
|
|
if (null == poiStoreStaff) return staffVO;
|
|
|
|
if (null == poiStoreStaff) return staffVO;
|
|
|
|
BeanUtils.copyProperties(staffVO, poiStoreStaff);
|
|
|
|
BeanUtils.copyProperties(poiStoreStaff,staffVO);
|
|
|
|
PoiStore poiStore = poiStoreDOMapper.selectById(poiStoreStaff.getStoreId());
|
|
|
|
PoiStore poiStore = poiStoreDOMapper.selectById(poiStoreStaff.getStoreId());
|
|
|
|
if (null != null) {
|
|
|
|
if (poiStore != null) {
|
|
|
|
staffVO.setStoreName(poiStore.getName());
|
|
|
|
staffVO.setStoreName(poiStore.getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//用户信息
|
|
|
|
//用户信息
|
|
|
|
PrivilageUserBean privilageUserBean = privilageUserDOMapper.selectUserInfoAndRoleInfo(poiStoreStaff.getUserId());
|
|
|
|
PrivilageUserBean privilageUserBean = privilageUserDOMapper.selectUserInfoAndRoleInfo(poiStoreStaff.getUserId());
|
|
|
|
|
|
|
|
//账号
|
|
|
|
|
|
|
|
QueryWrapper<PrivilageAccountDO> wrapper = new QueryWrapper<>();
|
|
|
|
|
|
|
|
wrapper.eq("user_id", poiStoreStaff.getUserId());
|
|
|
|
|
|
|
|
PrivilageAccountDO privilageAccountDO = privilageAccountDOMapper.selectOne(wrapper);
|
|
|
|
staffVO.setName(privilageUserBean.getName());
|
|
|
|
staffVO.setName(privilageUserBean.getName());
|
|
|
|
staffVO.setMobil(privilageUserBean.getMobil());
|
|
|
|
staffVO.setMobil(privilageUserBean.getMobil());
|
|
|
|
|
|
|
|
staffVO.setAccountId(privilageAccountDO.getId());
|
|
|
|
return staffVO;
|
|
|
|
return staffVO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|