| | |
| | | import cn.stylefeng.guns.plcserver.opc.GlobalVariable; |
| | | import cn.stylefeng.guns.plcserver.opc.OPCElement; |
| | | |
| | | import cn.stylefeng.guns.plcserver.opc.unit.OPCUnit; |
| | | import cn.stylefeng.guns.plcserver.tool.DateTool; |
| | | import cn.stylefeng.guns.plcserver.tool.LogUtil; |
| | | import com.kangaroohy.milo.model.ReadWriteEntity; |
| | |
| | | ReadWriteEntity entity = new ReadWriteEntity(OPCElement.OP080_J_PC_FINISH,true); |
| | | miloService.writeToOpcUa(entity);//写PC完成 |
| | | |
| | | /* if("2".equals(S_PRODUCT_STATE_CODE)){ |
| | | if("2".equals(S_PRODUCT_STATE_CODE)){ |
| | | ProductionOrderRecordsParam productionOrderRecordsParam = new ProductionOrderRecordsParam(); |
| | | productionOrderRecordsParam.setWorkOrderNo(S_ORDER_CODE); |
| | | productionOrderRecordsParam.setProductNo(S_SFC_CODE); |
| | |
| | | if(!list.isEmpty()){ |
| | | ProductionOrderRecordsResult productionOrderRecordsResult = list.get(0); |
| | | productionOrderRecordsParam.setId(productionOrderRecordsResult.getId()); |
| | | productionOrderRecordsParam.setWhetherPass(S_PRODUCT_STATE_CODE); |
| | | productionOrderRecordsParam.setWhetherPass("不合格"); |
| | | productionOrderRecordsParam.setEndTime(DateTool.getLocalTimeForDate()); |
| | | productionOrderRecordsService.update(productionOrderRecordsParam); |
| | | } |
| | | }*/ |
| | | } |
| | | //处理过站信息 |
| | | PassingStationCollectionParam param = new PassingStationCollectionParam(); |
| | | param.setWorkOrderNo(S_ORDER_CODE); |
| | |
| | | } |
| | | |
| | | public void handleMaterial() { |
| | | |
| | | if(S_ORDER_CODE.isEmpty()){ |
| | | return; |
| | | } |
| | | //查询批次上料信息 |
| | | ProductionOrderBatchInfoParam productionOrderBatchInfoParam = new ProductionOrderBatchInfoParam(); |
| | | productionOrderBatchInfoParam.setWorkOrderNo(S_ORDER_CODE); |