From 0b75a31354826c139291d4f1e911cd121de410f5 Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期二, 16 七月 2024 21:50:37 +0800 Subject: [PATCH] fixbug:启动系统报错 注意:推送代码前拉取代码、重新打包运行程序,无误后提交 --- hangzhoumesParent/common/servicebase/src/main/java/com/mes/glassinfo/service/impl/GlassInfoServiceImpl.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 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 c143b88..10ab730 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 @@ -11,9 +11,9 @@ import com.mes.pp.entity.OptimizeProject; import com.mes.pp.mapper.OptimizeProjectMapper; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import javax.annotation.Resource; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -31,7 +31,7 @@ @Service @Slf4j public class GlassInfoServiceImpl extends MPJBaseServiceImpl<GlassInfoMapper, GlassInfo> implements GlassInfoService { - @Autowired + @Resource OptimizeProjectMapper optimizeProjectMapper; @Override @@ -42,7 +42,7 @@ 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") .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("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") //.eq("t.state",100) .eq("t.project_no", engineeringId)); } @@ -89,7 +89,7 @@ @Override - public int getGlassInfoCountByFlowCardId(String flowCardId,int layer) { + public int getGlassInfoCountByFlowCardId(String flowCardId, int layer) { return baseMapper.selectCount(new QueryWrapper<GlassInfo>().lambda() .eq(GlassInfo::getFlowCardId, flowCardId) .eq(GlassInfo::getLayer, layer)); @@ -121,7 +121,7 @@ List<Map<String, Object>> result = glassInfos.stream() .map(glassInfo -> { Map<String, Object> map = new HashMap<>(); - map.put("flow_card_id", glassInfo.getFlowCardId()+" | "+glassInfo.getLayer()); + map.put("flow_card_id", glassInfo.getFlowCardId() + " | " + glassInfo.getLayer()); // 濡傛灉杩樻湁鍏朵粬瀛楁闇�瑕佹坊鍔犲埌 map 涓紝鍦ㄨ繖閲岀户缁坊鍔� return map; }) -- Gitblit v1.8.0