package com.qnfhq.modules.c2c.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qnfhq.modules.c2c.dao.C2cUserStatDao;
import com.qnfhq.modules.c2c.entity.C2cUserStatEntity;
import com.qnfhq.modules.c2c.service.C2cUserStatService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * C2C用户统计表
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-27
 */
@Service
public class C2cUserStatServiceImpl extends ServiceImpl<C2cUserStatDao, C2cUserStatEntity> implements C2cUserStatService {


    public QueryWrapper<C2cUserStatEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<C2cUserStatEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}