From e8d821b6e3dd2c512ffd3a7261aeb5ae349a6ebc Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期二, 23 四月 2024 12:21:05 +0800 Subject: [PATCH] 删除无用模块 --- hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageServiceImpl.java | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageServiceImpl.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageServiceImpl.java index c07e1dc..e91289e 100644 --- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageServiceImpl.java +++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/impl/DownStorageCageServiceImpl.java @@ -219,6 +219,20 @@ + public DownGlassTask createDownGlassTask(GlassInfo glassInfo, String startCell, String endCell,String taskType ) { + DownGlassTask downGlassTask = new DownGlassTask(); + downGlassTask.setId(glassInfo.getId()); + downGlassTask.setStartCell(startCell); + downGlassTask.setTaskType(taskType); + downGlassTask.setEndCell(endCell); + downGlassTask.setWidth(glassInfo.getWidth()); + downGlassTask.setHeight(glassInfo.getHeight()); + downGlassTask.setFilmsid(String.valueOf(glassInfo.getFilmsid())); + downGlassTask.setThickness(glassInfo.getThickness()); + downGlassTask.setFlowCardId(glassInfo.getFlowcardId()); + + return downGlassTask; + } @@ -227,7 +241,7 @@ //鎸塱d鏌ヨ鐜荤拑淇℃伅琛ㄩ噷鐨勭幓鐠� GlassInfo GlassInfo = glassInfoService.selectGlassId(Number); - PlcParameterObject plcmes = PLCAutoMes.PlcMesObject; + PlcParameterObject plcmes = PLCAutoMes.PlcMesObject; //瀛樺湪姝ょ幓鐠冪紪鍙� if (GlassInfo != null) { //鍚屾壘鍒板悓娴佺▼鍗¢檮杩戠┖鏍� @@ -240,19 +254,11 @@ //selectInfo.insertCacheTask(GlassInfo.getId() + "", "0", item.getSlot() + "", "1", GlassInfo.getWidth(), GlassInfo.getHeight(), GlassInfo.getFilmsid(), GlassInfo.getThickness(), GlassInfo.getFlowcardId()); - DownGlassTask downGlassTask = new DownGlassTask(); - downGlassTask.setId(GlassInfo.getId()); - downGlassTask.setStartCell("0"); - downGlassTask.setTaskType("1"); - downGlassTask.setEndCell(item.getSlot()+""); - downGlassTask.setWidth(GlassInfo.getWidth()); - downGlassTask.setHeight(GlassInfo.getHeight()); - downGlassTask.setFilmsid(GlassInfo.getFilmsid()+""); - downGlassTask.setThickness(GlassInfo.getThickness()); - downGlassTask.setFlowCardId(GlassInfo.getFlowcardId()); + DownGlassTask downGlassTask = createDownGlassTask(GlassInfo,"0",item.getSlot()+"","1"); + downGlassTaskService.insertCacheTask(downGlassTask); - S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), (short) 1); + S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), (short) 1); //瀹屾垚鍚庢彃鍏ュ皬鐗囨暟鎹埌缂撳瓨琛� -- Gitblit v1.8.0