This commit is contained in:
wuchunlei
2024-10-14 16:23:17 +08:00
parent 27daac9ea6
commit ccc21c4456
6 changed files with 51 additions and 8 deletions

View File

@@ -32,9 +32,15 @@ public class UserCertificateController {
//获取证书列表
@RequestMapping("/getUserCertificateList")
public R getUserCertificateList() {
public R getUserCertificateList(@RequestBody Map<String,Object> params) {
LambdaQueryWrapper<UserCertificate> wrapper = new LambdaQueryWrapper();
wrapper.eq(UserCertificate::getUserId, ShiroUtils.getUId());
if (StringUtils.isNotEmpty(params.get("type").toString())){
wrapper.eq(UserCertificate::getType, params.get("type"));
}
if (StringUtils.isNotEmpty(params.get("courseId").toString())){
wrapper.eq(UserCertificate::getCourseId, params.get("courseId"));
}
return R.ok().put("certificateList",userCertificateService.list(wrapper));
}