package com.muyu.enterpise.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.domain.FaultCode;
import com.muyu.domain.FaultLabel;
import com.muyu.domain.req.FaultCodeAddReq;
import com.muyu.domain.req.FaultCodeListReq;
import com.muyu.domain.req.FaultCodeUpdReq;
import com.muyu.domain.vo.FaultCodeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 故障码管理接口
 *  * @className: FaultCodeMapper  ️✈️
 *  * @author: Yang 鹏  🦅
 *  * @date: 2024/9/23 21:06 ⏰
 *  * @Version: 1.0
 *  * @description: 故障检测策略的接口
 */
@Mapper
public interface FaultCodeMapper extends BaseMapper<FaultCodeVo> {

    List<FaultCodeVo> selectfaultcodelist(FaultCodeListReq faultCodeListReq);



    //新增故障码
    FaultLabel selectfaultName(@Param("messageTypeName") String messageTypeName);
    FaultCode selectfaultCode(@Param("faultcodeNumber") String faultcodeNumber);
    Integer insertfaultlabel(FaultCodeAddReq faultCodeAddReq);
    Integer insertfaultcode(FaultCodeAddReq faultCodeAddReq);

    //修改故障码
    Integer updfaultlabel(FaultCodeUpdReq faultCodeUpdReq);
    Integer updfaultcode(FaultCodeUpdReq faultCodeUpdReq);



    Integer delfaultcode(@Param("messageTypeId") Long messageTypeId);
    Integer delfaultlabel(@Param("messageTypeId") Long messageTypeId);
}
