|
@@ -400,7 +400,6 @@ func calculateActiveLevel(cft float32, cowEstrus *CowEstrus, xToday *XToday) pas
|
|
// getResult 根据b3数据计算结果
|
|
// getResult 根据b3数据计算结果
|
|
func getResult(b3 *model.NeckRingEstrus, cft float32, cowEstrus *CowEstrus) pasturePb.CheckResult_Kind {
|
|
func getResult(b3 *model.NeckRingEstrus, cft float32, cowEstrus *CowEstrus) pasturePb.CheckResult_Kind {
|
|
result := pasturePb.CheckResult_Pending
|
|
result := pasturePb.CheckResult_Pending
|
|
-
|
|
|
|
if b3.CheckResult == pasturePb.CheckResult_Correct {
|
|
if b3.CheckResult == pasturePb.CheckResult_Correct {
|
|
result = pasturePb.CheckResult_Correct
|
|
result = pasturePb.CheckResult_Correct
|
|
}
|
|
}
|
|
@@ -408,6 +407,5 @@ func getResult(b3 *model.NeckRingEstrus, cft float32, cowEstrus *CowEstrus) past
|
|
if b3.CheckResult == pasturePb.CheckResult_Fail && b3.DayHigh > int32(cft)+cowEstrus.HadJust {
|
|
if b3.CheckResult == pasturePb.CheckResult_Fail && b3.DayHigh > int32(cft)+cowEstrus.HadJust {
|
|
result = pasturePb.CheckResult_Fail
|
|
result = pasturePb.CheckResult_Fail
|
|
}
|
|
}
|
|
-
|
|
|
|
return result
|
|
return result
|
|
}
|
|
}
|