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-04-08
 */
@Service
public class CalmTaskServiceImpl extends ServiceImpl<CalmTaskMapper, CalmTask> implements ICalmTaskService {

    /**
     * 查询单个对象
     * @param calmTaskBizId
     * @return
     */
    @Override
    public CalmTask queryOne(String calmTaskBizId) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<CalmTask>()
                .eq(CalmTask::getCalmTaskBizId,calmTaskBizId).last(" limit 1 "));
    }
}
