|
|
|
|
@ -45,8 +45,8 @@ public class SupRiskPersonalService extends ServiceImpl<SupRiskPersonalMapper, S
|
|
|
|
|
public Page<SupRiskPersonalVo> page(SupRiskPersonalQueryParam queryParam) { |
|
|
|
|
QueryWrapper<SupRiskPersonal> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("srp.task_id", queryParam.getTaskId()) |
|
|
|
|
.like("srp.id_code",queryParam.getIdCode()) |
|
|
|
|
.like("srp.name",queryParam.getName()) |
|
|
|
|
.like(StrUtil.isNotEmpty(queryParam.getIdCode()),"srp.id_code",queryParam.getIdCode()) |
|
|
|
|
.like(StrUtil.isNotEmpty(queryParam.getName()),"srp.name",queryParam.getName()) |
|
|
|
|
.orderByAsc("srp.create_time"); |
|
|
|
|
Page<SupRiskPersonalVo> page = baseMapper.queryPage(Page.of(queryParam.getCurrent(), queryParam.getSize()), queryWrapper); |
|
|
|
|
return page; |
|
|
|
|
|