| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.chinaztt.mes.common.wrapper.QueryWrapperUtil; |
| | | import com.chinaztt.mes.technology.dto.BomDTO; |
| | | import com.chinaztt.mes.technology.dto.StructureTree; |
| | | import com.chinaztt.mes.technology.entity.Bom; |
| | | import com.chinaztt.mes.technology.entity.Operation; |
| | | import com.chinaztt.mes.technology.entity.Structure; |
| | | import com.chinaztt.mes.technology.excel.BomData; |
| | | import com.chinaztt.mes.technology.excel.BomUploadListener; |
| | |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | |
| | | /** |
| | |
| | | public R addByStructure() { |
| | | // 获取需要进行构建BOM的产品结构 |
| | | List<Structure> structures = structureService.getBuildBom(); |
| | | structures.forEach(System.out::println); |
| | | return bomService.saveALLBom(structures); |
| | | } |
| | | } |