Kaynağa Gözat

update

add_mode
DengBiao 1 yıl önce
ebeveyn
işleme
000a751ba6
1 değiştirilmiş dosya ile 9 ekleme ve 3 silme
  1. +9
    -3
      app/admin/svc/svc_data_statisstics.go

+ 9
- 3
app/admin/svc/svc_data_statisstics.go Dosyayı Görüntüle

@@ -647,7 +647,9 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
var filterOrdNo []string
if req.StartDate != "" {
var mm []*model.CentralKitchenForSchoolUserWithDay
err := db.Db.Where("date >= ?", req.StartDate).And("date <= ?", req.EndDate).GroupBy("ord_no").Find(&mm)
sDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)
eDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.EndDate, time.Local)
err := db.Db.Where("date >= ?", sDate.Format("2006-01-02")).And("date <= ?", eDate.Format("2006-01-02")).GroupBy("ord_no").Find(&mm)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
@@ -852,7 +854,9 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
var filterOrdNo []string
if req.StartDate != "" {
var mm []*model.CentralKitchenForSchoolUserWithDay
err := db.Db.Where("date >= ?", req.StartDate).And("date <= ?", req.EndDate).GroupBy("ord_no").Find(&mm)
sDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)
eDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.EndDate, time.Local)
err := db.Db.Where("date >= ?", sDate.Format("2006-01-02")).And("date <= ?", eDate.Format("2006-01-02")).GroupBy("ord_no").Find(&mm)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
@@ -1492,7 +1496,9 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
var filterOrdNo []string
if req.StartDate != "" {
var mm []*model.CentralKitchenForSchoolUserWithDay
err := db.Db.Where("date >= ?", req.StartDate).And("date <= ?", req.EndDate).GroupBy("ord_no").Find(&mm)
sDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)
eDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.EndDate, time.Local)
err := db.Db.Where("date >= ?", sDate.Format("2006-01-02")).And("date <= ?", eDate.Format("2006-01-02")).GroupBy("ord_no").Find(&mm)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())


Yükleniyor…
İptal
Kaydet