@Override
    public ListResult<Chart> listQuery(ChartListQueryParam param) {
        EasyLambdaQueryWrapper<ChartDO> queryWrapper = new EasyLambdaQueryWrapper<>();
        queryWrapper
            .eq(ChartDO::getDeleted, YesOrNoEnum.NO.getLetter())
            .inWhenPresent(ChartDO::getId, param.getIdList())
            .eqWhenPresent(ChartDO::getUserId, param.getUserId());
        List<ChartDO> queryList = getMapper().selectList(queryWrapper);
        List<Chart> list = chartConverter.do2model(queryList);
        setDataSourceInfo(list);
        return ListResult.of(list);
    }
@author moji
@version ChartServiceImpl.java, v 0.1 June 9, 2023 16:06 moji Exp $
@date 2023/06/09
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/ChartServiceImpl.java