|
|
@@ -29,9 +29,9 @@ func (centralKitchenForSchoolUserWithDayDb *CentralKitchenForSchoolUserWithDayDb |
|
|
|
return m, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (centralKitchenForSchoolUserWithDayDb *CentralKitchenForSchoolUserWithDayDb) FindCentralKitchenForSchoolUserWithDayByDate(sDate, eDate string) (*[]model.CentralKitchenForSchoolUserWithDay, error) { |
|
|
|
func (centralKitchenForSchoolUserWithDayDb *CentralKitchenForSchoolUserWithDayDb) FindCentralKitchenForSchoolUserWithDayByDate(sDate, eDate string, states []int) (*[]model.CentralKitchenForSchoolUserWithDay, error) { |
|
|
|
var m []model.CentralKitchenForSchoolUserWithDay |
|
|
|
if err := centralKitchenForSchoolUserWithDayDb.Db.Where("identity_id =?", centralKitchenForSchoolUserWithDayDb.IdentityId). |
|
|
|
if err := centralKitchenForSchoolUserWithDayDb.Db.Where("identity_id =?", centralKitchenForSchoolUserWithDayDb.IdentityId).In("state", states). |
|
|
|
And("date >= ? And date <= ?", sDate, eDate).Asc("date").Find(&m); err != nil { |
|
|
|
return nil, logx.Error(err) |
|
|
|
} |
|
|
|