ソースを参照

update

add_mode
DengBiao 1年前
コミット
f928e9561f
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      app/db/db_central_kitchen_for_school_package_for_system.go

+ 1
- 1
app/db/db_central_kitchen_for_school_package_for_system.go ファイルの表示

@@ -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)
}


読み込み中…
キャンセル
保存