新增对外接口
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
75f71d74fe
commit
538dedf9f4
@ -119,6 +119,14 @@ public class OrgUnitController {
|
||||
return success(BeanUtils.toBean(aDo, OrgUnitRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/orgSngetnoe")
|
||||
public CommonResult<OrgUnitRespVO> getSnoneorg(@RequestParam("orgSN") String orgSN)
|
||||
{
|
||||
OrgUnitDO aDo = Service.getSnonekey(orgSN);
|
||||
return success(BeanUtils.toBean(aDo, OrgUnitRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getlist")
|
||||
@Operation(summary = "获得机构管理字典")
|
||||
@PreAuthorize("@ss.hasPermission('org::query')")
|
||||
|
@ -46,4 +46,8 @@ public interface OrgUnitMapper extends BaseMapperX<OrgUnitDO> {
|
||||
default OrgUnitDO selectByKey(String key) {
|
||||
return selectOne(OrgUnitDO::getOrgID, key);
|
||||
}
|
||||
default OrgUnitDO selectBySnKey(String key) {
|
||||
return selectOne(OrgUnitDO::getOrgSN, key);
|
||||
}
|
||||
|
||||
}
|
@ -59,4 +59,6 @@ public interface OrgUnitService {
|
||||
List<OrgUnitDO> getOrgUnitList();
|
||||
|
||||
OrgUnitDO getonekey(String orgId);
|
||||
|
||||
OrgUnitDO getSnonekey(String orgSn);
|
||||
}
|
@ -89,4 +89,9 @@ public class OrgUnitServiceImpl implements OrgUnitService {
|
||||
{
|
||||
return Mapper.selectByKey(orgId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrgUnitDO getSnonekey(String orgSn) {
|
||||
return Mapper.selectBySnKey(orgSn);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user