From 46ea49c9452002f2c01a10fd9550339a8aaa7cd1 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 18 六月 2025 14:19:15 +0800 Subject: [PATCH] 1、新了解到,FBox可接多台套水肥机、气象站、墒情站,相应修改协议(主要是主题部分); 2、编写《水肥机、气象站、墒情站协议》(未完)。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/IDLongGenerator.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/IDLongGenerator.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/IDLongGenerator.java index 3b8a133..3ab0397 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/IDLongGenerator.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/IDLongGenerator.java @@ -22,6 +22,7 @@ //姝D鐢熸垚鍣ㄥ湪鍚勪釜瀛愮郴缁熶腑闅惧厤涓哄悓涓�绫绘暟鎹敓鎴愮浉鍚岀殑ID锛岄�犳垚鏁版嵁搴撴彃鍏ュ洜涓婚敭鐩稿悓鑰屾姤閿�, //鎵�浠ヨ璁℃鍚庣紑锛屾瘡涓瓙绯荤粺鍚庣紑涓嶅悓 private static int suffix = 0 ; + private static final int noSuffix = 0 ; static { last = current() ; @@ -56,7 +57,7 @@ * @return ID */ public static Long generateTodayStartId(){ - return (currentTodayStart() * chengShu) * 100 + suffix; + return (currentTodayStart() * chengShu) * 100 + noSuffix; } /** @@ -64,7 +65,7 @@ * @return ID */ public static Long generateTodayEndId(){ - return (currentTodayEnd() * chengShu) * 100 + suffix; + return (currentTodayEnd() * chengShu) * 100 + noSuffix; } @@ -73,7 +74,7 @@ * @return ID */ public static Long generateBeforeXDayStartId(int xday){ - return (beforeXDayStart(xday) * chengShu) * 100 + suffix; + return (beforeXDayStart(xday) * chengShu) * 100 + noSuffix; } /** @@ -81,7 +82,7 @@ * @return ID */ public static Long generateBeforeXDayEndId(int xday){ - return (beforeXDayEnd(xday) * chengShu) * 100 + suffix; + return (beforeXDayEnd(xday) * chengShu) * 100 + noSuffix; } -- Gitblit v1.8.0