From 3087ff4ccc174d5952e9650ac3fae61eff477554 Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期一, 01 四月 2024 10:42:55 +0800 Subject: [PATCH] 修改 流量计实体增加监测站ID外键和驼峰命名 流量计监测站绑定接口(同步修改流量计的监测站ID外键 和 绑定记录表) 流量计监测站解绑接口(同步修改流量计的监测站ID外键 和 绑定记录表) 条件查询监测站(绑定状态判定) 条件查询已绑定的流量计 回退误修改的获取绑定记录 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/queue/Queue.java | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/queue/Queue.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/queue/Queue.java index 13114af..cfa77d5 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/queue/Queue.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/queue/Queue.java @@ -4,7 +4,7 @@ import org.apache.logging.log4j.Logger; /** - * 闃熷垪锛屽厛杩涘厛鍑猴紝闈炵嚎绋嬪畨鍏� + * 闃熷垪锛屽厛杩涘厛鍑� */ public class Queue { @SuppressWarnings("unfinal") @@ -62,7 +62,6 @@ */ @SuppressWarnings("unused") public void pushHead(NodeObj obj)throws Exception{ - //涓や釜绾跨▼鐜锛岄渶瑕佸悓姝ラ攣 synchronized(synObj){ if(obj == null){ return ; @@ -90,7 +89,6 @@ * @param obj 鍏ュ垪鐨勫璞� */ public void pushTail(NodeObj obj)throws Exception{ - //涓や釜绾跨▼鐜锛岄渶瑕佸悓姝ラ攣 synchronized(synObj){ if(obj == null){ return ; @@ -118,7 +116,6 @@ * @return 鍑哄垪瀵硅薄 */ public NodeObj pop(){ - //涓や釜绾跨▼鐜锛岄渶瑕佸悓姝ラ攣 synchronized(synObj){ NodeObj obj = null ; if(this.size > 0){ @@ -142,14 +139,11 @@ */ @SuppressWarnings("unused") public Node getFirstNode(){ - //涓や釜绾跨▼鐜锛岄渶瑕佸悓姝ラ攣 - synchronized(synObj) { - Node node = this.head.next; - if (node != this.tail) { - return node; - } - return null; + Node node = this.head.next ; + if(node != this.tail){ + return node ; } + return null ; } /** * 寰楀埌鏈�鍚庝竴涓妭鐐癸紝浣嗕笉鎶婅妭鐐逛粠闃熷垪涓竻闄� @@ -157,14 +151,11 @@ */ @SuppressWarnings("unused") public Node getLastNode(){ - //涓や釜绾跨▼鐜锛岄渶瑕佸悓姝ラ攣 - synchronized(synObj) { - Node node = this.tail.pre; - if (node != this.head) { - return node; - } - return null; + Node node = this.tail.pre ; + if(node != this.head){ + return node ; } + return null ; } /** -- Gitblit v1.8.0