package cn.ysk.cashier.mybatis.service.impl;

import cn.ysk.cashier.mybatis.mapper.TbPadProductCategoryDetailMapper;
import cn.ysk.cashier.mybatis.service.TbPadProductCategoryDetailService;
import cn.ysk.cashier.pojo.product.TbPadProductCategoryDetail;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Pad商品自定义分类明细
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 2.0 2024-10-22
 */
@Service
public class TbPadProductCategoryDetailServiceImpl extends ServiceImpl<TbPadProductCategoryDetailMapper, TbPadProductCategoryDetail> implements TbPadProductCategoryDetailService {

    public QueryWrapper<TbPadProductCategoryDetail> getWrapper(Map<String, Object> params){
        QueryWrapper<TbPadProductCategoryDetail> wrapper = new QueryWrapper<>();

        wrapper.orderByDesc("id");
        return wrapper;
    }

}