Pārlūkot izejas kodu

update

add_mode
DengBiao pirms 1 gada
vecāks
revīzija
00461b0080
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/db/db_central_kitchen_for_school_package.go

+ 1
- 1
app/db/db_central_kitchen_for_school_package.go Parādīt failu

@@ -30,7 +30,7 @@ func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCen

func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCentralKitchenForSchoolPackageByMonth(year, month string) (m *model.CentralKitchenForSchoolPackage, err error) {
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 {
return nil, logx.Error(err)
}


Notiek ielāde…
Atcelt
Saglabāt