| | |
| | | import com.mes.glassinfo.service.GlassInfoService; |
| | | import com.mes.pp.entity.OptimizeProject; |
| | | import com.mes.pp.mapper.OptimizeProjectMapper; |
| | | import com.mes.uppattenusage.entity.UpPattenUsage; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Override |
| | | @DS("pp") |
| | | public List<GlassInfo> selectGlassInfo(String engineeringId) { |
| | | public List<GlassInfo> selectGlassInfo(Engineering engineeringId) { |
| | | List<OptimizeGlassinfo> optimizeGlassinfos = null; |
| | | if (engineeringId != null) { |
| | | optimizeGlassinfos = optimizeProjectMapper.selectJoinList(OptimizeGlassinfo.class, new MPJQueryWrapper<OptimizeProject>() |
| | |
| | | .leftJoin("optimize_heat_detail c on c.project_no=t.project_no and b.heat_layout_id=c.layout_id and b.heat_layout_sort=c.sort") |
| | | .leftJoin("flow_card d on d.process_id=b.process_id and d.technology_number=b.layer and d.order_number=b.order_sort ") |
| | | //.eq("t.state",100) |
| | | .eq("t.project_no", engineeringId)); |
| | | .eq("t.project_no", engineeringId.getEngineerId())); |
| | | } |
| | | // 创建一个 List 用于保存映射后的实体对象 |
| | | List<GlassInfo> resultList = new ArrayList<>(); |
| | |
| | | glassInfo.setGlassId(map.getGlassId()); |
| | | glassInfo.setCombine(map.getCombine()); |
| | | glassInfo.setMarkIcon(map.getMarkIcon()); |
| | | glassInfo.setFilmRemove(engineeringId.getFilmRemove()); |
| | | // 将映射后的对象添加到结果列表中 |
| | | resultList.add(glassInfo); |
| | | } |