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

import java.util.List;
import java.util.Map;

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.entity.EquipmentMaintainStandard;
import com.skua.modules.equipment.vo.EquipmentMaintainStandardVO;
import com.skua.modules.equipment.vo.SysDictItemVO;

@Mapper
public interface EquipmentMaintainStandardMapper extends BaseMapper<EquipmentMaintainStandard> {
    List<EquipmentMaintainStandardVO>getFactory(String userId);
    List<EquipmentMaintainStandardVO>getCompany(String userId);
    EquipmentMaintainStandard queryById(@Param("id") String id);
    /**
     * 获取主字典id
     *
     * @param name
     * @return
     */
    String getDictId(@Param("name") String name);

    /**
     * 根据字典id和名称查询
     *
     * @param
     * @return
     */
    SysDictItemVO getDictItem(@Param("dictId") String dictId, @Param("itemText") String itemText);

    /**
     * 新增字典项
     *
     * @param map
     * @return
     */
    Integer addDictItem(Map<String, Object> map);

    /**
     * 新增字典
     *
     * @param map
     * @return
     */
    Integer addDict(Map<String, Object> map);

    /**
     * 保养标准库列表
     *
     * @param pageList
     * @param equipmentMaintainStandard
     * @return
     */
    List<EquipmentMaintainStandardVO> queryCustomPageList(Page<EquipmentMaintainStandardVO> pageList, @Param("equipmentMaintainStandard") EquipmentMaintainStandard equipmentMaintainStandard);

    /**
     * 通过id删除逻辑删除
     * @param id
     * @return
     */
    Integer deleteById(@Param("id") String id);
    /**
     * <pre>
     * 获取机构列表
     * </pre>
     * @param projectType【factory单厂/group集团】
     * @return
     * @author Li Yuanyuan, 2023年4月11日 下午1:43:09
     * @Description: TODO(这里描述这个方法的需求变更情况)
     */
	List<Map<String, Object>> getDepartList(@Param("projectType")String projectType);
}