@ -37,6 +37,8 @@ public class DisciplineController {
@Autowired
@Autowired
public ProfessionalClassService classService ;
public ProfessionalClassService classService ;
@GetMapping ( "/courseDiscipline" )
@GetMapping ( "/courseDiscipline" )
@ApiOperation ( value = "课程学科类别" , response = Discipline . class )
@ApiOperation ( value = "课程学科类别" , response = Discipline . class )
public R courseDiscipline ( ) {
public R courseDiscipline ( ) {
@ -46,19 +48,31 @@ public class DisciplineController {
@GetMapping ( "/courseProfessionalClass" )
@GetMapping ( "/courseProfessionalClass" )
@ApiOperation ( value = "课程专业类" , response = ProfessionalClass . class )
@ApiOperation ( value = "课程专业类" , response = ProfessionalClass . class )
public R disciplineList ( @ApiParam ( value = "disciplineId" , required = true ) @RequestParam ( "disciplineId" ) Integer disciplineId ) {
public R disciplineList ( @ApiParam ( value = "disciplineId" ) @RequestParam ( "disciplineId" ) Integer disciplineId ) {
QueryWrapper < ProfessionalClass > queryWrapper = new QueryWrapper < > ( ) ;
QueryWrapper < ProfessionalClass > queryWrapper = new QueryWrapper < > ( ) ;
if ( disciplineId ! = null ) {
queryWrapper . eq ( "discipline_id" , disciplineId ) ;
queryWrapper . eq ( "discipline_id" , disciplineId ) ;
}
List < ProfessionalClass > list = classService . list ( queryWrapper ) ;
List < ProfessionalClass > list = classService . list ( queryWrapper ) ;
return R . success ( list ) ;
return R . success ( list ) ;
}
}
@GetMapping ( "/threeLevelJointInvestigation" )
@ApiOperation ( value = "三级联查" , response = ProfessionalClass . class )
public R threeLevelJointInvestigation ( @ApiParam ( value = "disciplineId" ) @RequestParam ( "disciplineId" ) Integer disciplineId ) {
return R . success ( disciplineService . getCourseDisciplineWithDetails ( disciplineId ) ) ;
}
@GetMapping ( "/courseProfessional" )
@GetMapping ( "/courseProfessional" )
@ApiOperation ( value = "课程专业" , response = Professional . class )
@ApiOperation ( value = "课程专业" , response = Professional . class )
public R courseProfessional ( @ApiParam ( value = "professionalClassId" , required = true ) @RequestParam ( "professionalClassId" ) Integer professionalClassId ) {
public R courseProfessional ( @ApiParam ( value = "professionalClassId" ) @RequestParam ( "professionalClassId" ) Integer professionalClassId ) {
QueryWrapper < Professional > queryWrapper = new QueryWrapper < > ( ) ;
QueryWrapper < Professional > queryWrapper = new QueryWrapper < > ( ) ;
if ( professionalClassId ! = null ) {
queryWrapper . eq ( "professional_class_id" , professionalClassId ) ;
queryWrapper . eq ( "professional_class_id" , professionalClassId ) ;
}
List < Professional > list = professionalService . list ( queryWrapper ) ;
List < Professional > list = professionalService . list ( queryWrapper ) ;
return R . success ( list ) ;
return R . success ( list ) ;
}
}