|
|
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
|
@@ -30,8 +31,8 @@ public class UserCorpServiceImpl extends ServiceImpl<UserCorpMapper, UserCorp> i
|
|
|
@Autowired
|
|
|
public CorpService corpService;
|
|
|
|
|
|
-// @Autowired
|
|
|
-// private UserCorpMapper userCorpMapper;
|
|
|
+ @Autowired
|
|
|
+ private UserCorpMapper userCorpMapper;
|
|
|
|
|
|
/**
|
|
|
* 获取指定管理账户管辖的企业信息
|
|
|
@@ -64,8 +65,8 @@ public class UserCorpServiceImpl extends ServiceImpl<UserCorpMapper, UserCorp> i
|
|
|
return corpIds;
|
|
|
}
|
|
|
|
|
|
- public boolean unSetUserCorp(Integer userId,Integer corpId){
|
|
|
- Boolean res = this.remove(new QueryWrapper<UserCorp>().eq("corp_id",corpId).eq("user_id",userId));
|
|
|
+ public boolean unSetUserCorp(Integer userId, Integer corpId) {
|
|
|
+ Boolean res = this.remove(new QueryWrapper<UserCorp>().eq("corp_id", corpId).eq("user_id", userId));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@@ -104,4 +105,15 @@ public class UserCorpServiceImpl extends ServiceImpl<UserCorpMapper, UserCorp> i
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取指定企业的小前台管理员列表
|
|
|
+ *
|
|
|
+ * @param corpId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<User> selectUserByCorpId(Integer corpId) {
|
|
|
+ List<User> res = userCorpMapper.selectUserByCorpId(corpId);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|