EquipmentMaintainTaskMapper.java
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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);
}