自考
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user