|
@@ -4,7 +4,6 @@ import (
|
|
"context"
|
|
"context"
|
|
"kpt-pasture/model"
|
|
"kpt-pasture/model"
|
|
"net/http"
|
|
"net/http"
|
|
- "strings"
|
|
|
|
|
|
|
|
pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
|
|
pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
|
|
"gitee.com/xuyiping_admin/pkg/logger/zaplog"
|
|
"gitee.com/xuyiping_admin/pkg/logger/zaplog"
|
|
@@ -447,7 +446,7 @@ func (s *StoreEntry) ImmunizationBatch(ctx context.Context, req *pasturePb.Immun
|
|
if err = s.DB.Model(new(model.EventImmunizationPlan)).
|
|
if err = s.DB.Model(new(model.EventImmunizationPlan)).
|
|
Where("pasture_id = ?", userModel.AppPasture.Id).
|
|
Where("pasture_id = ?", userModel.AppPasture.Id).
|
|
Where("plan_id = ?", req.PlanId).
|
|
Where("plan_id = ?", req.PlanId).
|
|
- Where("ear_number IN (?)", strings.Join(req.EarNumbers, ",")).
|
|
|
|
|
|
+ Where("ear_number IN (?)", req.EarNumbers).
|
|
Find(&eventImmunizationList).Error; err != nil {
|
|
Find(&eventImmunizationList).Error; err != nil {
|
|
return xerr.WithStack(err)
|
|
return xerr.WithStack(err)
|
|
}
|
|
}
|