| | |
| | | package org.jeecg.modules.mdc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.mdc.dto.MdcEquDepDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquProDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquipmentDto; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipmentMonitor; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentDepVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentProVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentVo; |
| | | import org.jeecg.modules.mdc.vo.WorkshopEquipmentVo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: 设备表 |
| | |
| | | * 根据大屏车间id查询设备列表 |
| | | */ |
| | | IPage<MdcEquipment> getEquipmentByWorkshopId(Page<MdcEquipment> page, @Param("workshopEquipmentVo") WorkshopEquipmentVo workshopEquipmentVo); |
| | | |
| | | /** |
| | | * 分页列表 |
| | | */ |
| | | IPage<MdcEquipment> pageList(Page<MdcEquipment> page, @Param("mdcEquipment") MdcEquipmentVo mdcEquipment); |
| | | |
| | | @InterceptorIgnore(tenantLine = "1") |
| | | @Select("select TOP 1 CollectTime ${columns} from [${tableName}] order by CollectTime desc") |
| | | Map<String, Object> getWorkLineLast(Map<String, Object> param); |
| | | |
| | | /** |
| | | * 导出list |
| | | * @param mdcEquipment |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> exportXlsList(@Param("mdcEquipment") MdcEquipmentVo mdcEquipment); |
| | | |
| | | /** |
| | | * 查询单表数据 |
| | | * @param tableName |
| | | * @return |
| | | */ |
| | | @InterceptorIgnore(tenantLine = "1") |
| | | MdcEquipmentDto findWorkLineLast(@Param("tableName") String tableName); |
| | | } |