添加查询

This commit is contained in:
yangjun 2024-05-16 21:27:55 +08:00
parent 6bbb57b940
commit 47a8f5c20d
3 changed files with 4 additions and 6 deletions

View File

@ -251,12 +251,12 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
if(StringUtils.equals("0",kcKechengbiao.getCheckType())){//当前学年
queryWrapper.eq("xqxn",kcSysConfig.getFlag1());
}else{//历史学年
queryWrapper.ne("xqxn",kcSysConfig.getFlag1());
// queryWrapper.ne("xqxn",kcSysConfig.getFlag1());
}
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
queryWrapper.eq("jgh",sysUser.getUsername());
queryWrapper.eq("flag","0");
queryWrapper.orderByAsc("kcmc,week");
queryWrapper.orderByDesc("xqxn");
Page<KcKechengbiao> page = new Page<KcKechengbiao>(pageNo, pageSize);
IPage<KcKechengbiao> pageList = kcKechengbiaoService.getKechengbiaolist(page, queryWrapper);
return Result.OK(pageList);
@ -289,9 +289,6 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
kcKechengbiaoQueryWrapper.eq("xqxn",xqxn);
kcKechengbiaoQueryWrapper.last("limit 1");
KcKechengbiao kcKechengbiao = kcKechengbiaoService.getOne(kcKechengbiaoQueryWrapper);
if(kcKechengbiao==null) {
return Result.error("未找到对应数据");
}
return Result.OK(kcKechengbiao);
}
}

View File

@ -178,6 +178,7 @@
kcxz,
szkc,
xqxn
ORDER BY xqxn desc
</select>
<select id="getStudentKclist" resultType="org.jeecg.modules.kc.ktgl.entity.KcKechengbiao">

View File

@ -284,7 +284,7 @@ public class KcEvaluation implements Serializable {
private java.lang.Integer kkdwid;
/**课程表id*/
@TableField(exist = false)
private java.lang.Integer kechengbiaoid;
private java.lang.String kechengbiaoid;
/**听课次数*/
@TableField(exist = false)
private java.lang.Integer tingkecishu;