|
@@ -284,6 +284,25 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
|
return commonCompanyService.selectList(new EntityWrapper<CommonCompany>().eq("delete_flag","0"));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改用户信息
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<CommonCompany> getCompOwn(String phone) {
|
|
|
+ List<CommonStaff> staffs = commonStaffService.selectList(new EntityWrapper<CommonStaff>()
|
|
|
+ .eq("staff_mobile_phone",phone));
|
|
|
+ List<CommonCompany> commonCompanyList = new ArrayList<>();
|
|
|
+ if(!CollectionUtils.isEmpty(staffs)){
|
|
|
+ for(int i=0;i<staffs.size();i++) {
|
|
|
+ commonCompanyList.add(commonCompanyService.selectById(staffs.get(i).getCompId()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return commonCompanyList;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 发送验证码
|