EquipmentMaintainTaskMapper.java 2.6 KB
package com.skua.modules.equipment.mapper;

import java.util.Date;
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.EquipmentMaintainTaskDTO;
import com.skua.modules.equipment.entity.EquipmentMaintainTask;
import com.skua.modules.equipment.entity.EquipmentMaintainTaskResult;
import com.skua.modules.equipment.vo.EquipmentMaintainStandardVO;
import com.skua.modules.equipment.vo.EquipmentMaintainTaskCalendarVO;
import com.skua.modules.equipment.vo.EquipmentMaintainTaskVO;
import com.skua.modules.equipment.vo.EquipmentSparePartListVO;

@Mapper
public interface EquipmentMaintainTaskMapper extends BaseMapper<EquipmentMaintainTask> {
    /**
     * 任务列表
     *
     * @param pageList
     * @param equipmentMaintainTask
     * @return
     */
    List<EquipmentMaintainTaskVO> queryCustomPageList(Page<EquipmentMaintainTaskVO> pageList, @Param("equipmentMaintainTask") EquipmentMaintainTaskDTO equipmentMaintainTask);

    /**
     * 执行任务回显
     *
     * @param taskId
     * @return
     */
    List<EquipmentMaintainStandardVO> getStandardByTaskId(String taskId);

    /**
     * 通过任务id获取备件列表
     *
     * @param taskId
     * @return
     */
    List<EquipmentSparePartListVO> getSparePartListByTaskId(String taskId);

    /**
     * 通过任务id和标准id获取检查结果
     * @param maintainTaskId
     * @param maintainStandardId
     * @return
     */
    EquipmentMaintainTaskResult getEquipmentMaintainTaskResult(String maintainTaskId,String maintainStandardId);

    /**
     * 通过任务id和标准id删除
     * @param maintainTaskId
     * @param maintainStandardId
     */
    void deleteEquipmentMaintainTaskResult(String maintainTaskId,String maintainStandardId);

    Integer deleteMaintainTask(@Param("time") String time, @Param("id") String id);

    Integer updateResultsEnforcement(@Param("nowDate") Date nowDate, @Param("afterResultsEnforcement") Integer afterResultsEnforcement, @Param("nowResultsEnforcement") Integer nowResultsEnforcement, @Param("id") String id);

    //新增每个任务对应维护内容的结果
    Integer addTaskResult(String id,String taskId,String standardId,String result);
    
    /**
     * 	获取保养任务日历数据
     * @param equipmentMaintainTaskDTO
     * @return
     */
	List<EquipmentMaintainTaskCalendarVO> getTaskCalendarList(EquipmentMaintainTaskDTO equipmentMaintainTaskDTO);
	
}