| | |
| | | * 什么认证列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(@RequestParam(value = "account",required = false) String account) { |
| | | public TableDataInfo list(@RequestParam(value = "account",required = false) String account, |
| | | @RequestParam(value = "state",defaultValue = "0") Integer state |
| | | |
| | | ) { |
| | | startPage(); |
| | | LambdaQueryWrapper<UserKyc> wrapper = new LambdaQueryWrapper<>(); |
| | | if(StringUtils.isNotEmpty(account)){ |
| | | wrapper.eq(UserKyc::getAccount,account); |
| | | } |
| | | if(state != null && state != 3){ |
| | | wrapper.eq(UserKyc::getState,state); |
| | | }else if(state == 3){ |
| | | wrapper.ne(UserKyc::getState,0); |
| | | } |
| | | // 按创建时间倒序排列 |
| | | wrapper.orderByDesc(UserKyc::getCreatedAt); |
| | | List<UserKyc> list = userKycService.list(wrapper); |