package com.yd.csf.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yd.csf.service.model.AgentDetailFyc;
import com.yd.csf.service.dao.AgentDetailFycMapper;
import com.yd.csf.service.service.IAgentDetailFycService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 业务员积分明细表 - 存储业务员的每次增加或者减少的FYC积分 服务实现类
 * </p>
 *
 * @author zxm
 * @since 2025-10-15
 */
@Service
public class AgentDetailFycServiceImpl extends ServiceImpl<AgentDetailFycMapper, AgentDetailFyc> implements IAgentDetailFycService {

    @Override
    public AgentDetailFyc queryOne(String detailFycBizId) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<AgentDetailFyc>()
                                        .eq(AgentDetailFyc::getDetailFycBizId,detailFycBizId).last(" limit 1 "));
    }
}
