EquipmentInspectionPlanMapper.java 2.1 KB
package com.skua.modules.equipment.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.equipment.dto.EquipmentInspectionPlanDTO;
import com.skua.modules.equipment.entity.EquipmentInspectionPlan;
import com.skua.modules.equipment.vo.EquipmentInformationVO;
import com.skua.modules.equipment.vo.EquipmentInspectionPlanVO;

@Mapper
public interface EquipmentInspectionPlanMapper extends BaseMapper<EquipmentInspectionPlan> {
    /**
     * 新增设备检验计划
     * @param equipmentInspectionPlanDTO
     * @return
     */
    Integer addEquipmentInspection(EquipmentInspectionPlanDTO equipmentInspectionPlanDTO);
    Integer updateEquipmentInspection(EquipmentInspectionPlanDTO equipmentInspectionPlanDTO);

    /**
     * 新增计划和设备关联
     * @param equipmentInspectionPlanDTO
     * @return
     */
    Integer addEquipInfoInspection(EquipmentInspectionPlanDTO equipmentInspectionPlanDTO);
Integer deleteEquipInfoInspection(@Param("inspectionId") String inspectionId);
    /**
     * 设备检验计划列表
     * @param pageList
     * @param equipmentInspectionPlanDTO
     * @return
     */
    List<EquipmentInspectionPlanVO> queryCustomPageList(Page<EquipmentInspectionPlanVO> pageList, @Param("equipmentInspectionPlanDTO") EquipmentInspectionPlanDTO equipmentInspectionPlanDTO);


    /**
     * 通过id查询公司
     * @param id
     * @return
     */
    String selectDepartById(@Param("id") String id);

    /**
     * 查询设备名称
     * @param equipmentIds
     * @return
     */
    String selectEquipmentName(@Param("inspectionId") String inspectionId);

    EquipmentInspectionPlanVO queryById(@Param("id") String id);

    List<EquipmentInformationVO> equipmentInfos(@Param("inspectionId") String inspectionId);

    Integer deleteInspectionRecord(@Param("time") String time,@Param("inspectionId") String  inspectionId);
String getEquipmentType(@Param("typeId") String typeId);


}