package com.aucma.dms.service.impl;

//import com.aucma.dms.domain.DmsRealtimeStatus;
//import com.aucma.dms.domain.WcsAgvStatus;
//import com.aucma.dms.domain.vo.ModelBoardVo;
//import com.aucma.dms.mapper.DmsRealtimeStatusMapper;
//import com.aucma.dms.mapper.WcsAgvStatusMapper;
//import com.aucma.dms.service.IModelInterfacesService;

import com.aucma.dms.domain.DmsRealtimeStatus;
import com.aucma.dms.domain.WcsAgvStatus;
import com.aucma.dms.domain.vo.ModelBoardVo;
import com.aucma.dms.mapper.DmsRealtimeStatusMapper;
import com.aucma.dms.mapper.WcsAgvStatusMapper;
import com.aucma.dms.service.IModelInterfacesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * AGV位移状态Service业务层处理
 * 
 * @author Yinq
 * @date 2024-08-21
 */
@Service
public class ModelInterfacesServiceImpl implements IModelInterfacesService
{
    @Autowired
    private WcsAgvStatusMapper wcsAgvStatusMapper;

    @Autowired
    private DmsRealtimeStatusMapper dmsRealtimeStatusMapper;

    /**
     * 查询AGV设备状态列表
     * @param modelBoardVo
     * @return
     */
    @Override
    public HashMap<String, Object> getAgvDeviceStatus(ModelBoardVo modelBoardVo) {
        HashMap<String, Object> result = new HashMap<>();
        WcsAgvStatus wcsAgvStatus = new WcsAgvStatus();
        List<WcsAgvStatus> agvStatusList = wcsAgvStatusMapper.selectWcsAgvStatusList(wcsAgvStatus);
        result.put("agvStatusList", agvStatusList);
        DmsRealtimeStatus realtimeStatus = new DmsRealtimeStatus();
        List<DmsRealtimeStatus> realtimeStatusList = dmsRealtimeStatusMapper.selectDmsRealtimeStatusList(realtimeStatus);
        result.put("realtimeStatusList", realtimeStatusList);
        return result;
    }

}
