@ -32,12 +32,13 @@ public class ClassTeachingController implements ClassTeachingApi {
* /
@Override
@GetMapping ( "userRecord" )
public R queryTestRecord ( @RequestParam Integer page , @RequestParam Integer size , Integer month , @RequestParam String startTime , @RequestParam String endTime ,
String condition , @RequestParam Integer status , @RequestParam Integer isCode ) {
public R queryTestRecord ( @RequestParam Integer page , @RequestParam Integer size , Integer month , String startTime , String endTime ,
String condition , @RequestParam Integer status ) {
ProjectRecordVo recordVo = new ProjectRecordVo ( ) ;
if ( isCode = = 0 ) {
if ( status ! = 0 ) { //不限定实验状态
if ( status = = 1 | | status = = 2 | | status = = 3 ) { //限定实验状态
recordVo . setStatus ( status ) ;
} else { //不限定实验状态
recordVo . setStatus ( null ) ;
}
if ( ! StringUtils . isEmpty ( condition ) ) {
recordVo . setCondition ( condition ) ;
@ -45,20 +46,15 @@ public class ClassTeachingController implements ClassTeachingApi {
if ( ! StringUtils . isEmpty ( month ) ) {
recordVo . setMonth ( month ) ;
} else {
recordVo . setMonth ( 0 ) ;
recordVo . setMonth ( null ) ;
if ( ! StringUtils . isEmpty ( startTime ) ) {
recordVo . setStartTime ( startTime ) ;
} if ( ! StringUtils . isEmpty ( endTime ) ) {
recordVo . setEndTime ( endTime ) ;
}
}
recordVo . setIsCode ( isCode ) ;
PageUtils page1 = classTeachingService . queryClassRecord ( page , size , recordVo ) ;
return R . ok ( ) . put ( "page" , page1 ) ;
} else if ( isCode = = 1 ) {
return R . error ( "无需邀请码" ) ;
}
return R . error ( "错误操作,isCode 不能为空" ) ;
}
/ * *