Kaynağa Gözat

update

add_mode
DengBiao 1 yıl önce
ebeveyn
işleme
fa6c013c70
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go
  2. +1
    -1
      app/db/db_central_kitchen_for_school_user_with_day.go

+ 1
- 1
app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go Dosyayı Görüntüle

@@ -1016,7 +1016,7 @@ func CentralKitchenForSchoolReserveDetail(c *gin.Context) {
return
}

var m []*db.CentralKitchenForSchoolUserRefundDayWithCentralKitchenForSchoolUserWithDay
var m []*db.CentralKitchenForSchoolUserWithDayWithCentralKitchenForSchoolUserRefundDay
err = db.Db.Where("central_kitchen_for_school_user_with_day.ord_no =?", centralKitchenForSchoolPackageOrdForReserve.OutTradeNo).
Where("central_kitchen_for_school_user_with_day.date >=? and central_kitchen_for_school_user_with_day.date <=?", centralKitchenForSchoolPackageOrdForReserve.MealTimeStart, centralKitchenForSchoolPackageOrdForReserve.MealTimeEnd).
Join("LEFT", "central_kitchen_for_school_user_refund_day", "central_kitchen_for_school_user_refund_day.records_id = central_kitchen_for_school_user_with_day.id").


+ 1
- 1
app/db/db_central_kitchen_for_school_user_with_day.go Dosyayı Görüntüle

@@ -39,7 +39,7 @@ func (centralKitchenForSchoolUserWithDayDb *CentralKitchenForSchoolUserWithDayDb
}

func (centralKitchenForSchoolUserWithDayDb *CentralKitchenForSchoolUserWithDayDb) FindCentralKitchenForSchoolUserWithDayByOrdNo(ordNo string) ([]map[string]interface{}, error) {
var m []*CentralKitchenForSchoolUserRefundDayWithCentralKitchenForSchoolUserWithDay
var m []*CentralKitchenForSchoolUserWithDayWithCentralKitchenForSchoolUserRefundDay
if err := centralKitchenForSchoolUserWithDayDb.Db.Where("central_kitchen_for_school_user_with_day.ord_no =?", ordNo).
Join("LEFT", "central_kitchen_for_school_user_refund_day", "central_kitchen_for_school_user_refund_day.records_id = central_kitchen_for_school_user_with_day.id").
Desc("central_kitchen_for_school_user_refund_day.id").


Yükleniyor…
İptal
Kaydet