/* * Copyright (c) 2018-2025, ztt All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: ztt */ package com.chinaztt.mes.technology.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.chinaztt.mes.technology.dto.DocumentMaterialCostDTO; import com.chinaztt.mes.technology.dto.JoinDocumentBomRoutingDTO; import com.chinaztt.mes.technology.entity.Document; import com.chinaztt.mes.technology.excel.MaterialCostData; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 工艺文件 * * @author zhangxy * @date 2021-05-07 09:45:58 */ @Mapper public interface DocumentMapper extends BaseMapper { /** * 查询工艺文件的BOM 工艺详细信息 * * @param documentId * @return */ List getBomRoutingDtoByDocId(Long documentId); /** * 查询根节点 * * @param documentId * @return */ JoinDocumentBomRoutingDTO getRootBomRoutingDtoPartByDocId(Long documentId); /** * @param documentId * @return */ List getBomRoutingDtoPartByDocId(Long documentId); /** * 导出材料用量 * * @param documentId * @param bomId * @return */ List exportList(@Param("documentId") Long documentId, @Param("bomId") Long bomId); /** * 根据文件id查询物料消耗dto * * @param documentId * @return */ List getMaterialCostByDocId(Long documentId); }