|
|
@@ -326,4 +326,26 @@ public class OrgInfoController {
|
|
326
|
326
|
modelMap.put("enumId", 2905);
|
|
327
|
327
|
return modelMap;
|
|
328
|
328
|
}*/
|
|
|
329
|
+
|
|
|
330
|
+ /**
|
|
|
331
|
+ * 根据id获取name
|
|
|
332
|
+ * @param id 数据ID
|
|
|
333
|
+ * @return
|
|
|
334
|
+ */
|
|
|
335
|
+ @RequestMapping(value="/getOrgName", method=RequestMethod.GET)
|
|
|
336
|
+ @ApiOperation(value="根据id获取name", notes = "根据id获取name")
|
|
|
337
|
+ @ApiImplicitParams({
|
|
|
338
|
+ @ApiImplicitParam(name = "id", value = "数据ID", paramType = "query")
|
|
|
339
|
+ })
|
|
|
340
|
+ public String getOrgName(Integer state) {
|
|
|
341
|
+ OrgInfo orgInfo = new OrgInfo();
|
|
|
342
|
+ try {
|
|
|
343
|
+ if (state != null) {
|
|
|
344
|
+ orgInfo = orgInfoService.findById(state);
|
|
|
345
|
+ }
|
|
|
346
|
+ } catch (Exception e) {
|
|
|
347
|
+ e.printStackTrace();
|
|
|
348
|
+ }
|
|
|
349
|
+ return orgInfo.getOrgName();
|
|
|
350
|
+ }
|
|
329
|
351
|
}
|