package cn.estsh.i3plus.ext.mes.pcn.apiservice.dao;

import cn.estsh.i3plus.ext.mes.pcn.pojo.context.MesEquipVariableCollectContext;
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentRecord;
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentVariable;
import io.swagger.annotations.ApiOperation;

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

public interface IMesEquipmentLogDao {

    @ApiOperation(value = "根据设备ID, 变量类型查询设备日志表")
    List<MesEquipVariableCollectContext> queryMesEquipmentLog(List<MesEquipmentVariable> equipmentVariableList, String organizeCode, Integer equipId, Integer variableType);

    @ApiOperation(value = "根据设备ID, 设备LOG表ID集合修改设备日志表的数据状态")
    void updateEquipVariableStatus(String organizeCode, Integer equipId, Map<Long, String> equipmentLogIdMap, Integer equipVariableStatus);

    @ApiOperation(value = "根据设备ID, 变量类型, 数据变量ID集合查询设备日志表")
    List<MesEquipVariableCollectContext> queryMesEquipmentLog(String organizeCode, Integer equipId, Integer variableType, List<Long> equipVariableIdList);

    @ApiOperation(value = "根据设备ID, 变量类型查询设备日志表")
    List<MesEquipVariableCollectContext> queryMesEquipmentLog(String organizeCode, Integer equipId, Integer variableType);

    @ApiOperation(value = "根据设备ID, 批量写入设备LOG明细数据")
    void insertBatchEquipmentLogDetail(String organizeCode, Integer equipId, String userInfo, MesEquipmentRecord mesEquipmentRecord, List<MesEquipVariableCollectContext> equipmentLogList);
}
