class ProjectController {

    @RequestMapping(value = "/projectsByAppGroupId")
    public ServiceResult<List<Project>> getProjectsByAppGroupId(@RequestParam(value = "appGroupId") Long appGroupId) throws SQLException {
        if (null == appGroupId) {
            return ServiceResult.fail("appGroupId is null");
        }
        return ServiceResult.success(projectDao.getProjectsByAppGroupId(appGroupId));
    }

}