产品线新增查询条件 以及bug修复
This commit is contained in:
+6
@@ -86,6 +86,12 @@ public class TsInstitutionController extends BaseController<TsInstitution> {
|
||||
return tsInstitutionService.getNext(institutionId,userName);
|
||||
}
|
||||
|
||||
@ApiOperation("获得下一级的部门和人员")
|
||||
@GetMapping("/getNextById")
|
||||
public List<TsInstitution> getNextById(String ids){
|
||||
return tsInstitutionService.getNextById(ids);
|
||||
}
|
||||
|
||||
@ApiOperation("获得第一级部门目录")
|
||||
@GetMapping("/getFirstInstitution")
|
||||
public List<TsInstitution> getFirstInstitution(){
|
||||
|
||||
@@ -29,6 +29,8 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
|
||||
*/
|
||||
List<TsInstitution> selectNextUser(@Param("institutionId") String institutionId,@Param("userName") String userName);
|
||||
|
||||
List<TsInstitution> selectNextUserByIds(@Param("ids") List<String> ids);
|
||||
|
||||
|
||||
List<TsInstitution> selectTreeByIds(@Param("rootIds") List<String> rootIds);
|
||||
|
||||
|
||||
+2
@@ -37,6 +37,8 @@ public interface ITsInstitutionService extends IService<TsInstitution> {
|
||||
*/
|
||||
public List<TsInstitution> getNext(String institutionId,String userName);
|
||||
|
||||
public List<TsInstitution> getNextById(String ids);
|
||||
|
||||
/**
|
||||
* 获得第一级的部门
|
||||
* @return
|
||||
|
||||
+7
@@ -216,6 +216,13 @@ public class TsInstitutionServiceImpl extends ServiceImpl<TsInstitutionDao, TsIn
|
||||
return tsInstitutions;
|
||||
}
|
||||
|
||||
public List<TsInstitution> getNextById(String ids){
|
||||
List<String> strings=new ArrayList<>(Arrays.asList(ids.split(",")));
|
||||
List<TsInstitution> tsUsers=tsInstitutionDao.selectNextUserByIds(strings);
|
||||
|
||||
return tsUsers;
|
||||
}
|
||||
|
||||
|
||||
public List<TsInstitution> getFirst(){
|
||||
//查询第一层机构
|
||||
|
||||
Reference in New Issue
Block a user