package com.younike.service.service.share.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
    #if($table.sub)

    import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
        ${subClassName};
#end
import com.younike.service.mapper.${ClassName}Mapper;
    ${ClassName};
import com.younike.service.service.I${ClassName}Service;
import com.younike.common.core.page.PageParam;

/**
 * ${functionName}Service业务层处理
 *
 * @author ${author}
 * @date ${datetime}
 */
@Service
@Transactional
public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}>  implements I${ClassName}Service {


    /**
     * 自定义分页逻辑 这里就省略掉
     * @param pageParam
     * @return
     */
    @Override
    public PageParam<${ClassName}> page(PageParam<${ClassName}> pageParam) {

        PageParam<${ClassName}> page = this.page(pageParam, new LambdaQueryWrapper<${ClassName}>()
                //.like(Printer::getName,pageParam.getParam().getName())
                // 查询逻辑 适合单表 多表 重写XML查询
        );

        return page;
    }

}
