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

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yd.csf.service.model.CalmTask;
import com.yd.csf.service.dao.CalmTaskMapper;
import com.yd.csf.service.service.ICalmTaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 保单冷静期定时任务表 服务实现类
 * </p>
 *
 * @author zxm
 * @since 2026-03-06
 */
@Service
public class CalmTaskServiceImpl extends ServiceImpl<CalmTaskMapper, CalmTask> implements ICalmTaskService {

    @Override
    public CalmTask queryOne(String calmTaskBizId) {
        return baseMapper.selectOne(new LambdaQueryWrapper<CalmTask>()
                .eq(CalmTask::getCalmTaskBizId,calmTaskBizId)
                .last(" limit 1 ")
        );
    }
}
