package com.hotwj.platform.resourceManagement.companySafetyManager.mapper;

import com.hotwj.platform.resourceManagement.companySafetyManager.domain.HotCompanySafetyManager;
import com.hotwj.platform.resourceManagement.companySafetyManager.domain.vo.HotCompanySafetyManagerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 安全管理人员Mapper接口
 *
 * @author shihongwei
 * @date 2025-12-09
 */
@Mapper
public interface HotCompanySafetyManagerMapper extends BaseMapperPlus<HotCompanySafetyManager, HotCompanySafetyManagerVo> {

    @Delete("DELETE FROM hot_company_safety_manager WHERE company_id = #{companyId} AND phone = #{phone} AND company_head = 1")
    int deleteCompanyHeadByPhone(@Param("companyId") Long companyId, @Param("phone") String phone);
}
