|
@@ -30,7 +30,7 @@ func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCen |
|
|
|
|
|
|
|
|
func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCentralKitchenForSchoolPackageByMonth(year, month string) (m *model.CentralKitchenForSchoolPackage, err error) { |
|
|
func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCentralKitchenForSchoolPackageByMonth(year, month string) (m *model.CentralKitchenForSchoolPackage, err error) { |
|
|
m = new(model.CentralKitchenForSchoolPackage) |
|
|
m = new(model.CentralKitchenForSchoolPackage) |
|
|
has, err := centralKitchenForSchoolPackageDb.Db.Where("year =? and month =?", year, month).Get(m) |
|
|
|
|
|
|
|
|
has, err := centralKitchenForSchoolPackageDb.Db.Where("year =? and month =? and is_delete = 0", year, month).Get(m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, logx.Error(err) |
|
|
return nil, logx.Error(err) |
|
|
} |
|
|
} |
|
|