考试部分接口优化
This commit is contained in:
parent
429ce3ccae
commit
22d8bba178
|
|
@ -291,9 +291,9 @@ public class ApiExaminationController extends BaseController {
|
||||||
@GetMapping("/v1/user/examination/page")
|
@GetMapping("/v1/user/examination/page")
|
||||||
public AjaxResult userexamination(ExamUserExaminationVO bean) {
|
public AjaxResult userexamination(ExamUserExaminationVO bean) {
|
||||||
SysUser sysUser = sysUserService.selectUserByLoginName( JwtUtil.getLoginName() );
|
SysUser sysUser = sysUserService.selectUserByLoginName( JwtUtil.getLoginName() );
|
||||||
bean.setVipUserId( Integer.parseInt( sysUser.getUserId().toString() ) );
|
bean.setVipUserId( sysUser.getUserId().intValue() );
|
||||||
List<ExamUserExaminationVO> data = examUserExaminationService.selectMyExamUserExamination( bean );
|
List<ExamUserExaminationVO> data = examUserExaminationService.selectMyExamUserExamination( bean );
|
||||||
AjaxResult success = success( "考试完成" );
|
AjaxResult success = success( "查询列表成功" );
|
||||||
success.put( "data", data );
|
success.put( "data", data );
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -141,13 +141,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
||||||
<if test="remarks != null and remarks != '' "> and remarks = #{remarks}</if>
|
<if test="remarks != null and remarks != '' "> and remarks = #{remarks}</if>
|
||||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<if test="userName != null and userName != '' "> and su.user_name = #{userName}</if>
|
<if test="userName != null and userName != '' "> and su.user_name = #{userName}</if>
|
||||||
<if test="trainCourseName != null and trainCourseName != '' "> and tc.name = #{trainCourseName}</if>
|
<if test="examExaminationVO != null and examExaminationVO.trainCourseName != null and examExaminationVO.trainCourseName != '' "> and tc.name = #{examExaminationVO.trainCourseName}</if>
|
||||||
<if test="examPaperName != null and examPaperName != '' "> and ep.name = #{examPaperName}</if>
|
<if test="examPaperName != null and examPaperName != '' "> and ep.name = #{examPaperName}</if>
|
||||||
<if test="type != null and type != '' "> and ee.type = #{type}</if>
|
<if test="examExaminationVO!=null and examExaminationVO.type != null and examExaminationVO.type != '' "> and ee.type = #{examExaminationVO.type}</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue