|
@@ -1,6 +1,7 @@
|
|
|
package com.mokamrp.privates.service;
|
|
package com.mokamrp.privates.service;
|
|
|
|
|
|
|
|
import com.mokamrp.privates.mapper.pojo.Corp;
|
|
import com.mokamrp.privates.mapper.pojo.Corp;
|
|
|
|
|
+import com.mokamrp.privates.mapper.pojo.User;
|
|
|
import com.mokamrp.privates.mapper.pojo.UserCorp;
|
|
import com.mokamrp.privates.mapper.pojo.UserCorp;
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
|
@@ -18,33 +19,15 @@ import java.util.List;
|
|
|
public interface UserCorpService extends IService<UserCorp> {
|
|
public interface UserCorpService extends IService<UserCorp> {
|
|
|
|
|
|
|
|
public final static String USER_MSG = "您当前用户未绑定企业";
|
|
public final static String USER_MSG = "您当前用户未绑定企业";
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 获取指定管理账户管辖的企业信息
|
|
|
|
|
- *
|
|
|
|
|
- * @param userId
|
|
|
|
|
- * @return
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ //. 获取指定管理账户管辖的企业信息
|
|
|
public List<Corp> getCorpsByUserId(Integer userId);
|
|
public List<Corp> getCorpsByUserId(Integer userId);
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 获取用户管理的企业ID
|
|
|
|
|
- *
|
|
|
|
|
- * @param userId
|
|
|
|
|
- * @return
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ //. 获取用户管理的企业ID
|
|
|
public List<Integer> getAuthUserCorpIds(String userId);
|
|
public List<Integer> getAuthUserCorpIds(String userId);
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 绑定账户和企业
|
|
|
|
|
- *
|
|
|
|
|
- * @param userIds
|
|
|
|
|
- * @param corpIds
|
|
|
|
|
- * @return
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ //. 绑定账户和企业
|
|
|
public boolean setUserCorpsByUserId(List<Integer> userIds, List<Integer> corpIds);
|
|
public boolean setUserCorpsByUserId(List<Integer> userIds, List<Integer> corpIds);
|
|
|
-
|
|
|
|
|
- public boolean unSetUserCorp(Integer userId,Integer corpId);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ //. 解绑账户和企业
|
|
|
|
|
+ public boolean unSetUserCorp(Integer userId, Integer corpId);
|
|
|
|
|
+ //. 通过企业ID获取企业的小前台管理员列表
|
|
|
|
|
+ public List<User> selectUserByCorpId(Integer corpId);
|
|
|
|
|
|
|
|
}
|
|
}
|