From 2d0358932cd63ed46778be72d126fc8d766a27a8 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期三, 18 九月 2024 16:15:59 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java index b372378..7269cac 100644 --- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java +++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java @@ -40,7 +40,7 @@ List<OptimizeGlassinfo> optimizeGlassinfos = null; if (engineeringId != null) { optimizeGlassinfos = optimizeProjectMapper.selectJoinList(OptimizeGlassinfo.class, new MPJQueryWrapper<OptimizeProject>() - .select("b.process_id,t.glass_type,b.o_width,b.o_height,t.glass_thickness,b.order_sort,b.p_width,b.p_height,b.layer, b.total_layer, b.stock_id,b.heat_layout_id,b.heat_layout_sort,c.x_axis,c.y_axis,b.project_no,b.glass_id,c.rotate_angle,d.merge") + .select("b.process_id,t.glass_type,b.o_width,b.o_height,t.glass_thickness,b.order_sort,b.p_width,b.p_height,b.layer, b.total_layer, b.stock_id,b.heat_layout_id,b.heat_layout_sort,c.x_axis,c.y_axis,b.project_no,b.glass_id,c.rotate_angle,d.merge as combine") .leftJoin("optimize_detail b on t.project_no=b.project_no") .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 ") @@ -73,7 +73,7 @@ glassInfo.setYCoordinate(map.getYAxis()); glassInfo.setAngle(map.getRotateAngle()); glassInfo.setGlassId(map.getGlassId()); - glassInfo.setCombine(map.getMerge()); + glassInfo.setCombine(map.getCombine()); // 灏嗘槧灏勫悗鐨勫璞℃坊鍔犲埌缁撴灉鍒楄〃涓� resultList.add(glassInfo); } @@ -91,9 +91,14 @@ @Override public int getGlassInfoCountByFlowCardId(String flowCardId, int layer) { - return baseMapper.selectCount(new QueryWrapper<GlassInfo>().lambda() - .eq(GlassInfo::getFlowCardId, flowCardId) - .eq(GlassInfo::getLayer, layer)); + if (layer == 0) { + return baseMapper.selectCount(new QueryWrapper<GlassInfo>().lambda() + .eq(GlassInfo::getFlowCardId, flowCardId)); + } else { + return baseMapper.selectCount(new QueryWrapper<GlassInfo>().lambda() + .eq(GlassInfo::getFlowCardId, flowCardId) + .eq(GlassInfo::getLayer, layer)); + } } @@ -130,9 +135,6 @@ log.info("result666: {}", result); return result; } - - - } -- Gitblit v1.8.0