组织集合查询接口

yun-zuoyi
汪云昊 6 years ago
parent cb1c6d063f
commit b660f6c49b

@ -79,6 +79,9 @@ public class WhiteController extends CoreBaseController {
@Autowired
private ISysOrderNoRuleService sysOrderNoRuleService;
@Autowired
private ISysOrganizeService sysOrganizeService;
@Resource(name="redisRes")
private ImppRedis redisRes;
@ -357,4 +360,17 @@ public class WhiteController extends CoreBaseController {
CommonEnumUtil.LOG_LOGIN_PLATFORM platform = CommonEnumUtil.LOG_LOGIN_PLATFORM.valueOf(Integer.parseInt(value));
return platform == null ? CommonEnumUtil.LOG_LOGIN_PLATFORM.PC_IMPP_CORE : platform;
}
@GetMapping("/sys-organize/list")
@ApiOperation(value = "获取全部组织", notes = "获取全部组织")
public ResultBean<SysOrganize> findSysOrganizeList(){
try {
List<SysOrganize> sysOrganizeList = sysOrganizeService.findSysOrganizeList();
return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setResultList(sysOrganizeList);
}catch(ImppBusiException busExcep){
return ResultBean.fail(busExcep);
}catch(Exception e){
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
}
}
}

@ -764,4 +764,23 @@ public class PersonnelController extends CoreBaseController {
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
}
}
/**
*
* @return
*/
@GetMapping(value = "/organize/list")
@ApiOperation(value = "查询所有组织信息", notes = "查询所有组织信息")
public ResultBean<SysOrganize> findSysOrganizeList(){
try{
List<SysOrganize> sysOrganize = personnelService.findSysOrganizeList();
return ResultBean.success("操作成功")
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode())
.setResultList(sysOrganize);
}catch(ImppBusiException busExcep){
return ResultBean.fail(busExcep);
}catch(Exception e){
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
}
}
}

Loading…
Cancel
Save