Commit 1728be37 authored by xixinzhao's avatar xixinzhao

机场单位 / 单位列表接口不分页

parent e7c8beef
...@@ -294,4 +294,12 @@ public interface IOrgUsrService { ...@@ -294,4 +294,12 @@ public interface IOrgUsrService {
JSONObject selectPersonByUserId(Long userId) throws Exception; JSONObject selectPersonByUserId(Long userId) throws Exception;
UserDto getUserParentInfo(String userId); UserDto getUserParentInfo(String userId);
/**
* 根据机构类型获取列表不分页
* @param orgTypes 机构类型(逗号分割)
* @param orgCode 机构编码
* @return list不分页
*/
List<OrgUsr> getListByBizOrgTypeCode(String orgTypes, String orgCode);
} }
...@@ -596,4 +596,17 @@ public class OrgUsrController extends BaseController { ...@@ -596,4 +596,17 @@ public class OrgUsrController extends BaseController {
return ResponseHelper.buildResponse(iOrgUsrService.getOrgUserByAmosUserId(amosUserId)); return ResponseHelper.buildResponse(iOrgUsrService.getOrgUserByAmosUserId(amosUserId));
} }
/**
* 根据机构类型获取列表不分页
* @param orgTypes 机构类型(逗号分割)
* @param orgCode 机构编码
* @return list不分页
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "根据机构类型(逗号分割),机构编码获取列表不分页", notes = "根据机构类型(逗号分割),机构编码获取列表不分页")
@GetMapping(value = "/amos/getListByBizOrgTypesCode")
public ResponseModel<List<OrgUsr>> getListByBizOrgTypeCode(@RequestParam(required = false) String orgTypes, @RequestParam(required = false) String orgCode){
return ResponseHelper.buildResponse(iOrgUsrService.getListByBizOrgTypeCode(orgTypes, orgCode));
}
} }
\ No newline at end of file
...@@ -2100,4 +2100,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp ...@@ -2100,4 +2100,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
wrapper.like(StringUtils.isNotBlank(amosUserId), OrgUsr::getAmosOrgId, amosUserId); wrapper.like(StringUtils.isNotBlank(amosUserId), OrgUsr::getAmosOrgId, amosUserId);
return this.baseMapper.selectList(wrapper); return this.baseMapper.selectList(wrapper);
} }
@Override
public List<OrgUsr> getListByBizOrgTypeCode(String orgTypes, String orgCode) {
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<OrgUsr>();
wrapper.eq(OrgUsr::getIsDelete, false);
if (!StringUtils.isEmpty(orgTypes)) {
List<String> orgUserIdList = Lists.newArrayList(orgTypes.split(","));
wrapper.in(OrgUsr::getBizOrgType, orgUserIdList);
}
if (!StringUtils.isEmpty(orgCode)) {
wrapper.likeRight(OrgUsr::getBizOrgCode, orgCode);
}
return this.baseMapper.selectList(wrapper);
}
} }
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