|
|
@ -743,4 +743,22 @@ public class PersonnelController extends CoreBaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 根据组织code查询对应的组织信息
|
|
|
|
|
|
|
|
* @param code 组织代码
|
|
|
|
|
|
|
|
* @return 处理结果
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping(value = "/organize/get-code")
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据组织code查询对应的组织信息", notes = "根据组织code查询对应的组织信息")
|
|
|
|
|
|
|
|
public ResultBean<SysOrganize> getSysOrganizeByCode(String code){
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
|
|
|
SysOrganize sysOrganize = personnelService.getSysOrganizeByCode(code);
|
|
|
|
|
|
|
|
return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setResultObject(sysOrganize);
|
|
|
|
|
|
|
|
}catch(ImppBusiException busExcep){
|
|
|
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|