Browse Source

warning: estrusItems update

Yi 2 tháng trước cách đây
mục cha
commit
afc74f8c7b
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      model/neck_ring_estrus_warning.go

+ 4 - 2
model/neck_ring_estrus_warning.go

@@ -110,11 +110,13 @@ func (n NeckRingEstrusWarningSlice) ToPB(
 					break
 				}
 			}
-		} else {
+		}
+
+		if matingWindowPeriodKind > pasturePb.MatingWindowPeriod_Invalid {
 			found = isIPeriod(matingWindowPeriodKind, nowTime, optimumMatingStartTime, optimumMatingEndTime)
 		}
 
-		if !found {
+		if found {
 			continue
 		}