Browse Source

crontab: estrus 过滤掉性别是公牛的数据

Yi 5 days ago
parent
commit
fdec5e84e7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      module/crontab/neck_ring_estrus.go

+ 5 - 0
module/crontab/neck_ring_estrus.go

@@ -143,6 +143,11 @@ func (e *Entry) CowEstrusWarning(pastureId int64, xToday *XToday, nowTime time.T
 				zaplog.Error("CowEstrusWarning", zap.Any("FindCowInfoByCowId", cowId))
 				continue
 			}
+
+			if cowInfo.Sex == pasturePb.Genders_Male {
+				continue
+			}
+
 			isShow := pasturePb.IsShow_Ok
 			if cowInfo != nil && cowInfo.IsPregnant == pasturePb.IsShow_Ok && level == pasturePb.EstrusLevel_Low {
 				isShow = pasturePb.IsShow_No