修改bug
This commit is contained in:
parent
155a9ff8ac
commit
f7a0d9b381
|
@ -635,5 +635,11 @@ public class KcKetangbiaoController extends JeecgController<KcKetangbiao, IKcKet
|
|||
return Result.OK(kcKetangbiaoService.getTeacherjlrkcb(queryMap));
|
||||
}
|
||||
|
||||
@ApiOperation(value="首页获取课堂笔记", notes="学生首页课程信息")
|
||||
@GetMapping(value = "/getKtbjList")
|
||||
public Result<List<KcKetangbiao>> getKtbjList(KcKetangbiao kcKetangbiao, HttpServletRequest req) {
|
||||
List<KcKetangbiao> pageList = kcKetangbiaoService.getKtbjList(kcKetangbiao);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,4 +47,6 @@ public interface KcKetangbiaoMapper extends BaseMapper<KcKetangbiao> {
|
|||
List<Map<String, Object>> getTeacheryskc(Map<String, String> queryMap);
|
||||
|
||||
List<Map<String, Object>> getTeacherjlrkcb(Map<String, String> queryMap);
|
||||
|
||||
List<KcKetangbiao> getKtbjList(KcKetangbiao kcKetangbiao);
|
||||
}
|
||||
|
|
|
@ -546,4 +546,13 @@
|
|||
LEFT JOIN zongtipingjiapingjunfen b ON a.kechengbiaoid = b.kechengbiaoid
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getKtbjList" parameterType="org.jeecg.modules.kc.ktgl.entity.KcKetangbiao" resultType="org.jeecg.modules.kc.ktgl.entity.KcKetangbiao">
|
||||
select b.* from kc_ketang_suibi a
|
||||
LEFT JOIN kc_ketangbiao b on a.ketangbiao_id = b.id
|
||||
where a.user_id = #{userid}
|
||||
GROUP BY a.user_id,a.ketangbiao_id
|
||||
ORDER BY a.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -50,4 +50,6 @@ public interface IKcKetangbiaoService extends IService<KcKetangbiao> {
|
|||
List<Map<String, Object>> getTeacheryskc(Map<String, String> queryMap);
|
||||
|
||||
List<Map<String, Object>> getTeacherjlrkcb(Map<String, String> queryMap);
|
||||
|
||||
List<KcKetangbiao> getKtbjList(KcKetangbiao kcKetangbiao);
|
||||
}
|
||||
|
|
|
@ -96,4 +96,9 @@ public class KcKetangbiaoServiceImpl extends ServiceImpl<KcKetangbiaoMapper, KcK
|
|||
public List<Map<String, Object>> getTeacherjlrkcb(Map<String, String> queryMap) {
|
||||
return baseMapper.getTeacherjlrkcb(queryMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<KcKetangbiao> getKtbjList(KcKetangbiao kcKetangbiao) {
|
||||
return baseMapper.getKtbjList(kcKetangbiao);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue