新增对外接口
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:
lxd 2024-11-25 13:29:22 +08:00
parent 75f71d74fe
commit 538dedf9f4
4 changed files with 19 additions and 0 deletions

View File

@ -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')")

View File

@ -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);
}
}

View File

@ -59,4 +59,6 @@ public interface OrgUnitService {
List<OrgUnitDO> getOrgUnitList();
OrgUnitDO getonekey(String orgId);
OrgUnitDO getSnonekey(String orgSn);
}

View File

@ -89,4 +89,9 @@ public class OrgUnitServiceImpl implements OrgUnitService {
{
return Mapper.selectByKey(orgId);
}
@Override
public OrgUnitDO getSnonekey(String orgSn) {
return Mapper.selectBySnKey(orgSn);
}
}