@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.List ;
import java.util.List ;
import org.springframework.beans.factory.annotation.Autowired ;
import org.springframework.beans.factory.annotation.Autowired ;
import org.springframework.util.StringUtils ;
import org.springframework.web.bind.annotation.CrossOrigin ;
import org.springframework.web.bind.annotation.CrossOrigin ;
import org.springframework.web.bind.annotation.GetMapping ;
import org.springframework.web.bind.annotation.GetMapping ;
import org.springframework.web.bind.annotation.PostMapping ;
import org.springframework.web.bind.annotation.PostMapping ;
@ -38,8 +39,9 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryAssesmentcondition" )
@GetMapping ( "/queryAssesmentcondition" )
Response queryAssementCondition ( Integer staffId , Integer courseId , String className ,
Response queryAssementCondition ( @RequestParam Integer staffId , @RequestParam Integer courseId , @RequestParam String className ,
Integer assesmentState , Integer releaseType , String creationTime , String endTime , Integer month ,
@RequestParam Integer assesmentState , @RequestParam Integer releaseType ,
@RequestParam String creationTime , @RequestParam String endTime , @RequestParam Integer month ,
@RequestParam ( defaultValue = "0" ) Integer pageSize ,
@RequestParam ( defaultValue = "0" ) Integer pageSize ,
@RequestParam ( defaultValue = "0" ) Integer pageNo ) {
@RequestParam ( defaultValue = "0" ) Integer pageNo ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
@ -89,15 +91,25 @@ public class AssesmentController {
@PostMapping ( "/addAssesment" )
@PostMapping ( "/addAssesment" )
Response addAssesment ( @RequestBody AssesmentStudentVo vo ) {
Response addAssesment ( @RequestBody AssesmentStudentVo vo ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . addAssesment ( vo ) ;
Assesment assesment = vo . getAssesment ( ) ;
int status = ( int ) ret . get ( "retcode" ) ;
List < Integer > studentIds = vo . getStudentIds ( ) ;
if ( 200 = = status ) {
if ( StringUtils . isEmpty ( assesment ) ) {
resp . setStatus ( status ) ;
resp . setStatus ( 300 ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setErrmessage ( "考核信息为空" ) ;
} else {
} else if ( studentIds . isEmpty ( ) & & studentIds . size ( ) < = 0 ) {
resp . setStatus ( status ) ;
resp . setStatus ( 300 ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setErrmessage ( "学生信息为空" ) ;
}
} else {
HashMap < String , Object > ret = service . addAssesment ( assesment , studentIds ) ;
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -110,15 +122,20 @@ public class AssesmentController {
@GetMapping ( "/queryStudentisAssess" )
@GetMapping ( "/queryStudentisAssess" )
Response queryStudentisAssess ( @RequestParam List < Integer > studentIds ) {
Response queryStudentisAssess ( @RequestParam List < Integer > studentIds ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryStudentisAssess ( studentIds ) ;
if ( studentIds . isEmpty ( ) & & studentIds . size ( ) < = 0 ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "学生信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . queryStudentisAssess ( studentIds ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -128,17 +145,22 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryGetById" )
@GetMapping ( "/queryGetById" )
Response getByAssesmentId ( Integer id ) {
Response getByAssesmentId ( @RequestParam Integer id ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryGetById ( id ) ;
if ( StringUtils . isEmpty ( id ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "项目信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . queryGetById ( id ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -152,15 +174,23 @@ public class AssesmentController {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
Assesment assesment = vo . getAssesment ( ) ;
Assesment assesment = vo . getAssesment ( ) ;
List < Integer > studentIds = vo . getStudentIds ( ) ;
List < Integer > studentIds = vo . getStudentIds ( ) ;
HashMap < String , Object > ret = service . updateAssesment ( assesment , studentIds ) ;
if ( StringUtils . isEmpty ( assesment ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( studentIds . isEmpty ( ) & & studentIds . size ( ) < = 0 ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "学生信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
HashMap < String , Object > ret = service . updateAssesment ( assesment , studentIds ) ;
}
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -170,38 +200,46 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/assessmentJudgment" )
@GetMapping ( "/assessmentJudgment" )
Response updateState ( Integer assesmentId ) {
Response updateState ( @RequestParam Integer assesmentId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . assessmentJudgment ( assesmentId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . assessmentJudgment ( assesmentId ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
/ * *
/ * *
* 修改考核状态
* 修改考核状态
* @param id
* @param state
* @return
* @return
* /
* /
@PostMapping ( "/updateState" )
@PostMapping ( "/updateState" )
Response updateState ( @RequestBody Assesment assesment ) {
Response updateState ( @RequestBody Assesment assesment ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . updateState ( assesment ) ;
if ( StringUtils . isEmpty ( assesment ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . updateState ( assesment ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -212,17 +250,22 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/getExperimentalClass" )
@GetMapping ( "/getExperimentalClass" )
Response getExperimentalClass ( Integer staffId ) {
Response getExperimentalClass ( @RequestParam Integer staffId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryCretionTime ( staffId ) ;
if ( StringUtils . isEmpty ( staffId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "教师信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . queryCretionTime ( staffId ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -233,17 +276,25 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/getCreationTime" )
@GetMapping ( "/getCreationTime" )
Response getCreationTime ( String creationTime , Integer staffId ) {
Response getCreationTime ( @RequestParam String creationTime , @RequestParam Integer staffId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryCretionTime ( creationTime , staffId ) ;
if ( StringUtils . isEmpty ( staffId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "教师信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( StringUtils . isEmpty ( creationTime ) ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "实验班级创建时间信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
HashMap < String , Object > ret = service . queryCretionTime ( creationTime , staffId ) ;
}
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -254,17 +305,22 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryAssesmet" )
@GetMapping ( "/queryAssesmet" )
Response queryAssesmet ( Integer assesmentId ) {
Response queryAssesmet ( @RequestParam Integer assesmentId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryAssesment ( assesmentId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . queryAssesment ( assesmentId ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -277,15 +333,20 @@ public class AssesmentController {
@GetMapping ( "/getByclass" )
@GetMapping ( "/getByclass" )
Response getByclass ( Integer assesmentId ) {
Response getByclass ( Integer assesmentId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . getByclass ( assesmentId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . getByclass ( assesmentId ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
}
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -299,17 +360,29 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryClassScore" )
@GetMapping ( "/queryClassScore" )
Response queryClassScore ( Integer assesmentId , Integer experimentalClassId , @RequestParam List < Integer > classId ) {
Response queryClassScore ( @RequestParam Integer assesmentId , @RequestParam Integer experimentalClassId , @RequestParam List < Integer > classId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryScore ( assesmentId , experimentalClassId , classId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( StringUtils . isEmpty ( experimentalClassId ) ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "实验班级信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( classId . isEmpty ( ) & & classId . size ( ) < 0 ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( 300 ) ;
}
resp . setErrmessage ( "行政信息为空" ) ;
} else {
HashMap < String , Object > ret = service . queryScore ( assesmentId , experimentalClassId , classId ) ;
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -322,18 +395,29 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryHistogram" )
@GetMapping ( "/queryHistogram" )
Response queryHistogram ( Integer assesmentId , Integer experimentalClassId ,
Response queryHistogram ( @RequestParam Integer assesmentId , @RequestParam Integer experimentalClassId ,
@RequestParam List < Integer > classId ) {
@RequestParam List < Integer > classId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryHistogram ( assesmentId , experimentalClassId , classId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( StringUtils . isEmpty ( experimentalClassId ) ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "实验班级信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( classId . isEmpty ( ) & & classId . size ( ) < 0 ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( 300 ) ;
}
resp . setErrmessage ( "行政信息为空" ) ;
} else {
HashMap < String , Object > ret = service . queryHistogram ( assesmentId , experimentalClassId , classId ) ;
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -346,18 +430,29 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/getLinechart" )
@GetMapping ( "/getLinechart" )
Response getLinechart ( Integer assesmentId , Integer experimentalClassId ,
Response getLinechart ( @RequestParam Integer assesmentId , @RequestParam Integer experimentalClassId ,
@RequestParam List < Integer > classId ) {
@RequestParam List < Integer > classId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . getLinechart ( assesmentId , experimentalClassId , classId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( StringUtils . isEmpty ( experimentalClassId ) ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "实验班级信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( classId . isEmpty ( ) & & classId . size ( ) < 0 ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( 300 ) ;
}
resp . setErrmessage ( "行政信息为空" ) ;
} else {
HashMap < String , Object > ret = service . getLinechart ( assesmentId , experimentalClassId , classId ) ;
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -370,18 +465,29 @@ public class AssesmentController {
* @return
* @return
* /
* /
@GetMapping ( "/queryAssesmentScore" )
@GetMapping ( "/queryAssesmentScore" )
Response queryAssesmentScore ( Integer assesmentId , Integer experimentalClassId ,
Response queryAssesmentScore ( @RequestParam Integer assesmentId , @RequestParam Integer experimentalClassId ,
@RequestParam List < Integer > classId ) {
@RequestParam List < Integer > classId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . queryAssesmentScore ( assesmentId , experimentalClassId , classId ) ;
if ( StringUtils . isEmpty ( assesmentId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "考核信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( StringUtils . isEmpty ( experimentalClassId ) ) {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
resp . setStatus ( 300 ) ;
} else {
resp . setErrmessage ( "实验班级信息为空" ) ;
resp . setStatus ( status ) ;
} else if ( classId . isEmpty ( ) & & classId . size ( ) < 0 ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( 300 ) ;
}
resp . setErrmessage ( "行政信息为空" ) ;
} else {
HashMap < String , Object > ret = service . queryAssesmentScore ( assesmentId , experimentalClassId , classId ) ;
int status = ( int ) ret . get ( "retcode" ) ;
if ( 200 = = status ) {
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
return resp ;
return resp ;
}
}
@ -394,14 +500,19 @@ public class AssesmentController {
@GetMapping ( "/releaseAssesment" )
@GetMapping ( "/releaseAssesment" )
Response releaseAssesment ( @RequestParam Integer courseId ) {
Response releaseAssesment ( @RequestParam Integer courseId ) {
Response resp = new Response ( ) ;
Response resp = new Response ( ) ;
HashMap < String , Object > ret = service . releaseAssesment ( courseId ) ;
if ( StringUtils . isEmpty ( courseId ) ) {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( 300 ) ;
if ( 200 = = status ) {
resp . setErrmessage ( "课程信息为空" ) ;
resp . setStatus ( status ) ;
} else {
resp . setMessage ( ret . get ( "retvalue" ) ) ;
HashMap < String , Object > ret = service . releaseAssesment ( courseId ) ;
} else {
int status = ( int ) ret . get ( "retcode" ) ;
resp . setStatus ( status ) ;
if ( 200 = = status ) {
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
resp . setStatus ( status ) ;
resp . setMessage ( ret . get ( "retvalue" ) ) ;
} else {
resp . setStatus ( status ) ;
resp . setErrmessage ( ret . get ( "retvalue" ) . toString ( ) ) ;
}
}
}
return resp ;
return resp ;
}
}