添加学生课程查询
This commit is contained in:
parent
56877075a5
commit
0ce3754021
|
@ -240,7 +240,7 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
|
|||
return super.importExcel(request, response, KcKechengbiao.class);
|
||||
}
|
||||
|
||||
@ApiOperation(value="课程管理-主表-分页列表查询", notes="课程管理-主表-分页列表查询")
|
||||
@ApiOperation(value="教师端我的课程", notes="教师端我的课程")
|
||||
@GetMapping(value = "/getKechengbiaolist")
|
||||
public Result<IPage<KcKechengbiao>> getKechengbiaolist(KcKechengbiao kcKechengbiao,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
|
@ -261,4 +261,21 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
|
|||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value="学生端我的课程", notes="学生端我的课程")
|
||||
@GetMapping(value = "/getStudentKclist")
|
||||
public Result<IPage<KcKechengbiao>> getStudentKclist(KcKechengbiao kcKechengbiao,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<KcKechengbiao> queryWrapper = QueryGenerator.initQueryWrapper(kcKechengbiao, req.getParameterMap());
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
|
||||
queryWrapper.apply("kc.rwbh = xkb.kcapzbbh and kc.flag = '0'");
|
||||
queryWrapper.eq("xkb.xh",sysUser.getUsername());
|
||||
queryWrapper.eq("kc.xqxn",kcSysConfig.getFlag1());
|
||||
queryWrapper.orderByAsc("kc.kcmc");
|
||||
Page<KcKechengbiao> page = new Page<KcKechengbiao>(pageNo, pageSize);
|
||||
IPage<KcKechengbiao> pageList = kcKechengbiaoService.getStudentKclist(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,6 @@ public interface KcKechengbiaoMapper extends BaseMapper<KcKechengbiao> {
|
|||
void updateYxByXxhbkckb(KcKechengbiao kcbAll);
|
||||
|
||||
IPage<KcKechengbiao> getKechengbiaolist(Page<KcKechengbiao> page,@Param(Constants.WRAPPER) QueryWrapper<KcKechengbiao> queryWrapper);
|
||||
|
||||
IPage<KcKechengbiao> getStudentKclist(Page<KcKechengbiao> page,@Param(Constants.WRAPPER) QueryWrapper<KcKechengbiao> queryWrapper);
|
||||
}
|
||||
|
|
|
@ -179,4 +179,10 @@
|
|||
szkc,
|
||||
xqxn
|
||||
</select>
|
||||
|
||||
<select id="getStudentKclist" resultType="org.jeecg.modules.kc.ktgl.entity.KcKechengbiao">
|
||||
select distinct xkb.xh,kc.kcbh,kc.rwbh,kc.kcmc,kc.skjs,kc.skdd,kc.xkrs,kc.xqxn
|
||||
from kc_kechengbiao kc,xxhbxsxkb xkb
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
</mapper>
|
|
@ -39,4 +39,6 @@ public interface IKcKechengbiaoService extends IService<KcKechengbiao> {
|
|||
void updateYxByXxhbkckb(KcKechengbiao kcbAll);
|
||||
|
||||
IPage<KcKechengbiao> getKechengbiaolist(Page<KcKechengbiao> page, QueryWrapper<KcKechengbiao> queryWrapper);
|
||||
|
||||
IPage<KcKechengbiao> getStudentKclist(Page<KcKechengbiao> page, QueryWrapper<KcKechengbiao> queryWrapper);
|
||||
}
|
||||
|
|
|
@ -80,4 +80,9 @@ public class KcKechengbiaoServiceImpl extends ServiceImpl<KcKechengbiaoMapper, K
|
|||
return baseMapper.getKechengbiaolist(page,queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<KcKechengbiao> getStudentKclist(Page<KcKechengbiao> page, QueryWrapper<KcKechengbiao> queryWrapper) {
|
||||
return baseMapper.getStudentKclist(page,queryWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue