@ -41,8 +41,27 @@ public class ExperimentalTeachingController implements ExperimentalTeachingContr
@GetMapping ( "/list" )
public R list ( @RequestParam Integer page ,
@RequestParam Integer size ,
ExperimentalTeachingEntityVO request ) {
PageUtils list = experimentalTeachingService . queryExperimentalTeaching ( page , size , request ) ;
Integer month , Integer type , Integer status , String startTime , String stopTime , String searchContent ) {
ExperimentalTeachingEntityVO vo = new ExperimentalTeachingEntityVO ( ) ;
if ( month ! = null ) {
vo . setMonth ( month ) ;
}
if ( type ! = null ) {
vo . setType ( type ) ;
}
if ( status ! = null ) {
vo . setStatus ( status ) ;
}
if ( startTime ! = null & & startTime ! = "" ) {
vo . setStartTime ( startTime ) ;
}
if ( stopTime ! = null & & startTime ! = "" ) {
vo . setStopTime ( stopTime ) ;
}
if ( searchContent ! = null & & searchContent ! = "" ) {
vo . setSearchContent ( searchContent ) ;
}
PageUtils list = experimentalTeachingService . queryExperimentalTeaching ( page , size , vo ) ;
return R . ok ( ) . put ( "list" , list ) ;
}
/ * *
@ -57,7 +76,7 @@ public class ExperimentalTeachingController implements ExperimentalTeachingContr
/ * *
* 修改
* /
@Pu tMapping ( "/update" )
@Pos tMapping ( "/update" )
public R update ( @RequestBody ExperimentalTeachingEntity experimentalTeachingEntity ) {
experimentalTeachingService . updateById ( experimentalTeachingEntity ) ;
@ -67,8 +86,8 @@ public class ExperimentalTeachingController implements ExperimentalTeachingContr
/ * *
* 删除
* /
@Delete Mapping ( "/delete" )
public R delete ( @RequestBody Long [ ] ids ) {
@Post Mapping ( "/delete" )
public R delete ( @RequestBody Integer [ ] ids ) {
experimentalTeachingService . removeByIds ( Arrays . asList ( ids ) ) ;
return R . ok ( ) ;