From 00308b1e13f82c33a6dc688ba7db6cbb02b6399c Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 07 六月 2024 16:10:37 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 558f349..7c79839 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -1407,7 +1407,7 @@
&& crnProtocol.forkPosType == CrnForkPosType.HOME
&& crnProtocol.getLoaded()==0) {
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(wrkMast.getCrnNo(), conStation, null, 2, 3);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈烘斁璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",wrkMast.getCrnNo(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",conStation,2,3);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -1452,7 +1452,7 @@
&& crnProtocol.forkPosTypeTwo == CrnForkPosType.HOME
&& crnProtocol.getLoadedTwo()==0) {
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(wrkMast.getCrnNo(), conStation, null, 2, 3);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈烘斁璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",wrkMast.getCrnNo(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",conStation,2,3);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -3453,7 +3453,7 @@
wrkMast.setModiTime(now);
// 鍫嗗灈鏈哄浣�
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(crn.getId(), 1, null, 2, 3);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈烘斁璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",crn.getId(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",1,2,3);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -3486,7 +3486,7 @@
return true;
} else {
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(crn.getId(), 1, null, 1, 1);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈烘斁璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",crn.getId(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",1,1,1);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -3606,7 +3606,7 @@
wrkMast.setModiTime(now);
// 鍫嗗灈鏈哄浣�
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(crn.getId(), 2, null, 2, 3);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈哄彇璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",crn.getId(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",2,2,3);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -3638,7 +3638,7 @@
crnThread.setResetFlagTwo(true);
} else {
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinMapper.getWrkMastSplitTwin(crn.getId(), 2, null, 1, 1);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈哄彇璐у畬鎴愮瓑寰呯‘璁ゅ紓甯�,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={},宸ヤ綔鐘舵��={}",crn.getId(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",2,1,1);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
@@ -6302,7 +6302,7 @@
if (sign[0]!=0){
List<WrkMastSplitTwin> wrkMastSplitTwinList = wrkMastSplitTwinService.getWrkMastSplitTwin(crn.getId(),sign[1],null,sign[0],0);
- if (!wrkMastSplitTwinList.isEmpty() && wrkMastSplitTwinList.size()!=1){
+ if (wrkMastSplitTwinList.size()!=1){
log.error("鍫嗗灈鏈哄嚭鍏ュ簱涓嬪彂寮傚父,鍫嗗灈鏈哄彿={},寮傚父淇℃伅={},宸ヤ綅鍙�={},宸ヤ綔绫诲瀷={}",crn.getId(),"瀛樺湪澶氱瑪鍙墽琛屼綔涓氾紝璇峰垹闄ゆ棤鏁堜綔涓氾紒锛侊紒",sign[1],sign[0]);
}
for (WrkMastSplitTwin wrkMastSplitTwin:wrkMastSplitTwinList){
--
Gitblit v1.9.1