Commit b85f271b authored by chenzhao's avatar chenzhao

增加接口

parent 98a2f291
...@@ -26,6 +26,7 @@ import io.swagger.annotations.Api; ...@@ -26,6 +26,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -42,6 +43,7 @@ import java.util.Collection; ...@@ -42,6 +43,7 @@ import java.util.Collection;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
/** /**
* @author fengwang * @author fengwang
...@@ -538,4 +540,23 @@ public class OrgPersonController extends BaseController { ...@@ -538,4 +540,23 @@ public class OrgPersonController extends BaseController {
} }
/**
* 根据ids查询多人员信息
* @param ids
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/listCompanyByIds", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据ids查询多人员信息 非父子级", notes = "根据ids查询多人员信息")
public List<OrgUsr> listCompanyByIds(@RequestParam List<Long> ids) {
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(BaseEntity::getIsDelete,false);
wrapper.in(OrgUsr::getSequenceNbr,ids);
wrapper.eq(OrgUsr::getBizOrgType,"PERSON");
List<OrgUsr> orgUsrs = orgUsrMapper.selectList(wrapper);
return orgUsrs;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment