|
|
@@ -30,7 +30,7 @@ func (centralKitchenForSchoolPackageForSystemDb *CentralKitchenForSchoolPackageF |
|
|
|
|
|
|
|
func (centralKitchenForSchoolPackageForSystemDb *CentralKitchenForSchoolPackageForSystemDb) GetCentralKitchenForSchoolPackageForSystemByMonth(year, month string) (m *model.CentralKitchenForSchoolPackageForSystem, err error) { |
|
|
|
m = new(model.CentralKitchenForSchoolPackageForSystem) |
|
|
|
has, err := centralKitchenForSchoolPackageForSystemDb.Db.Where("year =? and month =? and is_delete = 0", year, month).Get(m) |
|
|
|
has, err := centralKitchenForSchoolPackageForSystemDb.Db.Where("year =? and month =?", year, month).Get(m) |
|
|
|
if err != nil { |
|
|
|
return nil, logx.Error(err) |
|
|
|
} |
|
|
|